llk8

MVC开发/常见错误集锦

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年1月11日

摘要: 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 阅读全文
posted @ 2014-01-11 17:59 llk8 阅读(1150) 评论(0) 推荐(0) 编辑