Пример #1
0
 public MultiTenantPlatformDbContext() : base(ConnectionStringsConfig.Get("MultiTenantPlatformWeb"))
 {
     //开启一级缓存
     OpenQueryCache = false;
     //用redis做缓存
     CacheMediaType   = Bantina.Bankinate.Cache.CacheMediaType.Local;
     CacheMediaServer = $"{RedisConfig.Get("101", "Server")}:{RedisConfig.Get("101", "Port")}";//redis服务器地址以及端口号
 }
 public MultiTenantPlatformDbContext() : base(ConnectionStringsConfig.Instance.MultiTenantPlatformWeb)
 {
     //开启一级缓存
     OpenQueryCache = false;
     OpenTableCache = false;
     //用redis做缓存
     CacheMediaType   = CacheMediaType.Local;
     CacheMediaServer = $"{RedisConfig.Get("101", "Server")}:{RedisConfig.Get("101", "Port")}";//redis服务器地址以及端口号
 }