摘要: An object with the same key already exists in the ObjectStateManager. The ObjectStateManager cannot track multiple objects with the same key. DbSet已经加 阅读全文
posted @ 2015-07-16 18:27 江境纣州 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 将表达式提炼到一个函数中,并将这个临时变量的所有应用点替换为对新函数的调用。 public class Class1 { private int _quantity = 12; private int _itemPrice = 8; public double GetPrice() { int ba 阅读全文
posted @ 2015-07-16 11:23 江境纣州 阅读(103) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2015-07-16 11:00 江境纣州 阅读(2) 评论(0) 推荐(0) 编辑