2013年4月8日

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 零度的火 阅读(279) 评论(0) 推荐(0) 编辑

忽略大小写的字符串包含测试

摘要: 快速记录一下:System.Threading.Thread.CurrentThread.CurrentCulture.CompareInfo.IndexOf(stringA, stringB, System.Globalization.CompareOptions.IgnoreCase) >= 0 阅读全文

posted @ 2013-04-08 15:10 零度的火 阅读(241) 评论(0) 推荐(0) 编辑

导航