添加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

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