Esempio n. 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服务器地址以及端口号
 }
Esempio n. 2
0
 public MultiTenantDataDbContext() : base(ConnectionStringsConfig.Get("mongodb39911"))
 {
 }
 public UserFrameworkDbContext() : base(ConnectionStringsConfig.Get("UserFrameworkDb"))
 {
     //开启一级缓存
     OpenQueryCache = true;
     CacheMediaType = Bantina.Bankinate.Cache.CacheMediaType.Local;
 }