mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 02:32:50 +08:00
- 增加 多表 As 设置别名的方法;
This commit is contained in:
parent
7e9fc55bc0
commit
33f5a035f8
@ -90,6 +90,7 @@ namespace FreeSql
|
|||||||
ISelect<T1, T2> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, TMember>> column, bool descending = false);
|
ISelect<T1, T2> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, TMember>> column, bool descending = false);
|
||||||
|
|
||||||
ISelect<T1, T2> WithSql(string sqlT1, string sqlT2, object parms = null);
|
ISelect<T1, T2> WithSql(string sqlT1, string sqlT2, object parms = null);
|
||||||
|
ISelect<T1, T2> As(string aliasT1, string aliasT2);
|
||||||
|
|
||||||
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, TDto>> selector);
|
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, TDto>> selector);
|
||||||
|
|
||||||
@ -206,6 +207,7 @@ namespace FreeSql
|
|||||||
ISelect<T1, T2, T3> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, TMember>> column, bool descending = false);
|
ISelect<T1, T2, T3> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, TMember>> column, bool descending = false);
|
||||||
|
|
||||||
ISelect<T1, T2, T3> WithSql(string sqlT1, string sqlT2, string sqlT3, object parms = null);
|
ISelect<T1, T2, T3> WithSql(string sqlT1, string sqlT2, string sqlT3, object parms = null);
|
||||||
|
ISelect<T1, T2, T3> As(string aliasT1, string aliasT2, string aliasT3);
|
||||||
|
|
||||||
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, TDto>> selector);
|
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, TDto>> selector);
|
||||||
|
|
||||||
@ -322,6 +324,7 @@ namespace FreeSql
|
|||||||
ISelect<T1, T2, T3, T4> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, TMember>> column, bool descending = false);
|
ISelect<T1, T2, T3, T4> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, TMember>> column, bool descending = false);
|
||||||
|
|
||||||
ISelect<T1, T2, T3, T4> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, object parms = null);
|
ISelect<T1, T2, T3, T4> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, object parms = null);
|
||||||
|
ISelect<T1, T2, T3, T4> As(string aliasT1, string aliasT2, string aliasT3, string aliasT4);
|
||||||
|
|
||||||
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, TDto>> selector);
|
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, TDto>> selector);
|
||||||
|
|
||||||
@ -438,6 +441,7 @@ namespace FreeSql
|
|||||||
ISelect<T1, T2, T3, T4, T5> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, TMember>> column, bool descending = false);
|
ISelect<T1, T2, T3, T4, T5> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, TMember>> column, bool descending = false);
|
||||||
|
|
||||||
ISelect<T1, T2, T3, T4, T5> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, object parms = null);
|
ISelect<T1, T2, T3, T4, T5> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, object parms = null);
|
||||||
|
ISelect<T1, T2, T3, T4, T5> As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5);
|
||||||
|
|
||||||
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, TDto>> selector);
|
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, TDto>> selector);
|
||||||
|
|
||||||
@ -554,6 +558,7 @@ namespace FreeSql
|
|||||||
ISelect<T1, T2, T3, T4, T5, T6> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, TMember>> column, bool descending = false);
|
ISelect<T1, T2, T3, T4, T5, T6> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, TMember>> column, bool descending = false);
|
||||||
|
|
||||||
ISelect<T1, T2, T3, T4, T5, T6> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, object parms = null);
|
ISelect<T1, T2, T3, T4, T5, T6> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, object parms = null);
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6> As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6);
|
||||||
|
|
||||||
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, TDto>> selector);
|
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, TDto>> selector);
|
||||||
|
|
||||||
@ -670,6 +675,7 @@ namespace FreeSql
|
|||||||
ISelect<T1, T2, T3, T4, T5, T6, T7> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, TMember>> column, bool descending = false);
|
ISelect<T1, T2, T3, T4, T5, T6, T7> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, TMember>> column, bool descending = false);
|
||||||
|
|
||||||
ISelect<T1, T2, T3, T4, T5, T6, T7> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, object parms = null);
|
ISelect<T1, T2, T3, T4, T5, T6, T7> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, object parms = null);
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7> As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7);
|
||||||
|
|
||||||
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, TDto>> selector);
|
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, TDto>> selector);
|
||||||
|
|
||||||
@ -786,6 +792,7 @@ namespace FreeSql
|
|||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, TMember>> column, bool descending = false);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, TMember>> column, bool descending = false);
|
||||||
|
|
||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, object parms = null);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, object parms = null);
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8> As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8);
|
||||||
|
|
||||||
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, TDto>> selector);
|
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, TDto>> selector);
|
||||||
|
|
||||||
@ -902,6 +909,7 @@ namespace FreeSql
|
|||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TMember>> column, bool descending = false);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TMember>> column, bool descending = false);
|
||||||
|
|
||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, string sqlT9, object parms = null);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, string sqlT9, object parms = null);
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9> As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8, string aliasT9);
|
||||||
|
|
||||||
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TDto>> selector);
|
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TDto>> selector);
|
||||||
|
|
||||||
@ -1018,6 +1026,7 @@ namespace FreeSql
|
|||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TMember>> column, bool descending = false);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TMember>> column, bool descending = false);
|
||||||
|
|
||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, string sqlT9, string sqlT10, object parms = null);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, string sqlT9, string sqlT10, object parms = null);
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8, string aliasT9, string aliasT10);
|
||||||
|
|
||||||
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TDto>> selector);
|
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TDto>> selector);
|
||||||
|
|
||||||
@ -1134,6 +1143,7 @@ namespace FreeSql
|
|||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TMember>> column, bool descending = false);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TMember>> column, bool descending = false);
|
||||||
|
|
||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, string sqlT9, string sqlT10, string sqlT11, object parms = null);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, string sqlT9, string sqlT10, string sqlT11, object parms = null);
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8, string aliasT9, string aliasT10, string aliasT11);
|
||||||
|
|
||||||
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TDto>> selector);
|
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TDto>> selector);
|
||||||
|
|
||||||
@ -1250,6 +1260,7 @@ namespace FreeSql
|
|||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TMember>> column, bool descending = false);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TMember>> column, bool descending = false);
|
||||||
|
|
||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, string sqlT9, string sqlT10, string sqlT11, string sqlT12, object parms = null);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, string sqlT9, string sqlT10, string sqlT11, string sqlT12, object parms = null);
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8, string aliasT9, string aliasT10, string aliasT11, string aliasT12);
|
||||||
|
|
||||||
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TDto>> selector);
|
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TDto>> selector);
|
||||||
|
|
||||||
@ -1366,6 +1377,7 @@ namespace FreeSql
|
|||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TMember>> column, bool descending = false);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TMember>> column, bool descending = false);
|
||||||
|
|
||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, string sqlT9, string sqlT10, string sqlT11, string sqlT12, string sqlT13, object parms = null);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, string sqlT9, string sqlT10, string sqlT11, string sqlT12, string sqlT13, object parms = null);
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8, string aliasT9, string aliasT10, string aliasT11, string aliasT12, string aliasT13);
|
||||||
|
|
||||||
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TDto>> selector);
|
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TDto>> selector);
|
||||||
|
|
||||||
@ -1482,6 +1494,7 @@ namespace FreeSql
|
|||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TMember>> column, bool descending = false);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TMember>> column, bool descending = false);
|
||||||
|
|
||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, string sqlT9, string sqlT10, string sqlT11, string sqlT12, string sqlT13, string sqlT14, object parms = null);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, string sqlT9, string sqlT10, string sqlT11, string sqlT12, string sqlT13, string sqlT14, object parms = null);
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8, string aliasT9, string aliasT10, string aliasT11, string aliasT12, string aliasT13, string aliasT14);
|
||||||
|
|
||||||
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TDto>> selector);
|
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TDto>> selector);
|
||||||
|
|
||||||
@ -1598,6 +1611,7 @@ namespace FreeSql
|
|||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TMember>> column, bool descending = false);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TMember>> column, bool descending = false);
|
||||||
|
|
||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, string sqlT9, string sqlT10, string sqlT11, string sqlT12, string sqlT13, string sqlT14, string sqlT15, object parms = null);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, string sqlT9, string sqlT10, string sqlT11, string sqlT12, string sqlT13, string sqlT14, string sqlT15, object parms = null);
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8, string aliasT9, string aliasT10, string aliasT11, string aliasT12, string aliasT13, string aliasT14, string aliasT15);
|
||||||
|
|
||||||
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TDto>> selector);
|
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TDto>> selector);
|
||||||
|
|
||||||
@ -1714,6 +1728,7 @@ namespace FreeSql
|
|||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TMember>> column, bool descending = false);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> OrderByIf<TMember>(bool condition, Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TMember>> column, bool descending = false);
|
||||||
|
|
||||||
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, string sqlT9, string sqlT10, string sqlT11, string sqlT12, string sqlT13, string sqlT14, string sqlT15, string sqlT16, object parms = null);
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> WithSql(string sqlT1, string sqlT2, string sqlT3, string sqlT4, string sqlT5, string sqlT6, string sqlT7, string sqlT8, string sqlT9, string sqlT10, string sqlT11, string sqlT12, string sqlT13, string sqlT14, string sqlT15, string sqlT16, object parms = null);
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8, string aliasT9, string aliasT10, string aliasT11, string aliasT12, string aliasT13, string aliasT14, string aliasT15, string aliasT16);
|
||||||
|
|
||||||
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TDto>> selector);
|
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TDto>> selector);
|
||||||
|
|
||||||
|
@ -35,6 +35,13 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ISelect<T1, T2> ISelect<T1, T2>.As(string aliasT1, string aliasT2)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(aliasT1) == false) _tables[0].Alias = aliasT1;
|
||||||
|
if (string.IsNullOrEmpty(aliasT2) == false) _tables[1].Alias = aliasT2;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
ISelect<TDto> ISelect<T1, T2>.WithTempQuery<TDto>(Expression<Func<T1, T2, TDto>> selector)
|
ISelect<TDto> ISelect<T1, T2>.WithTempQuery<TDto>(Expression<Func<T1, T2, TDto>> selector)
|
||||||
{
|
{
|
||||||
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
||||||
@ -501,6 +508,14 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ISelect<T1, T2, T3> ISelect<T1, T2, T3>.As(string aliasT1, string aliasT2, string aliasT3)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(aliasT1) == false) _tables[0].Alias = aliasT1;
|
||||||
|
if (string.IsNullOrEmpty(aliasT2) == false) _tables[1].Alias = aliasT2;
|
||||||
|
if (string.IsNullOrEmpty(aliasT3) == false) _tables[2].Alias = aliasT3;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
ISelect<TDto> ISelect<T1, T2, T3>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, TDto>> selector)
|
ISelect<TDto> ISelect<T1, T2, T3>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, TDto>> selector)
|
||||||
{
|
{
|
||||||
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
||||||
@ -969,6 +984,15 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ISelect<T1, T2, T3, T4> ISelect<T1, T2, T3, T4>.As(string aliasT1, string aliasT2, string aliasT3, string aliasT4)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(aliasT1) == false) _tables[0].Alias = aliasT1;
|
||||||
|
if (string.IsNullOrEmpty(aliasT2) == false) _tables[1].Alias = aliasT2;
|
||||||
|
if (string.IsNullOrEmpty(aliasT3) == false) _tables[2].Alias = aliasT3;
|
||||||
|
if (string.IsNullOrEmpty(aliasT4) == false) _tables[3].Alias = aliasT4;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
ISelect<TDto> ISelect<T1, T2, T3, T4>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, TDto>> selector)
|
ISelect<TDto> ISelect<T1, T2, T3, T4>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, TDto>> selector)
|
||||||
{
|
{
|
||||||
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
||||||
@ -1439,6 +1463,16 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ISelect<T1, T2, T3, T4, T5> ISelect<T1, T2, T3, T4, T5>.As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(aliasT1) == false) _tables[0].Alias = aliasT1;
|
||||||
|
if (string.IsNullOrEmpty(aliasT2) == false) _tables[1].Alias = aliasT2;
|
||||||
|
if (string.IsNullOrEmpty(aliasT3) == false) _tables[2].Alias = aliasT3;
|
||||||
|
if (string.IsNullOrEmpty(aliasT4) == false) _tables[3].Alias = aliasT4;
|
||||||
|
if (string.IsNullOrEmpty(aliasT5) == false) _tables[4].Alias = aliasT5;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
ISelect<TDto> ISelect<T1, T2, T3, T4, T5>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, TDto>> selector)
|
ISelect<TDto> ISelect<T1, T2, T3, T4, T5>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, TDto>> selector)
|
||||||
{
|
{
|
||||||
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
||||||
@ -1911,6 +1945,17 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6> ISelect<T1, T2, T3, T4, T5, T6>.As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(aliasT1) == false) _tables[0].Alias = aliasT1;
|
||||||
|
if (string.IsNullOrEmpty(aliasT2) == false) _tables[1].Alias = aliasT2;
|
||||||
|
if (string.IsNullOrEmpty(aliasT3) == false) _tables[2].Alias = aliasT3;
|
||||||
|
if (string.IsNullOrEmpty(aliasT4) == false) _tables[3].Alias = aliasT4;
|
||||||
|
if (string.IsNullOrEmpty(aliasT5) == false) _tables[4].Alias = aliasT5;
|
||||||
|
if (string.IsNullOrEmpty(aliasT6) == false) _tables[5].Alias = aliasT6;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, TDto>> selector)
|
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, TDto>> selector)
|
||||||
{
|
{
|
||||||
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
||||||
@ -2385,6 +2430,18 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7> ISelect<T1, T2, T3, T4, T5, T6, T7>.As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(aliasT1) == false) _tables[0].Alias = aliasT1;
|
||||||
|
if (string.IsNullOrEmpty(aliasT2) == false) _tables[1].Alias = aliasT2;
|
||||||
|
if (string.IsNullOrEmpty(aliasT3) == false) _tables[2].Alias = aliasT3;
|
||||||
|
if (string.IsNullOrEmpty(aliasT4) == false) _tables[3].Alias = aliasT4;
|
||||||
|
if (string.IsNullOrEmpty(aliasT5) == false) _tables[4].Alias = aliasT5;
|
||||||
|
if (string.IsNullOrEmpty(aliasT6) == false) _tables[5].Alias = aliasT6;
|
||||||
|
if (string.IsNullOrEmpty(aliasT7) == false) _tables[6].Alias = aliasT7;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, TDto>> selector)
|
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, TDto>> selector)
|
||||||
{
|
{
|
||||||
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
||||||
@ -2861,6 +2918,19 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8> ISelect<T1, T2, T3, T4, T5, T6, T7, T8>.As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(aliasT1) == false) _tables[0].Alias = aliasT1;
|
||||||
|
if (string.IsNullOrEmpty(aliasT2) == false) _tables[1].Alias = aliasT2;
|
||||||
|
if (string.IsNullOrEmpty(aliasT3) == false) _tables[2].Alias = aliasT3;
|
||||||
|
if (string.IsNullOrEmpty(aliasT4) == false) _tables[3].Alias = aliasT4;
|
||||||
|
if (string.IsNullOrEmpty(aliasT5) == false) _tables[4].Alias = aliasT5;
|
||||||
|
if (string.IsNullOrEmpty(aliasT6) == false) _tables[5].Alias = aliasT6;
|
||||||
|
if (string.IsNullOrEmpty(aliasT7) == false) _tables[6].Alias = aliasT7;
|
||||||
|
if (string.IsNullOrEmpty(aliasT8) == false) _tables[7].Alias = aliasT8;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, TDto>> selector)
|
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, TDto>> selector)
|
||||||
{
|
{
|
||||||
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
||||||
@ -3339,6 +3409,20 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9>.As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8, string aliasT9)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(aliasT1) == false) _tables[0].Alias = aliasT1;
|
||||||
|
if (string.IsNullOrEmpty(aliasT2) == false) _tables[1].Alias = aliasT2;
|
||||||
|
if (string.IsNullOrEmpty(aliasT3) == false) _tables[2].Alias = aliasT3;
|
||||||
|
if (string.IsNullOrEmpty(aliasT4) == false) _tables[3].Alias = aliasT4;
|
||||||
|
if (string.IsNullOrEmpty(aliasT5) == false) _tables[4].Alias = aliasT5;
|
||||||
|
if (string.IsNullOrEmpty(aliasT6) == false) _tables[5].Alias = aliasT6;
|
||||||
|
if (string.IsNullOrEmpty(aliasT7) == false) _tables[6].Alias = aliasT7;
|
||||||
|
if (string.IsNullOrEmpty(aliasT8) == false) _tables[7].Alias = aliasT8;
|
||||||
|
if (string.IsNullOrEmpty(aliasT9) == false) _tables[8].Alias = aliasT9;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TDto>> selector)
|
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TDto>> selector)
|
||||||
{
|
{
|
||||||
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
||||||
@ -3819,6 +3903,21 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>.As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8, string aliasT9, string aliasT10)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(aliasT1) == false) _tables[0].Alias = aliasT1;
|
||||||
|
if (string.IsNullOrEmpty(aliasT2) == false) _tables[1].Alias = aliasT2;
|
||||||
|
if (string.IsNullOrEmpty(aliasT3) == false) _tables[2].Alias = aliasT3;
|
||||||
|
if (string.IsNullOrEmpty(aliasT4) == false) _tables[3].Alias = aliasT4;
|
||||||
|
if (string.IsNullOrEmpty(aliasT5) == false) _tables[4].Alias = aliasT5;
|
||||||
|
if (string.IsNullOrEmpty(aliasT6) == false) _tables[5].Alias = aliasT6;
|
||||||
|
if (string.IsNullOrEmpty(aliasT7) == false) _tables[6].Alias = aliasT7;
|
||||||
|
if (string.IsNullOrEmpty(aliasT8) == false) _tables[7].Alias = aliasT8;
|
||||||
|
if (string.IsNullOrEmpty(aliasT9) == false) _tables[8].Alias = aliasT9;
|
||||||
|
if (string.IsNullOrEmpty(aliasT10) == false) _tables[9].Alias = aliasT10;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TDto>> selector)
|
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TDto>> selector)
|
||||||
{
|
{
|
||||||
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
||||||
@ -4301,6 +4400,22 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>.As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8, string aliasT9, string aliasT10, string aliasT11)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(aliasT1) == false) _tables[0].Alias = aliasT1;
|
||||||
|
if (string.IsNullOrEmpty(aliasT2) == false) _tables[1].Alias = aliasT2;
|
||||||
|
if (string.IsNullOrEmpty(aliasT3) == false) _tables[2].Alias = aliasT3;
|
||||||
|
if (string.IsNullOrEmpty(aliasT4) == false) _tables[3].Alias = aliasT4;
|
||||||
|
if (string.IsNullOrEmpty(aliasT5) == false) _tables[4].Alias = aliasT5;
|
||||||
|
if (string.IsNullOrEmpty(aliasT6) == false) _tables[5].Alias = aliasT6;
|
||||||
|
if (string.IsNullOrEmpty(aliasT7) == false) _tables[6].Alias = aliasT7;
|
||||||
|
if (string.IsNullOrEmpty(aliasT8) == false) _tables[7].Alias = aliasT8;
|
||||||
|
if (string.IsNullOrEmpty(aliasT9) == false) _tables[8].Alias = aliasT9;
|
||||||
|
if (string.IsNullOrEmpty(aliasT10) == false) _tables[9].Alias = aliasT10;
|
||||||
|
if (string.IsNullOrEmpty(aliasT11) == false) _tables[10].Alias = aliasT11;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TDto>> selector)
|
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TDto>> selector)
|
||||||
{
|
{
|
||||||
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
||||||
@ -4785,6 +4900,23 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>.As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8, string aliasT9, string aliasT10, string aliasT11, string aliasT12)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(aliasT1) == false) _tables[0].Alias = aliasT1;
|
||||||
|
if (string.IsNullOrEmpty(aliasT2) == false) _tables[1].Alias = aliasT2;
|
||||||
|
if (string.IsNullOrEmpty(aliasT3) == false) _tables[2].Alias = aliasT3;
|
||||||
|
if (string.IsNullOrEmpty(aliasT4) == false) _tables[3].Alias = aliasT4;
|
||||||
|
if (string.IsNullOrEmpty(aliasT5) == false) _tables[4].Alias = aliasT5;
|
||||||
|
if (string.IsNullOrEmpty(aliasT6) == false) _tables[5].Alias = aliasT6;
|
||||||
|
if (string.IsNullOrEmpty(aliasT7) == false) _tables[6].Alias = aliasT7;
|
||||||
|
if (string.IsNullOrEmpty(aliasT8) == false) _tables[7].Alias = aliasT8;
|
||||||
|
if (string.IsNullOrEmpty(aliasT9) == false) _tables[8].Alias = aliasT9;
|
||||||
|
if (string.IsNullOrEmpty(aliasT10) == false) _tables[9].Alias = aliasT10;
|
||||||
|
if (string.IsNullOrEmpty(aliasT11) == false) _tables[10].Alias = aliasT11;
|
||||||
|
if (string.IsNullOrEmpty(aliasT12) == false) _tables[11].Alias = aliasT12;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TDto>> selector)
|
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TDto>> selector)
|
||||||
{
|
{
|
||||||
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
||||||
@ -5271,6 +5403,24 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>.As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8, string aliasT9, string aliasT10, string aliasT11, string aliasT12, string aliasT13)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(aliasT1) == false) _tables[0].Alias = aliasT1;
|
||||||
|
if (string.IsNullOrEmpty(aliasT2) == false) _tables[1].Alias = aliasT2;
|
||||||
|
if (string.IsNullOrEmpty(aliasT3) == false) _tables[2].Alias = aliasT3;
|
||||||
|
if (string.IsNullOrEmpty(aliasT4) == false) _tables[3].Alias = aliasT4;
|
||||||
|
if (string.IsNullOrEmpty(aliasT5) == false) _tables[4].Alias = aliasT5;
|
||||||
|
if (string.IsNullOrEmpty(aliasT6) == false) _tables[5].Alias = aliasT6;
|
||||||
|
if (string.IsNullOrEmpty(aliasT7) == false) _tables[6].Alias = aliasT7;
|
||||||
|
if (string.IsNullOrEmpty(aliasT8) == false) _tables[7].Alias = aliasT8;
|
||||||
|
if (string.IsNullOrEmpty(aliasT9) == false) _tables[8].Alias = aliasT9;
|
||||||
|
if (string.IsNullOrEmpty(aliasT10) == false) _tables[9].Alias = aliasT10;
|
||||||
|
if (string.IsNullOrEmpty(aliasT11) == false) _tables[10].Alias = aliasT11;
|
||||||
|
if (string.IsNullOrEmpty(aliasT12) == false) _tables[11].Alias = aliasT12;
|
||||||
|
if (string.IsNullOrEmpty(aliasT13) == false) _tables[12].Alias = aliasT13;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TDto>> selector)
|
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TDto>> selector)
|
||||||
{
|
{
|
||||||
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
||||||
@ -5759,6 +5909,25 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>.As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8, string aliasT9, string aliasT10, string aliasT11, string aliasT12, string aliasT13, string aliasT14)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(aliasT1) == false) _tables[0].Alias = aliasT1;
|
||||||
|
if (string.IsNullOrEmpty(aliasT2) == false) _tables[1].Alias = aliasT2;
|
||||||
|
if (string.IsNullOrEmpty(aliasT3) == false) _tables[2].Alias = aliasT3;
|
||||||
|
if (string.IsNullOrEmpty(aliasT4) == false) _tables[3].Alias = aliasT4;
|
||||||
|
if (string.IsNullOrEmpty(aliasT5) == false) _tables[4].Alias = aliasT5;
|
||||||
|
if (string.IsNullOrEmpty(aliasT6) == false) _tables[5].Alias = aliasT6;
|
||||||
|
if (string.IsNullOrEmpty(aliasT7) == false) _tables[6].Alias = aliasT7;
|
||||||
|
if (string.IsNullOrEmpty(aliasT8) == false) _tables[7].Alias = aliasT8;
|
||||||
|
if (string.IsNullOrEmpty(aliasT9) == false) _tables[8].Alias = aliasT9;
|
||||||
|
if (string.IsNullOrEmpty(aliasT10) == false) _tables[9].Alias = aliasT10;
|
||||||
|
if (string.IsNullOrEmpty(aliasT11) == false) _tables[10].Alias = aliasT11;
|
||||||
|
if (string.IsNullOrEmpty(aliasT12) == false) _tables[11].Alias = aliasT12;
|
||||||
|
if (string.IsNullOrEmpty(aliasT13) == false) _tables[12].Alias = aliasT13;
|
||||||
|
if (string.IsNullOrEmpty(aliasT14) == false) _tables[13].Alias = aliasT14;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TDto>> selector)
|
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TDto>> selector)
|
||||||
{
|
{
|
||||||
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
||||||
@ -6249,6 +6418,26 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>.As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8, string aliasT9, string aliasT10, string aliasT11, string aliasT12, string aliasT13, string aliasT14, string aliasT15)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(aliasT1) == false) _tables[0].Alias = aliasT1;
|
||||||
|
if (string.IsNullOrEmpty(aliasT2) == false) _tables[1].Alias = aliasT2;
|
||||||
|
if (string.IsNullOrEmpty(aliasT3) == false) _tables[2].Alias = aliasT3;
|
||||||
|
if (string.IsNullOrEmpty(aliasT4) == false) _tables[3].Alias = aliasT4;
|
||||||
|
if (string.IsNullOrEmpty(aliasT5) == false) _tables[4].Alias = aliasT5;
|
||||||
|
if (string.IsNullOrEmpty(aliasT6) == false) _tables[5].Alias = aliasT6;
|
||||||
|
if (string.IsNullOrEmpty(aliasT7) == false) _tables[6].Alias = aliasT7;
|
||||||
|
if (string.IsNullOrEmpty(aliasT8) == false) _tables[7].Alias = aliasT8;
|
||||||
|
if (string.IsNullOrEmpty(aliasT9) == false) _tables[8].Alias = aliasT9;
|
||||||
|
if (string.IsNullOrEmpty(aliasT10) == false) _tables[9].Alias = aliasT10;
|
||||||
|
if (string.IsNullOrEmpty(aliasT11) == false) _tables[10].Alias = aliasT11;
|
||||||
|
if (string.IsNullOrEmpty(aliasT12) == false) _tables[11].Alias = aliasT12;
|
||||||
|
if (string.IsNullOrEmpty(aliasT13) == false) _tables[12].Alias = aliasT13;
|
||||||
|
if (string.IsNullOrEmpty(aliasT14) == false) _tables[13].Alias = aliasT14;
|
||||||
|
if (string.IsNullOrEmpty(aliasT15) == false) _tables[14].Alias = aliasT15;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TDto>> selector)
|
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TDto>> selector)
|
||||||
{
|
{
|
||||||
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
||||||
@ -6741,6 +6930,27 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>.As(string aliasT1, string aliasT2, string aliasT3, string aliasT4, string aliasT5, string aliasT6, string aliasT7, string aliasT8, string aliasT9, string aliasT10, string aliasT11, string aliasT12, string aliasT13, string aliasT14, string aliasT15, string aliasT16)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(aliasT1) == false) _tables[0].Alias = aliasT1;
|
||||||
|
if (string.IsNullOrEmpty(aliasT2) == false) _tables[1].Alias = aliasT2;
|
||||||
|
if (string.IsNullOrEmpty(aliasT3) == false) _tables[2].Alias = aliasT3;
|
||||||
|
if (string.IsNullOrEmpty(aliasT4) == false) _tables[3].Alias = aliasT4;
|
||||||
|
if (string.IsNullOrEmpty(aliasT5) == false) _tables[4].Alias = aliasT5;
|
||||||
|
if (string.IsNullOrEmpty(aliasT6) == false) _tables[5].Alias = aliasT6;
|
||||||
|
if (string.IsNullOrEmpty(aliasT7) == false) _tables[6].Alias = aliasT7;
|
||||||
|
if (string.IsNullOrEmpty(aliasT8) == false) _tables[7].Alias = aliasT8;
|
||||||
|
if (string.IsNullOrEmpty(aliasT9) == false) _tables[8].Alias = aliasT9;
|
||||||
|
if (string.IsNullOrEmpty(aliasT10) == false) _tables[9].Alias = aliasT10;
|
||||||
|
if (string.IsNullOrEmpty(aliasT11) == false) _tables[10].Alias = aliasT11;
|
||||||
|
if (string.IsNullOrEmpty(aliasT12) == false) _tables[11].Alias = aliasT12;
|
||||||
|
if (string.IsNullOrEmpty(aliasT13) == false) _tables[12].Alias = aliasT13;
|
||||||
|
if (string.IsNullOrEmpty(aliasT14) == false) _tables[13].Alias = aliasT14;
|
||||||
|
if (string.IsNullOrEmpty(aliasT15) == false) _tables[14].Alias = aliasT15;
|
||||||
|
if (string.IsNullOrEmpty(aliasT16) == false) _tables[15].Alias = aliasT16;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TDto>> selector)
|
ISelect<TDto> ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>.WithTempQuery<TDto>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TDto>> selector)
|
||||||
{
|
{
|
||||||
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
||||||
|
@ -119,6 +119,7 @@ public interface ISelect<<#=NewStr #>> : ISelect0<ISelect<<#=NewStr #>>, T1> <#=
|
|||||||
ISelect<<#=NewStr #>> OrderByIf<TMember>(bool condition, Expression<Func<<#=NewStr #>, TMember>> column, bool descending = false);
|
ISelect<<#=NewStr #>> OrderByIf<TMember>(bool condition, Expression<Func<<#=NewStr #>, TMember>> column, bool descending = false);
|
||||||
|
|
||||||
ISelect<<#=NewStr #>> WithSql(<#=string.Join(",",WithSql)#>, object parms = null);
|
ISelect<<#=NewStr #>> WithSql(<#=string.Join(",",WithSql)#>, object parms = null);
|
||||||
|
ISelect<<#=NewStr #>> As(<#=string.Join(",",WithSql).Replace("string sqlT", "string aliasT")#>);
|
||||||
|
|
||||||
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<<#=NewStr #>, TDto>> selector);
|
ISelect<TDto> WithTempQuery<TDto>(Expression<Func<<#=NewStr #>, TDto>> selector);
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
var whereStr = "";
|
var whereStr = "";
|
||||||
var ISelectGroupingAggregate = new List<string>();
|
var ISelectGroupingAggregate = new List<string>();
|
||||||
var WithSql = new List<string>();
|
var WithSql = new List<string>();
|
||||||
|
var Alias = new List<string>();
|
||||||
|
|
||||||
List<string> SyncStructure = new List<string>();
|
List<string> SyncStructure = new List<string>();
|
||||||
StringBuilder _tables = new StringBuilder();
|
StringBuilder _tables = new StringBuilder();
|
||||||
@ -53,6 +54,7 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
{
|
{
|
||||||
ISelectGroupingAggregate.Add($"ISelectGroupingAggregate<T{i}>");
|
ISelectGroupingAggregate.Add($"ISelectGroupingAggregate<T{i}>");
|
||||||
WithSql.Add($"string sqlT{i}");
|
WithSql.Add($"string sqlT{i}");
|
||||||
|
Alias.Add($"if (string.IsNullOrEmpty(aliasT" + i + ") == false) _tables[" + (i-1) + "].Alias = aliasT" + i + ";");
|
||||||
GetToListDtoSelector.Add("Expression.Parameter(typeof(T" + i + "), \"" + (abc[i - 1]) + "\")");
|
GetToListDtoSelector.Add("Expression.Parameter(typeof(T" + i + "), \"" + (abc[i - 1]) + "\")");
|
||||||
|
|
||||||
AsTable.Append("if (type == _tables[" + (i - 1) + "].Table?.Type && string.IsNullOrEmpty(sqlT" + i +
|
AsTable.Append("if (type == _tables[" + (i - 1) + "].Table?.Type && string.IsNullOrEmpty(sqlT" + i +
|
||||||
@ -83,6 +85,12 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ISelect<<#=NewStr #>> ISelect<<#=NewStr #>>.As(<#=string.Join(",", WithSql).Replace("string sqlT", "string aliasT") #>)
|
||||||
|
{
|
||||||
|
<#=string.Join("\r\n ", Alias) #>
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
ISelect<TDto> ISelect<<#=NewStr #>>.WithTempQuery<TDto>(Expression<Func<<#=NewStr #>, TDto>> selector)
|
ISelect<TDto> ISelect<<#=NewStr #>>.WithTempQuery<TDto>(Expression<Func<<#=NewStr #>, TDto>> selector)
|
||||||
{
|
{
|
||||||
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
for (var a = 0; a < selector.Parameters.Count; a++) _tables[a].Parameter = selector.Parameters[a];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user