Synchronization code

This commit is contained in:
sunkaixuan 2023-03-27 15:31:00 +08:00
parent eaa5026879
commit 211ca918fb

View File

@ -2,6 +2,7 @@
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Globalization;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
@ -316,6 +317,12 @@ namespace SqlSugar
return $" NLSSORT({0}, 'NLS_SORT = Latin_CI') ";
}
public override string JsonField(MethodCallExpressionModel model)
{
return $"JSON_VALUE({model.Args[0].MemberName}, '$.{model.Args[1].MemberValue.ToString().ToSqlFilter()}')";
//"JSON_VALUE(j.kingorder, '$.Id') = '1'";
}
public override string CharIndex(MethodCallExpressionModel model)
{
return string.Format("instr ({0},{1},1,1) ", model.Args[0].MemberName, model.Args[1].MemberName);