添加TakeAsync方法。
This commit is contained in:
@@ -64,4 +64,11 @@ public class MenuRepository : BaseRepository<DbMenu>, IMenuRepository
|
||||
NlogHelper.Info($"Delete {typeof(DbMenu)},ID={id},耗时:{stopwatch.ElapsedMilliseconds}ms");
|
||||
return result;
|
||||
}
|
||||
|
||||
public new async Task<List<MenuBean>> TakeAsync(int number)
|
||||
{
|
||||
var dbList = await base.TakeAsync(number);
|
||||
return _mapper.Map<List<MenuBean>>(dbList);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user