Merge and ComposedID behavior when entity is not exist

16 views
Skip to first unread message

Алексей

unread,
Sep 23, 2012, 6:47:42 PM9/23/12
to nhu...@googlegroups.com
Two classes

class Obj
{
   int ID{get;set;}
}

class ObjLocale
{
   int ID{get;set;}
   int Lang{get;set;}
}

Merge for first class when object is not exist creates it. For second object - throw NonUnique Exception (a different object with the same identifier value was already associated with the session)

If database row is exist - all works normal
Reply all
Reply to author
Forward
0 new messages