mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Synchronization code
This commit is contained in:
@@ -76,6 +76,14 @@ namespace SqlSugar
|
||||
throw new NotSupportedException("Can only be used in expressions");
|
||||
}
|
||||
public static int Rank(object orderByField)
|
||||
{
|
||||
throw new NotSupportedException("Can only be used in expressions");
|
||||
}
|
||||
public static int DenseRank(object orderByField, object partitionBy)
|
||||
{
|
||||
throw new NotSupportedException("Can only be used in expressions");
|
||||
}
|
||||
public static int DenseRank(object orderByField)
|
||||
{
|
||||
throw new NotSupportedException("Can only be used in expressions");
|
||||
}
|
||||
|
@@ -911,6 +911,8 @@ namespace SqlSugar
|
||||
return this.Context.DbMehtods.RowNumber(model);
|
||||
case "Rank":
|
||||
return this.Context.DbMehtods.RowNumber(model).Replace("row_number() over(", " rank() over(");
|
||||
case "DenseRank":
|
||||
return this.Context.DbMehtods.RowNumber(model).Replace("row_number() over(", " dense_rank() over(");
|
||||
case "RowCount":
|
||||
return this.Context.DbMehtods.RowCount(model);
|
||||
case "RowSum":
|
||||
|
Reference in New Issue
Block a user