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>
More Related Contents:
- IndexOutOfRangeException Deep in the bowels of NHibernate
- Generate XML mappings from fluent Nhibernate
- Inverse Attribute in NHibernate
- How do you map an enum as an int value with fluent NHibernate?
- Binary Blob truncated to 8000 bytes – SQL Server 2008 / varbinary(max)
- NHibernate configuration for uni-directional one-to-many relation
- DateTime precision in NHibernate and support for DateTime2 in NHibernate SchemeExport
- How do add NOLOCK with nHibernate?
- Syntax to define a NHibernate Filter with Fluent Nhibernate?
- Programming to interfaces while mapping with Fluent NHibernate
- How to Eager Load Associations without duplication in NHibernate?
- Nhibernate: How to represent Many-To-Many relationships with One-to-Many relationships?
- What are the First and Second Level caches in (N)Hibernate?
- What’s the difference between session.Merge and session.SaveOrUpdate?
- Minimal and correct way to map one-to-many with NHibernate
- How can I have NHibernate only generate the SQL without executing it?
- JSON.NET and nHibernate Lazy Loading of Collections
- List vs Set vs Bag in NHibernate
- How to tell Fluent NHibernate not to map a class property
- When to use inverse=false on NHibernate / Hibernate OneToMany relationships?
- nHibernate mapping to custom types
- Is this the right way to eager load child collections in NHibernate
- How to create OR statements for NHibernate?
- How to save a child with assigned id in nhibernate
- What is the difference between JoinQueryOver and JoinAlias?
- How do I view the SQL that is generated by nHibernate?
- Get Distinct result set from NHibernate using Criteria API?
- Why doesn’t Entity Framework support ODBC?
- NHibernate: difference between Interceptor and Listener
- What exactly is “persistence ignorance”?