zs
2025-05-14 1acfd0dc4f695165dab633b5f45acc48047eb1b6
Merge branch 'master' of http://222.71.245.114:9086/r/HIA24016N_PipeLineDemo
已修改1个文件
3 ■■■■■ 文件已修改
Weben_CMS专用代码生成器/Code/Templete/EntityFrameworkCore/EfCoreRepository模板.txt 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Weben_CMS专用代码生成器/Code/Templete/EntityFrameworkCore/EfCoreRepository模板.txt
@@ -174,6 +174,7 @@
    public async Task<List<$EntityName$>> GetListByFilterAsync(Expression<Func<$EntityName$, bool>> whereConditions, CancellationToken cancellationToken = default)
    {
        return await (await GetDbSetAsync())
            .IncludeDetails()
            .WhereIf(whereConditions != null, whereConditions)
            .Where(x => !x.IsDeleted)
            .OrderByDescending(x => x.$OrderBy$)
@@ -193,6 +194,7 @@
        if (is鈥婱ultipleThrowException)
        {
            var entitys = await (await GetDbSetAsync())
                .IncludeDetails()
          .WhereIf(whereConditions != null, whereConditions)
          .Where(x => !x.IsDeleted)
          .OrderByDescending(x => x.$OrderBy$)
@@ -206,6 +208,7 @@
        else
        {
            return await (await GetDbSetAsync())
                .IncludeDetails()
          .WhereIf(whereConditions != null, whereConditions)
          .Where(x => !x.IsDeleted)
          .OrderByDescending(x => x.$OrderBy$)