NHibernate: Mapping IList property
- by Anry
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?