NHibernate: How to save list in the database?

Posted by Anry on Stack Overflow See other posts from Stack Overflow or by Anry
Published on 2010-03-22T17:00:12Z Indexed on 2010/03/22 17:01 UTC
Read the original article Hit count: 528

Filed under:
|

I have a table Order, Transaction, Payment. Class Order has the properties:

public virtual Guid Id { get; set; }
public virtual DateTime Created { get; set; }
...

I added properties:

public virtual IList<Transaction> Transactions { get; set; }
public virtual IList<Payment> Payments { get; set; }

These properties contain a record of tables [Transaction] and [Payment]. How to keep these lists in the database?

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about c#