mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-08 10:16:37 +08:00
配置文件开关,数据库读写分离
This commit is contained in:
@@ -29,6 +29,7 @@ using System.Threading.Tasks;
|
||||
using Yi.Framework.Model.Models;
|
||||
using Yi.Framework.Interface;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Yi.Framework.Model.ModelFactory;
|
||||
|
||||
namespace Yi.Framework.Service
|
||||
{
|
||||
@@ -38,7 +39,7 @@ namespace Yi.Framework.Service
|
||||
|
||||
public partial class <#= fn #>Service:BaseService<<#= k #>>,I<#= fn #>Service
|
||||
{
|
||||
public <#= fn #>Service(DbContext Db):base(Db){ }
|
||||
public <#= fn #>Service(IDbContextFactory DbFactory):base(DbFactory){ }
|
||||
|
||||
public async Task<bool> DelListByUpdateAsync(List<int> _ids)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user