|  |  |  | 
|---|
|  |  |  | return _db.Queryable<TEntity>().WhereIF(whereExpression != null, whereExpression).OrderBy(orderByModels).ToList(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Task<bool> UpdateDataNavAsync(TEntity Entity) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return _db.UpdateNav(Entity).IncludesAllFirstLayer().ExecuteCommandAsync(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public bool UpdateDataNav(TEntity Entity) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return _db.UpdateNav(Entity).IncludesAllFirstLayer().ExecuteCommand(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //List<TResult> QueryMuch<T, T2, T3, TResult>( | 
|---|
|  |  |  | //    Expression<Func<T, T2, T3, object[]>> joinExpression, | 
|---|
|  |  |  | //    Expression<Func<T, T2, T3, TResult>> selectExpression, | 
|---|