Before reading from your mappings you can get the PersistentClass of your
entity and manage it as you wish.Something like:

cfg.GetPersistentClass(typeof(MyEntity)).Identifier

And here will have to investigate which are suitables for "assigned".

After that, you can BuildSessionFactory();.

On Sun, Apr 5, 2009 at 11:44 PM, Stefan Sedich <[email protected]>wrote:

>
> Hello,
>
> Would there be a way in code to disable all the ID generators? I am
> using XML mapping with guid.comb generators, but I would like to
> change them all to assigned for a moment while I insert some test
> data.
>
>
>
> Cheers
>
> --
> Stefan Sedich
> Software Developer
> http://weblogs.asp.net/stefansedich
>
> >
>
>


-- 
Dario Quintana
http://darioquintana.com.ar

--~--~---------~--~----~------------~-------~--~----~
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