对外开放内部依赖注入
This commit is contained in:
parent
8e5e658dc3
commit
f4f585a621
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue