Persisting collection as components

Nov 8, 2010 at 3:54 PM


I've got a part called EventPart, which encapsulates a collection of EventOperation objects (one-to-many).

I know how to persist the one-to-many relationship using entities (e.g. using IRepository<>.Create)

How would I go about persisting the collection of EventOperation objects as NHibernate's components, instead of entities?

Nov 12, 2010 at 8:20 AM
Edited Nov 12, 2010 at 8:54 AM


my question was about customizing mappings. I found the answer in a thread on the MSDN forums:

At the moment, there's an issue that prevents to add alterations for all the types in an assembly.

EDIT: I've filed a work item.