随笔分类 -  Entity Framework

摘要:dbContext.Entry(entity).State == EntityState.Unchanged 阅读全文
posted @ 2018-01-09 16:41 Varorbc 阅读(1353) 评论(0) 推荐(0)
摘要:解决方法即 where后加 .Compile() 阅读全文
posted @ 2016-04-08 16:49 Varorbc 阅读(291) 评论(0) 推荐(0)
摘要:db.Categories .GroupJoin( db.Products, Category => Category.CategoryId, Product => Product.CategoryId, (x, y) => new { Catego... 阅读全文
posted @ 2016-01-18 15:25 Varorbc 阅读(4268) 评论(0) 推荐(2)
摘要:参考资料:https://msdn.microsoft.com/zh-cn/library/dd456847(v=vs.110).aspx http://stackoverflow.com/questions/12481868/how-to-use-scalar-valued-functio... 阅读全文
posted @ 2015-08-13 15:35 Varorbc 阅读(639) 评论(0) 推荐(0)