Merge branch 'master' of https://github.com/KJD2025/StoreHub
This commit is contained in:
commit
707eb5664a
1 file changed
+1
-1
@@ -8,7 +8,7 @@ public partial class Program
|
||||
{
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
// IOC 注册:自动注册 ISingletonDependency / IScopedDependency / ITransientDependency,并执行所有 IStartup / IModule.AddModule
|
||||
// IOC 注册:自动注册 ISingletonDependency / IScopedDependency / ITransientDependency,并执行所有 IStartup / IModule.AddModule
|
||||
// 模块服务注册阶段(等价于 builder.Services.AddStoreHub(builder.Configuration, builder.Environment),额外把配置/环境交给模块)
|
||||
builder.AddStore();
|
||||
builder.Services.AddFreeSqlDB();
|
||||
|
||||
Reference in new issue
Block a user