NHibernate: Mapping IList property

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/30 21:43 UTC
Read the original article Hit count: 375

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#