ah, but why does "identity" break UOW? why can't nh defer the id assignment as for example L2S? is it not recommended to use "identity", but hilo or guid as generator?
On Thu, Jan 27, 2011 at 14:34, Carl Hörberg <[email protected]> wrote: > yes, i use a mssql server, would it be different with lets say a mysql > server? > what do you mean by "POID defaults to identity"? > > On Thu, Jan 27, 2011 at 12:32, Jason Meckley <[email protected]>wrote: > >> I assume you are using native with a sql server database. in that case the >> POID defaults to identity, which "breaks" the unit of work concept in NH. >> >> http://fabiomaulo.blogspot.com/2009/02/nh210-generators-behavior-explained.htmland >> http://nhforge.org/blogs/nhibernate/archive/2009/03/20/nhibernate-poid-generators-revealed.aspx >> >> -- >> 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]<nhusers%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/nhusers?hl=en. >> > > -- 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.
