修复读写分离多项目下的IShardingReadWriteAccessor仅注册一个bug

This commit is contained in:
xuejiaming 2022-03-06 16:00:16 +08:00
parent 4901074848
commit 89b86c22d6
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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;