i have such code
var menu = _dataManager.Menu.Details(id);
var menu2 = _dataManager.Menu.Details(id);
menu.Name = "AAA";
in this case menu2.Name will be “AAA”, i guess it because of reference, but how can i solve it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Entity lazy loads data. Force the load and disconnect it from the Model and then it will not be AAA.
Eager load:
Update: It appears that in the past I disconnect by copying the data out to a non-entity POCO.