Synchronization code

This commit is contained in:
sunkaixuan
2024-02-13 12:49:13 +08:00
parent deed5caf5c
commit 31f0119083
2 changed files with 10 additions and 0 deletions

View File

@@ -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");
}

View File

@@ -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":