Forget it,I've figured it out.... Merge returns the persisted object so I just need to assign that returned object to my entity :
entityToSave = session.Merge(entityToSave) On 9 avr, 14:22, graphicsxp <[email protected]> wrote: > Hi, > > I'm really having all sort of issues with the identity field... > > Now I've noticed that if I use .Merge to persist my entity, NH does a > SELECT Scope_Identity, however the value is not assigned to my > entity's id field , why ?? If I use SaveOrUpdate, it works fine. > > I need to use Merge though. > > Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
