修复读写分离多项目下的IShardingReadWriteAccessor仅注册一个bug
This commit is contained in:
parent
4901074848
commit
89b86c22d6
|
@ -1,9 +1,9 @@
|
|||
:start
|
||||
::定义版本
|
||||
set EFCORE2=2.4.2.01
|
||||
set EFCORE3=3.4.2.01
|
||||
set EFCORE5=5.4.2.01
|
||||
set EFCORE6=6.4.2.01
|
||||
set EFCORE2=2.4.2.02
|
||||
set EFCORE3=3.4.2.02
|
||||
set EFCORE5=5.4.2.02
|
||||
set EFCORE6=6.4.2.02
|
||||
|
||||
::删除所有bin与obj下的文件
|
||||
@echo off
|
||||
|
|
|
@ -105,7 +105,7 @@ namespace ShardingCore.Core.ShardingConfigurations.ConfigBuilders
|
|||
services.AddSingleton(sp => ShardingCoreConfigBuilder.ShardingEntityConfigOptions);
|
||||
|
||||
services.AddSingleton(sp => CreateShardingConfigurationOptions(isMultiConfig, configurationStrategy));
|
||||
services.TryAddSingleton<IShardingReadWriteAccessor, ShardingReadWriteAccessor<TShardingDbContext>>();
|
||||
services.AddSingleton<IShardingReadWriteAccessor, ShardingReadWriteAccessor<TShardingDbContext>>();
|
||||
|
||||
services.AddInternalShardingCore();
|
||||
return services;
|
||||
|
|
Loading…
Reference in New Issue