How to map auto property private set with NHibernate?
Posted
by Michael Teper
on Stack Overflow
See other posts from Stack Overflow
or by Michael Teper
Published on 2009-06-08T16:57:34Z
Indexed on
2010/05/05
21:38 UTC
Read the original article
Hit count: 109
nhibernate
|nhibernate-mapping
Suppose I have this class:
public class GroceryListItem()
{
public GroceryList { get; private set; }
public GroceryListItem(GroceryList groceryList)
{
GroceryList = groceryList;
}
}
What is the NHibernate mapping file access strategy for this scenario? (i.e. <one-to-many name="GroceryList" column="XXX" access="?????" />)
© Stack Overflow or respective owner