feat:更新模块关系
This commit is contained in:
@@ -13,8 +13,7 @@ using Yi.BBS.Domain.Shared;
|
||||
namespace Yi.BBS.Domain
|
||||
{
|
||||
[DependsOn(
|
||||
typeof(YiBBSDomainSharedModule),
|
||||
typeof(YiFrameworkDataModule)
|
||||
typeof(YiBBSDomainSharedModule)
|
||||
)]
|
||||
public class YiBBSDomainModule : IStartupModule
|
||||
{
|
||||
|
||||
@@ -25,7 +25,6 @@ builder.Host.ConfigureAutoFacContainer(container =>
|
||||
|
||||
var app = builder.Build();
|
||||
var db = app.Services.GetService<ISqlSugarClient>();
|
||||
db.DbMaintenance.CreateDatabase();
|
||||
app.UseErrorHandlingServer();
|
||||
|
||||
app.UseAuthentication();
|
||||
|
||||
@@ -19,10 +19,9 @@ namespace Yi.BBS.Web
|
||||
{
|
||||
[DependsOn(
|
||||
typeof(YiBBSSqlsugarModule),
|
||||
typeof(YiFrameworkAspNetCoreModule),
|
||||
typeof(YiFrameworkAspNetCoreModule),
|
||||
typeof(YiFrameworkCoreAutofacModule),
|
||||
typeof(YiBBSApplicationModule),
|
||||
typeof(YiBBSSqlsugarModule)
|
||||
typeof(YiBBSApplicationModule)
|
||||
)]
|
||||
public class YiBBSWebModule : IStartupModule
|
||||
{
|
||||
|
||||
@@ -13,8 +13,7 @@ using Yi.BBS.Domain.Shared;
|
||||
namespace Yi.BBS.Domain
|
||||
{
|
||||
[DependsOn(
|
||||
typeof(YiBBSDomainSharedModule),
|
||||
typeof(YiFrameworkDataModule)
|
||||
typeof(YiBBSDomainSharedModule)
|
||||
)]
|
||||
public class YiBBSDomainModule : IStartupModule
|
||||
{
|
||||
|
||||
@@ -25,7 +25,6 @@ builder.Host.ConfigureAutoFacContainer(container =>
|
||||
|
||||
var app = builder.Build();
|
||||
var db = app.Services.GetService<ISqlSugarClient>();
|
||||
db.DbMaintenance.CreateDatabase();
|
||||
app.UseErrorHandlingServer();
|
||||
|
||||
app.UseAuthentication();
|
||||
|
||||
@@ -19,10 +19,9 @@ namespace Yi.BBS.Web
|
||||
{
|
||||
[DependsOn(
|
||||
typeof(YiBBSSqlsugarModule),
|
||||
typeof(YiFrameworkAspNetCoreModule),
|
||||
typeof(YiFrameworkAspNetCoreModule),
|
||||
typeof(YiFrameworkCoreAutofacModule),
|
||||
typeof(YiBBSApplicationModule),
|
||||
typeof(YiBBSSqlsugarModule)
|
||||
typeof(YiBBSApplicationModule)
|
||||
)]
|
||||
public class YiBBSWebModule : IStartupModule
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user