I have a class called ReportRequest as:
public class ReportRequest
{
Int32 templateId;
List entityIds;
public virtual Int32? Id
Use collection interfaces instead of concrete collections, so NHibernate can inject it with its own collection implementation.
In this case, use IList<int>
instead of List<int>
I found that using ICollection<T>
worked where IList<T>
did not.
I'm no NHibernate wizard, but I did want to throw a bone to someone else who might land on this issue.