feat: 优化定时任务体验

This commit is contained in:
陈淳
2024-01-09 16:59:20 +08:00
parent 5357c813e4
commit 8c122b7e09
3 changed files with 30 additions and 7 deletions

View File

@@ -1,10 +1,12 @@
using Volo.Abp.Modularity;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity;
using Yi.Abp.Domain;
using Yi.Abp.SqlSugarCore;
using Yi.Framework.Bbs.SqlSugarCore;
using Yi.Framework.Mapster;
using Yi.Framework.Rbac.SqlSugarCore;
using Yi.Framework.SqlSugarCore;
using Yi.Framework.SqlSugarCore.Abstractions;
namespace Yi.Abp.SqlsugarCore
{
@@ -22,6 +24,8 @@ namespace Yi.Abp.SqlsugarCore
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddYiDbContext<YiDbContext>();
//默认不开放可根据项目需要是否Db直接对外开放
//context.Services.AddTransient(x => x.GetRequiredService<ISqlSugarDbContext>().SqlSugarClient);
}
}
}