添加模型属性设置

This commit is contained in:
xuejiaming 2022-11-27 00:08:36 +08:00
parent ff307db879
commit 66c95d4927
1 changed files with 3 additions and 1 deletions

View File

@ -104,7 +104,9 @@ namespace Sample.MySql
o.AddShardingDataSourceRoute<SysUserModVirtualDataSourceRoute>();
}).UseConfig((sp,o) =>
{
o.CacheModelLockConcurrencyLevel = 31;
o.CacheModelLockConcurrencyLevel = 1024;
o.CacheEntrySize = 1;
o.ModelCacheLockObjectSeconds = 10;
o.CheckShardingKeyValueGenerated = false;
var loggerFactory1= sp.GetService<ILoggerFactory>();
var loggerFactory2 = sp.ApplicationServiceProvider.GetService<ILoggerFactory>();