@@ -17,7 +17,7 @@ using Microsoft.Extensions.Localization;
|
||||
namespace IRaCIS.Core.Infra.EFCore
|
||||
{
|
||||
|
||||
#region 泛型通用版本
|
||||
#region 泛型通用版本 非必要 禁止使用!!!
|
||||
|
||||
|
||||
public interface IRepository
|
||||
|
||||
@@ -44,7 +44,6 @@ namespace IRaCIS.Core.Infra.EFCore
|
||||
_dbContext = dbContext;
|
||||
_mapper = mapper;
|
||||
_userInfo = userInfo;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -381,7 +380,7 @@ namespace IRaCIS.Core.Infra.EFCore
|
||||
|
||||
|
||||
|
||||
#region 保存 、忽略 、验证
|
||||
#region 保存 、忽略 、验证
|
||||
public async Task<TEntity> InsertOrUpdateAsync<TFrom>(TFrom from, bool autoSave = false, params EntityVerifyExp<TEntity>[] verify)
|
||||
{
|
||||
var entity = _mapper.Map<TEntity>(from);
|
||||
|
||||
Reference in New Issue
Block a user