MSSQL数据库链接字符串Asynchronous Processing=true不是异步查询吗,怎么是缓存

;Asynchronous Processing=true  不是异步查询吗,怎么是缓存

<!--<add name="default" providerName="System.Data.SqlClient" connectionString="Data Source=(localdb)\MSSQLLocalDB;Integrated Security=True;Initial Catalog=candoo;Asynchronous Processing=true " />-->

 

    public class CandooDbConfiguration : System.Data.Entity.DbConfiguration
    {
        public CandooDbConfiguration()
        {

#if !DEBUG
            #region EFCache

            //var transactionHandler = new CacheTransactionHandler(new InMemoryCache());

            //AddInterceptor(transactionHandler);

            //var cachingPolicy = new CachingPolicy();

            //Loaded +=
            //  (sender, args) => args.ReplaceService<DbProviderServices>(
            //    (s, _) => new CachingProviderServices(s, transactionHandler,
            //      cachingPolicy));

            #endregion
#endif
            //#if DEBUG
            //DbInterception.Add(new CanDoo.Data.Entity.Interceptors.EFIntercepterLogging());
            //#endif
        }  
    }

 

posted @ 2016-07-18 21:59  shiningrise  阅读(637)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css