Synchronization code

This commit is contained in:
sunkaixuan 2023-11-08 15:20:39 +08:00
parent df17a96a42
commit 38ffb9b51d

View File

@ -20,6 +20,12 @@ namespace SqlSugar
}
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)
{
var parameter = model.Args[0];