完善DDD领域驱动设计
This commit is contained in:
@@ -3,6 +3,8 @@ using Yi.Framework.Core.Autofac.Extensions;
|
||||
using Yi.Framework.Core.Autofac.Modules;
|
||||
using Yi.Framework.Core.Extensions;
|
||||
using Yi.BBS.Web;
|
||||
using Yi.BBS.Application;
|
||||
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.WebHost.UseStartUrlsServer(builder.Configuration);
|
||||
@@ -11,9 +13,10 @@ builder.UseYiModules(typeof(YiBBSWebModule));
|
||||
|
||||
builder.Host.ConfigureAutoFacContainer(container =>
|
||||
{
|
||||
container.RegisterYiModule(AutoFacModuleEnum.PropertiesAutowiredModule, typeof(YiBBSWebModule).Assembly);
|
||||
container.RegisterYiModule(AutoFacModuleEnum.PropertiesAutowiredModule,typeof(YiBBSWebModule).Assembly , typeof(YiBBSApplicationModule).Assembly);
|
||||
});
|
||||
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
app.UseErrorHandlingServer();
|
||||
|
||||
@@ -6,10 +6,12 @@ using Yi.Framework.Core.Attributes;
|
||||
using Yi.BBS.Application;
|
||||
using Yi.BBS.Sqlsugar;
|
||||
using Yi.Framework.AspNetCore.Microsoft.Extensions.DependencyInjection;
|
||||
using Yi.Framework.Core.Autofac;
|
||||
|
||||
namespace Yi.BBS.Web
|
||||
{
|
||||
[DependsOn(
|
||||
typeof(YiFrameworkCoreAutofacModule),
|
||||
typeof(YiBBSSqlsugarModule),
|
||||
typeof(YiBBSApplicationModule)
|
||||
)]
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user