refactor:将AddBathAsync改为AddAsync
This commit is contained in:
@@ -80,10 +80,10 @@ public class TriggerVariableRepository : BaseRepository<DbTriggerVariable>, ITri
|
||||
|
||||
|
||||
|
||||
public async Task<List<TriggerVariable>> AddBatchAsync(List<TriggerVariable> entities)
|
||||
public async Task<List<TriggerVariable>> AddAsync(List<TriggerVariable> entities)
|
||||
{
|
||||
var dbEntities = _mapper.Map<List<DbTriggerVariable>>(entities);
|
||||
var addedEntities = await base.AddBatchAsync(dbEntities);
|
||||
var addedEntities = await base.AddAsync(dbEntities);
|
||||
return _mapper.Map<List<TriggerVariable>>(addedEntities);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user