We are building an application that has 2 parts server side: a WCF service , Client Side: A WPF app after the MVVM pattern So we also use the tracking unit to get some database jobs but we are struggling. Here is an example code: {try {userToUpdate} .MarkAsModified (); _context.Users.ApplyChanges (userToUpdate); _context.SaveChanges (); Back true; } Hold (Exception Pre) {// Logs etc. Return False; }}} So when I call this function to the customer, it gives us this exception: acceptance changes can not continue Because there is a conflict with the main parameters of the object, another object in the ObjectState manager should ensure that the main values are uniquely before the receptacle chains are called. "Many-to-1..0 (user-typed)" and five "0..1-many" organizations and "user-typing" in "user" - There are many "modules" associations. When we send a user instance to this function, the usertip is included in its module. If you can guide me through solving this problem, then it will be good. Thank you. Similarly, I have given this issue as a reference to other people with the same problem Has solved.
Public Child Update User (User userToUpdate) {(DBCTXTextExtract = NewDBCtext) {Try {User Outusource = UserModel.Apps. Single (x = & gt; x.UserId == userToUpdate.UserId); OutUser = userToUpdate; _context.ApplyCurrentValues ("user", outusor); _context.SaveChanges (); Back true; } Hold (Exception Pre) {// Logs etc. Return False; }}}
Comments
Post a Comment