Any thoughts why

===>
IAsset newAsset = Factory.Create<IAsset>();
newAsset.Name = "New name";

IContent newContent = Factory.Create<IContent>();
newContent.Name = "New content";

IAssetContent newAssetContent = newAsset.AddContent(newContent);
newAssetContent.Quantity = 100;

repository.Add(newAsset);
repository.Add(newContent);
repository.Add(newAssetContent);


repository.Persist();   // All this does is a Session.Flush() wrapped
in a NHibernate transaction.

<==

this fails with NHibernate errors? (I know its a long original post,
but this seems pretty fundamental to me). What am I doing wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to