Persisting collection as components

Nov 8, 2010 at 3:54 PM

Hello,

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

Hello,

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

http://social.msdn.microsoft.com/Forums/en-US/orchardsupport/thread/7699b190-4e46-44ad-820d-6312464d4cc9

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.