Fluent NHibernate
Mapping Patterns Collection With Backing Field
This is part of the Mapping Patterns collection.
This article addresses the following situation:
- You have an entity that has a collection of related entities
- That collection is only modified via mutator methods (i.e.
AddFoo()
or RemoveFoo()
)
- The collection is a private/protected field in your entity class definition and needs to be mapped with NHibernate.
The solution for this situation is covered in the Standard Mapping Relationships article
Created on February 26, 2009 09:53:03 by
Chad Myers? (97.77.68.242)