refactor:将AddBathAsync改为AddAsync

This commit is contained in:
2025-10-21 13:04:11 +08:00
parent 3116e4ce92
commit 5a3242a90b
20 changed files with 32 additions and 32 deletions

View File

@@ -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);
}