摘要: DbExtensions.Include<T> Method (IQueryable<T>, String) https://msdn.microsoft.com/en-us/library/system.data.entity.dbextensions.include Namespace: Sys 阅读全文
posted @ 2016-06-24 23:15 shiningrise 阅读(1427) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/oppoic/p/ef_code_first_dbcontext.html#title02 阅读全文
posted @ 2016-06-24 21:57 shiningrise 阅读(174) 评论(0) 推荐(0) 编辑
摘要: protected override void OnModelCreating(DbModelBuilder modelBuilder) { var model = modelBuilder.Build(Database.Connection); var compliedModel = model. 阅读全文
posted @ 2016-06-24 15:45 shiningrise 阅读(424) 评论(0) 推荐(0) 编辑
摘要: https://efcache.codeplex.com/ 阅读全文
posted @ 2016-06-24 06:47 shiningrise 阅读(266) 评论(0) 推荐(0) 编辑
摘要: SELECT SUM(CASE WHEN STATE=1 THEN 1 ELSE 0 END) ,SUM(CASE WHEN STATE=2 THEN 1 ELSE 0 END) ,SUM(CASE WHEN STATE=3 THEN 1 ELSE 0 END) ,SUM(CASE WHEN STATE=4 THEN 1 ELSE 0 END) FROM TB 阅读全文
posted @ 2016-06-24 05:48 shiningrise 阅读(359) 评论(0) 推荐(0) 编辑
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css