mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Synchronization code
This commit is contained in:
@@ -35,7 +35,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (!IsDefaultValue(navPropertyValue)&& isManyPk==false)
|
if (!IsDefaultValue(navPropertyValue)&& isManyPk==false&& parentPkColumn.IsIdentity==false)
|
||||||
{
|
{
|
||||||
this._Context.Updateable<DbTableInfo>
|
this._Context.Updateable<DbTableInfo>
|
||||||
().AS(parentEntity.DbTableName)
|
().AS(parentEntity.DbTableName)
|
||||||
|
@@ -1078,6 +1078,18 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ISugarQueryable<T> GroupByIF(bool isGroupBy, string groupFields)
|
||||||
|
{
|
||||||
|
if (isGroupBy)
|
||||||
|
{
|
||||||
|
GroupBy(groupFields);
|
||||||
|
}
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public virtual ISugarQueryable<T> OrderByIF(bool isOrderBy, string orderFileds)
|
public virtual ISugarQueryable<T> OrderByIF(bool isOrderBy, string orderFileds)
|
||||||
{
|
{
|
||||||
if (isOrderBy)
|
if (isOrderBy)
|
||||||
|
@@ -117,6 +117,8 @@ namespace SqlSugar
|
|||||||
ISugarQueryable<T> GroupBy(string groupFileds);
|
ISugarQueryable<T> GroupBy(string groupFileds);
|
||||||
ISugarQueryable<T> GroupByIF(bool isGroupBy, Expression<Func<T, object>> expression);
|
ISugarQueryable<T> GroupByIF(bool isGroupBy, Expression<Func<T, object>> expression);
|
||||||
|
|
||||||
|
ISugarQueryable<T> GroupByIF(bool isGroupBy, string groupFields);
|
||||||
|
|
||||||
ISugarQueryable<T> PartitionBy(Expression<Func<T, object>> expression);
|
ISugarQueryable<T> PartitionBy(Expression<Func<T, object>> expression);
|
||||||
ISugarQueryable<T> PartitionBy(string groupFileds);
|
ISugarQueryable<T> PartitionBy(string groupFileds);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user