refactor:将AddBathAsync改为AddAsync
This commit is contained in:
@@ -88,10 +88,10 @@ namespace DMS.Infrastructure.Repositories
|
||||
|
||||
|
||||
|
||||
public async Task<List<Trigger>> AddBatchAsync(List<Trigger> entities)
|
||||
public async Task<List<Trigger>> AddAsync(List<Trigger> entities)
|
||||
{
|
||||
var dbEntities = _mapper.Map<List<DbTrigger>>(entities);
|
||||
var addedEntities = await base.AddBatchAsync(dbEntities);
|
||||
var addedEntities = await base.AddAsync(dbEntities);
|
||||
return _mapper.Map<List<Trigger>>(addedEntities);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user