refactor:将AddBathAsync改为AddAsync
This commit is contained in:
@@ -110,10 +110,10 @@ public class NlogRepository : BaseRepository<DbNlog>, INlogRepository
|
||||
/// </summary>
|
||||
/// <param name="entities">要添加的Nlog日志实体列表。</param>
|
||||
/// <returns>添加的Nlog日志实体列表。</returns>
|
||||
public new async Task<List<Core.Models.Nlog>> AddBatchAsync(List<Core.Models.Nlog> entities)
|
||||
public new async Task<List<Core.Models.Nlog>> AddAsync(List<Core.Models.Nlog> entities)
|
||||
{
|
||||
var dbEntities = _mapper.Map<List<DbNlog>>(entities);
|
||||
var addedEntities = await base.AddBatchAsync(dbEntities);
|
||||
var addedEntities = await base.AddAsync(dbEntities);
|
||||
return _mapper.Map<List<Core.Models.Nlog>>(addedEntities);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user