摘要:
DbExtensions.Include<T> Method (IQueryable<T>, String) https://msdn.microsoft.com/en-us/library/system.data.entity.dbextensions.include Namespace: Sys 阅读全文
摘要:
http://www.cnblogs.com/oppoic/p/ef_code_first_dbcontext.html#title02 阅读全文
摘要:
protected override void OnModelCreating(DbModelBuilder modelBuilder) { var model = modelBuilder.Build(Database.Connection); var compliedModel = model. 阅读全文
摘要:
https://efcache.codeplex.com/ 阅读全文
摘要:
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 阅读全文