对外开放内部依赖注入

This commit is contained in:
xuejiaming 2022-07-24 09:56:10 +08:00
parent 8e5e658dc3
commit f4f585a621
2 changed files with 10 additions and 4 deletions

View File

@ -1,9 +1,9 @@
:start
::定义版本
set EFCORE2=2.6.0.19
set EFCORE3=3.6.0.19
set EFCORE5=5.6.0.19
set EFCORE6=6.6.0.19
set EFCORE2=2.6.0.20
set EFCORE3=3.6.0.20
set EFCORE5=5.6.0.20
set EFCORE6=6.6.0.20
::删除所有bin与obj下的文件
@echo off

View File

@ -27,6 +27,12 @@ namespace ShardingCore.Core.ShardingConfigurations.ConfigBuilders
_services = services;
_shardingRuntimeBuilder = new ShardingRuntimeBuilder<TShardingDbContext>();
}
public ShardingCoreConfigBuilder<TShardingDbContext> AddServiceConfigure(Action<IServiceCollection> configure)
{
_shardingRuntimeBuilder.AddServiceConfigure(configure);
return this;
}
[Obsolete("plz use UseRouteConfig")]
public ShardingCoreConfigBuilder<TShardingDbContext> AddEntityConfig(Action<IShardingRouteConfigOptions> entityConfigure)