Entity Framework里不用查询直接更新的办法
摘要:
直接贴示例代码吧 1 public static void UpdateOwnerAndCondo(int buildingID, Action<Building> updateAction) 2 { 3 Building building = new Building(); 4 building.ID = buildingID; 5 using (CafContext context = CafContext.Create()) 6 { 7 context.Configuration.ValidateOnSaveEnabled = false;... 阅读全文
posted @ 2013-04-08 18:22 零度的火 阅读(281) 评论(0) 推荐(0) 编辑