コード例 #1
0
        public async Task <bool> SoftDeleteAsync(TKey[] ids)
        {
            await UpdateDiy
            .SetDto(new { IsDeleted = true, ModifiedUserId = _user.Id, ModifiedUserName = _user.Name })
            .WhereDynamic(ids)
            .ExecuteAffrowsAsync();

            return(true);
        }
コード例 #2
0
        public async Task <bool> SoftDeleteAsync(TKey[] ids)
        {
            await UpdateDiy
            .SetDto(new { IsDeleted = true, UpdatedBy = _authUser.Id, UpdatedByName = _authUser.UserName })
            .WhereDynamic(ids)
            .ExecuteAffrowsAsync();

            return(true);
        }
コード例 #3
0
        public async Task <bool> SoftDeleteAsync(TKey[] ids)
        {
            await UpdateDiy
            .SetDto(new
            {
                IsDeleted = true
            })
            .WhereDynamic(ids)
            .ExecuteAffrowsAsync();

            return(true);
        }
コード例 #4
0
ファイル: RepositoryBase.cs プロジェクト: zhaopan/Admin.Core
        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);
        }