Synchronization code

This commit is contained in:
sunkaixuan 2024-05-17 20:11:11 +08:00
parent 9d9f758b3e
commit 9824a2cdb7
5 changed files with 108 additions and 0 deletions

View File

@ -1263,6 +1263,14 @@ namespace SqlSugar
this.QueryBuilder.SampleBy = sql;
return this;
}
public ISugarQueryable<T> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null)
{
if (isOrderBy)
{
return this.OrderByPropertyName(orderPropertyName,orderByType);
}
return this;
}
public ISugarQueryable<T> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null)
{
if (orderPropertyName.HasValue())

View File

@ -21,6 +21,14 @@ namespace SqlSugar
this.QueryBuilder.Hints = hints;
return this;
}
public new ISugarQueryable<T,T2> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null)
{
if (isOrderBy)
{
return this.OrderByPropertyName(orderPropertyName, orderByType);
}
return this;
}
public new ISugarQueryable<T, T2> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null)
{
base.OrderByPropertyName(orderPropertyName, orderByType);
@ -692,6 +700,14 @@ namespace SqlSugar
this.QueryBuilder.Hints = hints;
return this;
}
public new ISugarQueryable<T, T2,T3> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null)
{
if (isOrderBy)
{
return this.OrderByPropertyName(orderPropertyName, orderByType);
}
return this;
}
public new ISugarQueryable<T, T2, T3> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null)
{
base.OrderByPropertyName(orderPropertyName, orderByType);
@ -1469,6 +1485,14 @@ namespace SqlSugar
this.QueryBuilder.Hints = hints;
return this;
}
public new ISugarQueryable<T, T2, T3,T4> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null)
{
if (isOrderBy)
{
return this.OrderByPropertyName(orderPropertyName, orderByType);
}
return this;
}
public new ISugarQueryable<T, T2, T3, T4> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null)
{
base.OrderByPropertyName(orderPropertyName, orderByType);
@ -2272,6 +2296,14 @@ namespace SqlSugar
base.OrderByPropertyName(orderPropertyName, orderByType);
return this;
}
public new ISugarQueryable<T, T2, T3, T4,T5> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null)
{
if (isOrderBy)
{
return this.OrderByPropertyName(orderPropertyName, orderByType);
}
return this;
}
public new ISugarQueryable<T, T2,T3, T4,T5> SampleBy(int timeNumber, SampleByUnit timeType)
{
base.SampleBy(timeNumber, timeType);

View File

@ -20,6 +20,14 @@ namespace SqlSugar
this.QueryBuilder.Hints = hints;
return this;
}
public new ISugarQueryable<T, T2, T3, T4, T5,T6> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null)
{
if (isOrderBy)
{
return this.OrderByPropertyName(orderPropertyName, orderByType);
}
return this;
}
public new ISugarQueryable<T, T2, T3, T4, T5,T6> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null)
{
base.OrderByPropertyName(orderPropertyName, orderByType);
@ -819,6 +827,14 @@ namespace SqlSugar
this.QueryBuilder.Hints = hints;
return this;
}
public new ISugarQueryable<T, T2, T3, T4, T5, T6,T7> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null)
{
if (isOrderBy)
{
return this.OrderByPropertyName(orderPropertyName, orderByType);
}
return this;
}
public new ISugarQueryable<T, T2, T3, T4, T5, T6,T7> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null)
{
base.OrderByPropertyName(orderPropertyName, orderByType);
@ -1627,6 +1643,14 @@ namespace SqlSugar
this.QueryBuilder.Hints = hints;
return this;
}
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7,T8> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null)
{
if (isOrderBy)
{
return this.OrderByPropertyName(orderPropertyName, orderByType);
}
return this;
}
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7,T8> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null)
{
base.OrderByPropertyName(orderPropertyName, orderByType);
@ -2371,6 +2395,14 @@ namespace SqlSugar
this.QueryBuilder.Hints = hints;
return this;
}
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8,T9> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null)
{
if (isOrderBy)
{
return this.OrderByPropertyName(orderPropertyName, orderByType);
}
return this;
}
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8,T9> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null)
{
base.OrderByPropertyName(orderPropertyName, orderByType);
@ -3120,6 +3152,14 @@ namespace SqlSugar
this.QueryBuilder.Hints = hints;
return this;
}
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null)
{
if (isOrderBy)
{
return this.OrderByPropertyName(orderPropertyName, orderByType);
}
return this;
}
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null)
{
base.OrderByPropertyName(orderPropertyName, orderByType);

View File

@ -20,6 +20,14 @@ namespace SqlSugar
this.QueryBuilder.Hints = hints;
return this;
}
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10,T11> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null)
{
if (isOrderBy)
{
return this.OrderByPropertyName(orderPropertyName, orderByType);
}
return this;
}
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10,T11> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null)
{
base.OrderByPropertyName(orderPropertyName, orderByType);
@ -757,6 +765,14 @@ namespace SqlSugar
this.QueryBuilder.Hints = hints;
return this;
}
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11,T12> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null)
{
if (isOrderBy)
{
return this.OrderByPropertyName(orderPropertyName, orderByType);
}
return this;
}
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11,T12> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null)
{
base.OrderByPropertyName(orderPropertyName, orderByType);

View File

@ -115,6 +115,7 @@ namespace SqlSugar
ISugarQueryable<T> OrderBy(string orderByFields);
ISugarQueryable<T> OrderByPropertyName(string orderPropertyName,OrderByType? orderByType=null);
ISugarQueryable<T> OrderByPropertyNameIF(bool isOrderBy,string orderPropertyName, OrderByType? orderByType = null);
ISugarQueryable<T> OrderBy(Expression<Func<T, object>> expression, OrderByType type = OrderByType.Asc);
ISugarQueryable<T> OrderByDescending(Expression<Func<T, object>> expression);
ISugarQueryable<T> OrderByIF(bool isOrderBy, string orderByFields);
@ -375,6 +376,7 @@ namespace SqlSugar
#region OrderBy
new ISugarQueryable<T,T2> OrderBy(List<OrderByModel> models);
new ISugarQueryable<T,T2> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T,T2> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T,T2> OrderByDescending(Expression<Func<T, object>> expression);
ISugarQueryable<T, T2> OrderByDescending(Expression<Func<T,T2, object>> expression);
new ISugarQueryable<T, T2> OrderBy(string orderByFields);
@ -506,6 +508,7 @@ namespace SqlSugar
#region OrderBy
new ISugarQueryable<T, T2,T3> OrderBy(List<OrderByModel> models);
new ISugarQueryable<T,T2,T3> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2,T3> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2,T3> OrderByDescending(Expression<Func<T, object>> expression);
ISugarQueryable<T, T2,T3> OrderByDescending(Expression<Func<T, T2, object>> expression);
ISugarQueryable<T, T2, T3> OrderByDescending(Expression<Func<T, T2,T3, object>> expression);
@ -653,6 +656,7 @@ namespace SqlSugar
#region OrderBy
new ISugarQueryable<T, T2, T3,T4> OrderBy(List<OrderByModel> models);
new ISugarQueryable<T, T2, T3,T4> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3,T4> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3,T4> OrderByDescending(Expression<Func<T, object>> expression);
ISugarQueryable<T, T2, T3, T4> OrderByDescending(Expression<Func<T, T2, object>> expression);
ISugarQueryable<T, T2, T3, T4> OrderByDescending(Expression<Func<T, T2, T3, object>> expression);
@ -806,6 +810,7 @@ namespace SqlSugar
#region OrderBy
new ISugarQueryable<T, T2, T3, T4,T5> OrderBy(List<OrderByModel> models);
new ISugarQueryable<T, T2, T3, T4,T5> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3, T4,T5> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3, T4, T5> OrderByDescending(Expression<Func<T, object>> expression);
ISugarQueryable<T, T2, T3, T4, T5> OrderByDescending(Expression<Func<T, T2, object>> expression);
ISugarQueryable<T, T2, T3, T4, T5> OrderByDescending(Expression<Func<T, T2, T3, object>> expression);
@ -950,6 +955,7 @@ namespace SqlSugar
#region OrderBy
new ISugarQueryable<T, T2, T3, T4, T5,T6> OrderBy(List<OrderByModel> models);
new ISugarQueryable<T, T2, T3, T4, T5,T6> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3, T4, T5,T6> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3, T4, T5, T6> OrderByDescending(Expression<Func<T, object>> expression);
ISugarQueryable<T, T2, T3, T4, T5, T6> OrderByDescending(Expression<Func<T, T2, object>> expression);
@ -1105,6 +1111,7 @@ namespace SqlSugar
#region OrderBy
new ISugarQueryable<T, T2, T3, T4, T5, T6,T7> OrderBy(List<OrderByModel> models);
new ISugarQueryable<T, T2, T3, T4, T5, T6,T7> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3, T4, T5, T6,T7> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3, T4, T5, T6,T7> OrderByDescending(Expression<Func<T, object>> expression);
ISugarQueryable<T, T2, T3, T4, T5, T6,T7> OrderByDescending(Expression<Func<T, T2, object>> expression);
@ -1255,6 +1262,7 @@ namespace SqlSugar
#region OrderBy
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7,T8> OrderBy(List<OrderByModel> models);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7,T8> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7,T8> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7,T8> OrderByDescending(Expression<Func<T, object>> expression);
ISugarQueryable<T, T2, T3, T4, T5, T6, T7,T8> OrderByDescending(Expression<Func<T, T2, object>> expression);
@ -1401,6 +1409,7 @@ namespace SqlSugar
ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9> OrderByDescending(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8,T9, object>> expression);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8,T9> OrderBy(List<OrderByModel> models);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8,T9> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8,T9> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8,T9> OrderBy(string orderByFields);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9> OrderBy(Expression<Func<T, object>> expression, OrderByType type = OrderByType.Asc);
@ -1543,6 +1552,7 @@ namespace SqlSugar
ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> OrderByDescending(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9,T10, object>> expression);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10> OrderBy(List<OrderByModel> models);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8,T9,T10> OrderBy(string orderByFields);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> OrderBy(Expression<Func<T, object>> expression, OrderByType type = OrderByType.Asc);
ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> OrderBy(Expression<Func<T, T2, object>> expression, OrderByType type = OrderByType.Asc);
@ -1680,6 +1690,7 @@ namespace SqlSugar
#region OrderBy
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10,T11> OrderBy(List<OrderByModel> models);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10,T11> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10,T11> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10,T11> OrderBy(string orderByFields);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> OrderBy(Expression<Func<T, object>> expression, OrderByType type = OrderByType.Asc);
@ -1808,6 +1819,7 @@ namespace SqlSugar
#region OrderBy
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11,T12> OrderBy(List<OrderByModel> models);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11,T12> OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11,T12> OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11,T12> OrderBy(string orderByFields);
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> OrderBy(Expression<Func<T, object>> expression, OrderByType type = OrderByType.Asc);