添加模型属性设置
This commit is contained in:
parent
ff307db879
commit
66c95d4927
|
@ -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>();
|
||||
|
|
Loading…
Reference in New Issue