mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Synchronization code
This commit is contained in:
parent
162d713f19
commit
d21da35225
@ -384,6 +384,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
value = columnInfo.DefaultValue;
|
value = columnInfo.DefaultValue;
|
||||||
}
|
}
|
||||||
|
else if (columnInfo.DataType.ObjToString().ToLower().IsIn("int","int4","bigint","int8","int2")&& columnInfo.DefaultValue.IsInt())
|
||||||
|
{
|
||||||
|
value = columnInfo.DefaultValue;
|
||||||
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
public virtual bool UpdateColumn(string tableName, DbColumnInfo column)
|
public virtual bool UpdateColumn(string tableName, DbColumnInfo column)
|
||||||
|
@ -1341,7 +1341,7 @@ namespace SqlSugar
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
public virtual ISugarQueryable<T> GroupBy(Expression<Func<T, object>> expression)
|
public virtual ISugarQueryable<T> GroupBy(Expression<Func<T, object>> expression)
|
||||||
{
|
{
|
||||||
_GroupBy(expression);
|
_GroupBy(expression);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -3034,6 +3034,11 @@ namespace SqlSugar
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Other
|
#region Other
|
||||||
|
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9> Distinct()
|
||||||
|
{
|
||||||
|
QueryBuilder.IsDistinct = true;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9> Take(int num)
|
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9> Take(int num)
|
||||||
{
|
{
|
||||||
QueryBuilder.Take = num;
|
QueryBuilder.Take = num;
|
||||||
@ -3832,6 +3837,11 @@ namespace SqlSugar
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Other
|
#region Other
|
||||||
|
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> Distinct()
|
||||||
|
{
|
||||||
|
QueryBuilder.IsDistinct = true;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> Take(int num)
|
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> Take(int num)
|
||||||
{
|
{
|
||||||
QueryBuilder.Take = num;
|
QueryBuilder.Take = num;
|
||||||
|
@ -644,6 +644,11 @@ namespace SqlSugar
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Other
|
#region Other
|
||||||
|
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10,T11> Distinct()
|
||||||
|
{
|
||||||
|
QueryBuilder.IsDistinct = true;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Take(int num)
|
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Take(int num)
|
||||||
{
|
{
|
||||||
QueryBuilder.Take = num;
|
QueryBuilder.Take = num;
|
||||||
@ -1290,6 +1295,11 @@ namespace SqlSugar
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Other
|
#region Other
|
||||||
|
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11,T12> Distinct()
|
||||||
|
{
|
||||||
|
QueryBuilder.IsDistinct = true;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Take(int num)
|
public new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Take(int num)
|
||||||
{
|
{
|
||||||
QueryBuilder.Take = num;
|
QueryBuilder.Take = num;
|
||||||
|
@ -1460,6 +1460,7 @@ namespace SqlSugar
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Other
|
#region Other
|
||||||
|
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8,T9> Distinct();
|
||||||
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9> Take(int num);
|
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9> Take(int num);
|
||||||
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9> Clone();
|
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9> Clone();
|
||||||
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9> AS<AsT>(string tableName);
|
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9> AS<AsT>(string tableName);
|
||||||
@ -1607,6 +1608,7 @@ namespace SqlSugar
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Other
|
#region Other
|
||||||
|
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10> Distinct();
|
||||||
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10> Take(int num);
|
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10> Take(int num);
|
||||||
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> Clone();
|
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> Clone();
|
||||||
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> AS<AsT>(string tableName);
|
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> AS<AsT>(string tableName);
|
||||||
@ -1747,6 +1749,7 @@ namespace SqlSugar
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Other
|
#region Other
|
||||||
|
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10,T11> Distinct();
|
||||||
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10,T11> Take(int num);
|
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10,T11> Take(int num);
|
||||||
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Clone();
|
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Clone();
|
||||||
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> AS<AsT>(string tableName);
|
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> AS<AsT>(string tableName);
|
||||||
@ -1879,6 +1882,7 @@ namespace SqlSugar
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Other
|
#region Other
|
||||||
|
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11,T12> Distinct();
|
||||||
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Take(int num);
|
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Take(int num);
|
||||||
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Clone();
|
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Clone();
|
||||||
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> AS<AsT>(string tableName);
|
new ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> AS<AsT>(string tableName);
|
||||||
|
Loading…
Reference in New Issue
Block a user