feat: 支持非流式传输
This commit is contained in:
@@ -35,7 +35,7 @@ namespace Yi.Abp.SqlsugarCore
|
||||
{
|
||||
public override void ConfigureServices(ServiceConfigurationContext context)
|
||||
{
|
||||
context.Services.AddYiDbContext<YiDbContext>();
|
||||
context.Services.AddYiDbContext<YiDbContext>(options => { options.EnabledConcurrencyException = false; });
|
||||
//默认不开放,可根据项目需要是否Db直接对外开放
|
||||
//context.Services.AddTransient(x => x.GetRequiredService<ISqlSugarDbContext>().SqlSugarClient);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user