public async Task <bool> SoftDeleteAsync(TKey[] ids) { await UpdateDiy .SetDto(new { IsDeleted = true, ModifiedUserId = _user.Id, ModifiedUserName = _user.Name }) .WhereDynamic(ids) .ExecuteAffrowsAsync(); return(true); }
public async Task <bool> SoftDeleteAsync(TKey[] ids) { await UpdateDiy .SetDto(new { IsDeleted = true, UpdatedBy = _authUser.Id, UpdatedByName = _authUser.UserName }) .WhereDynamic(ids) .ExecuteAffrowsAsync(); return(true); }
public async Task <bool> SoftDeleteAsync(TKey[] ids) { await UpdateDiy .SetDto(new { IsDeleted = true }) .WhereDynamic(ids) .ExecuteAffrowsAsync(); return(true); }
public async Task <bool> SoftDeleteAsync(Expression <Func <TEntity, bool> > exp, params string[] name) { await UpdateDiy .SetDto(new { IsDeleted = true, ModifiedUserId = User.Id, ModifiedUserName = User.Name }) .Where(exp) .DisableGlobalFilter(name) .ExecuteAffrowsAsync(); return(true); }