wip
This commit is contained in:
@@ -144,9 +144,6 @@ public class MenuRepository : BaseRepository<DbMenu>, IMenuRepository
|
||||
.ToChildListAsync(c => c.ParentId, menu.Id);
|
||||
var delConut = await _dbContext.GetInstance().Deleteable<DbMenu>(childList)
|
||||
.ExecuteCommandAsync();
|
||||
delConut += await _dbContext.GetInstance().Deleteable<DbMenu>()
|
||||
.Where(m => m.Id == menu.Id)
|
||||
.ExecuteCommandAsync();
|
||||
stopwatch.Stop();
|
||||
_logger.LogInformation($"Delete {typeof(DbMenu)},TargetId={targetId},耗时:{stopwatch.ElapsedMilliseconds}ms");
|
||||
return delConut;
|
||||
|
||||
Reference in New Issue
Block a user