添加TakeAsync方法。

This commit is contained in:
2025-07-22 21:36:33 +08:00
parent b881c89d96
commit fe3045c2d2
13 changed files with 86 additions and 14 deletions

View File

@@ -51,4 +51,11 @@ public class DeviceRepository : BaseRepository<DbDevice>, IDeviceRepository
NlogHelper.Info($"Delete {typeof(DbDevice)},ID={id},耗时:{stopwatch.ElapsedMilliseconds}ms");
return result;
}
public new async Task<List<Device>> TakeAsync(int number)
{
var dbList = await base.TakeAsync(number);
return _mapper.Map<List<Device>>(dbList);
}
}