But how about the second time you want to save the entity in a new
database, and you want the id's to be the same, or maybe I dont want
to have the same Id, I maybe should have an uniqe id for my receipt
and another one for the db's which in this case could be different,
So when I upload my objects I simple need to set the id that the db
relies on to guid.empty.

Thats another approach I still need to do some code for handle this,
then maybe
session.Save(rootObject);
foreach(var child in rootObject.Childs)
{
     session.Save(child);

}
is easier

Or am I missing something here?

On 23 Juni, 15:09, Fabio Maulo <[email protected]> wrote:
> 2009/6/23 Niclas Pehrsson <[email protected]>
>
>
>
> > What would you do in my scenario?
>
> generator="guid" or one of its variation "guid.comb" "guid.native"
>
> --
> Fabio Maulo
--~--~---------~--~----~------------~-------~--~----~
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