摘要:
What it sounds like to me is that you're getting a user from one context, and attempting to delete from another.E.g.User myUser =null;using(MyData data =newMyData()){ myUser = data.GetUserById(1);} using(MyData data =newMyData()){ data.DeleteUser(myUser);}The 2nd "data" doesn't kno 阅读全文