wanshenmean
4 天以前 ce1292c9cf37195b6abd2699dfc5d6cb3e143c9b
Code/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/RepositoryBase.cs
@@ -962,12 +962,18 @@
        public virtual async Task<List<TEntity>> QueryDataNavAsync(Expression<Func<TEntity, bool>> whereExpression)
        {
            return await _db.Queryable<TEntity>().IncludesAllFirstLayer().ToListAsync();
            return await _db.Queryable<TEntity>()
                .Where(whereExpression)
                .IncludesAllFirstLayer()
                .ToListAsync();
        }
        public virtual async Task<TEntity> QueryDataNavFirstAsync(Expression<Func<TEntity, bool>> whereExpression)
        {
            return await _db.Queryable<TEntity>().IncludesAllFirstLayer().FirstAsync();
            return await _db.Queryable<TEntity>()
                .Where(whereExpression)
                .IncludesAllFirstLayer()
                .FirstAsync();
        }
        //List<TResult> QueryMuch<T, T2, T3, TResult>(
@@ -976,4 +982,4 @@
        //    Expression<Func<T, T2, T3, bool>> whereLambda = null) where T : class, new(){throw new NotImplementedException();}
        //Task<PageModel<TEntity>> QueryPage(PaginationModel pagination){throw new NotImplementedException();}
    }
}
}