feat: 完成ISqlSugarDbContextDependencies抽离
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Yi.Framework.Rbac.SqlSugarCore
|
||||
{
|
||||
public override void ConfigureServices(ServiceConfigurationContext context)
|
||||
{
|
||||
context.Services.TryAddYiDbContext<YiRbacDbContext>();
|
||||
context.Services.TryAddYiDbContext<YiRbacDbContextFactory>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,9 +9,9 @@ using Yi.Framework.SqlSugarCore;
|
||||
|
||||
namespace Yi.Framework.Rbac.SqlSugarCore
|
||||
{
|
||||
public class YiRbacDbContext : SqlSugarDbContext
|
||||
public class YiRbacDbContextFactory : SqlSugarDbContextFactory
|
||||
{
|
||||
public YiRbacDbContext(IAbpLazyServiceProvider lazyServiceProvider) : base(lazyServiceProvider)
|
||||
public YiRbacDbContextFactory(IAbpLazyServiceProvider lazyServiceProvider) : base(lazyServiceProvider)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user