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
df17a96a42
commit
38ffb9b51d
@ -20,6 +20,12 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
public partial class SqlServerMethod : DefaultDbMethod, IDbMethods
|
public partial class SqlServerMethod : DefaultDbMethod, IDbMethods
|
||||||
{
|
{
|
||||||
|
public override string JsonArrayLength(MethodCallExpressionModel model)
|
||||||
|
{
|
||||||
|
var parameter = model.Args[0];
|
||||||
|
return $" (SELECT COUNT(*) FROM OPENJSON({parameter.MemberName})) ";
|
||||||
|
}
|
||||||
|
|
||||||
public override string JsonIndex(MethodCallExpressionModel model)
|
public override string JsonIndex(MethodCallExpressionModel model)
|
||||||
{
|
{
|
||||||
var parameter = model.Args[0];
|
var parameter = model.Args[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user