'a different object with the same identifier value was already associated with the session: NHiberna [Resolved]

Posted by Kasani007 under C# on 12/10/2015 | Points: 10 | Views : 9390 | Status : [Member] | Replies : 2
'a different object with the same identifier value was already associated with the session: 64, of entity' at SaveOrUpdate method NHibernate Exception C#


Savint Two Objects in Single Method Using SaveOrUpdate() method Showing the above exception

my code is as below
i.e.,

o
bject1=SaveOrUpdate(object1)

forearch(var item in object2)
{
otherObjectRepository.SaveOrUpdate(item);
}



please hlep me to rectify the error..




Responses

Posted by: Kasani007 on: 12/15/2015 [Member] Starter | Points: 25

Up
0
Down

Resolved
http://kasaniexceptions.blogspot.in/2015/12/nonuniqueobjectexception-was-caught.html

Kasani007, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response