|
|
@ -12,7 +12,88 @@ namespace SqlSugar |
|
|
|
{ |
|
|
|
public partial class QueryableProvider<T, T2, T3, T4> : QueryableProvider<T>, ISugarQueryable<T, T2, T3, T4> |
|
|
|
{ |
|
|
|
#region Where
|
|
|
|
public new ISugarQueryable<T, T2, T3, T4> Where(Expression<Func<T, bool>> expression) |
|
|
|
{ |
|
|
|
_Where(expression); |
|
|
|
return this; |
|
|
|
} |
|
|
|
public ISugarQueryable<T, T2, T3, T4> Where(Expression<Func<T, T2, bool>> expression) |
|
|
|
{ |
|
|
|
_Where(expression); |
|
|
|
return this; |
|
|
|
} |
|
|
|
public ISugarQueryable<T, T2, T3, T4> Where(Expression<Func<T, T2, T3, bool>> expression) |
|
|
|
{ |
|
|
|
_Where(expression); |
|
|
|
return this; |
|
|
|
} |
|
|
|
public ISugarQueryable<T, T2, T3, T4> Where(Expression<Func<T, T2, T3, T4, bool>> expression) |
|
|
|
{ |
|
|
|
_Where(expression); |
|
|
|
return this; |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region Select
|
|
|
|
public ISugarQueryable<TResult> Select<TResult>(Expression<Func<T, T2, TResult>> expression) |
|
|
|
{ |
|
|
|
return _Select<TResult>(expression); |
|
|
|
} |
|
|
|
public ISugarQueryable<TResult> Select<TResult>(Expression<Func<T, T2, T3, TResult>> expression) |
|
|
|
{ |
|
|
|
return _Select<TResult>(expression); |
|
|
|
} |
|
|
|
public ISugarQueryable<TResult> Select<TResult>(Expression<Func<T, T2, T3, T4, TResult>> expression) |
|
|
|
{ |
|
|
|
return _Select<TResult>(expression); |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region OrderBy
|
|
|
|
public new ISugarQueryable<T, T2, T3, T4> OrderBy(Expression<Func<T, object>> expression, OrderByType type = OrderByType.Asc) { |
|
|
|
_OrderBy(expression); |
|
|
|
return this; |
|
|
|
} |
|
|
|
public ISugarQueryable<T, T2, T3, T4> OrderBy(Expression<Func<T, T2, object>> expression, OrderByType type = OrderByType.Asc) |
|
|
|
{ |
|
|
|
_OrderBy(expression); |
|
|
|
return this; |
|
|
|
} |
|
|
|
public ISugarQueryable<T, T2, T3, T4> OrderBy(Expression<Func<T, T2, T3, object>> expression, OrderByType type = OrderByType.Asc) |
|
|
|
{ |
|
|
|
_OrderBy(expression); |
|
|
|
return this; |
|
|
|
} |
|
|
|
public ISugarQueryable<T, T2, T3, T4> OrderBy(Expression<Func<T, T2, T3, T4, object>> expression, OrderByType type = OrderByType.Asc) |
|
|
|
{ |
|
|
|
_OrderBy(expression); |
|
|
|
return this; |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region GroupBy
|
|
|
|
public new ISugarQueryable<T, T2, T3, T4> GroupBy(Expression<Func<T, object>> expression) |
|
|
|
{ |
|
|
|
_GroupBy(expression); |
|
|
|
return this; |
|
|
|
} |
|
|
|
public ISugarQueryable<T, T2, T3, T4> GroupBy(Expression<Func<T, T2, object>> expression) |
|
|
|
{ |
|
|
|
_GroupBy(expression); |
|
|
|
return this; |
|
|
|
} |
|
|
|
public ISugarQueryable<T, T2, T3, T4> GroupBy(Expression<Func<T, T2, T3, object>> expression) |
|
|
|
{ |
|
|
|
_GroupBy(expression); |
|
|
|
return this; |
|
|
|
} |
|
|
|
public ISugarQueryable<T, T2, T3, T4> GroupBy(Expression<Func<T, T2, T3, T4, object>> expression) |
|
|
|
{ |
|
|
|
_GroupBy(expression); |
|
|
|
return this; |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
} |
|
|
|
public partial class QueryableProvider<T, T2, T3> : QueryableProvider<T>, ISugarQueryable<T, T2, T3> |
|
|
|
{ |
|
|
|