mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-25 01:14:33 +08:00
Synchronization code
This commit is contained in:
parent
ce013315e4
commit
992f1db80c
@ -70,6 +70,16 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
throw new NotSupportedException("Can only be used in expressions");
|
throw new NotSupportedException("Can only be used in expressions");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static int Rank(object orderByField, object partitionBy)
|
||||||
|
{
|
||||||
|
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 RowCount(object countFiledName,object orderByField, object partitionBy)
|
public static int RowCount(object countFiledName,object orderByField, object partitionBy)
|
||||||
{
|
{
|
||||||
throw new NotSupportedException("Can only be used in expressions");
|
throw new NotSupportedException("Can only be used in expressions");
|
||||||
|
@ -909,6 +909,8 @@ namespace SqlSugar
|
|||||||
return this.Context.DbMehtods.Stuff(model);
|
return this.Context.DbMehtods.Stuff(model);
|
||||||
case "RowNumber":
|
case "RowNumber":
|
||||||
return this.Context.DbMehtods.RowNumber(model);
|
return this.Context.DbMehtods.RowNumber(model);
|
||||||
|
case "Rank":
|
||||||
|
return this.Context.DbMehtods.RowNumber(model).Replace("row_number() over(", " rank() over(");
|
||||||
case "RowCount":
|
case "RowCount":
|
||||||
return this.Context.DbMehtods.RowCount(model);
|
return this.Context.DbMehtods.RowCount(model);
|
||||||
case "RowSum":
|
case "RowSum":
|
||||||
|
Loading…
Reference in New Issue
Block a user