mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Synchronization code
This commit is contained in:
parent
eaa5026879
commit
211ca918fb
@ -2,6 +2,7 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
@ -316,6 +317,12 @@ namespace SqlSugar
|
|||||||
return $" NLSSORT({0}, 'NLS_SORT = Latin_CI') ";
|
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)
|
public override string CharIndex(MethodCallExpressionModel model)
|
||||||
{
|
{
|
||||||
return string.Format("instr ({0},{1},1,1) ", model.Args[0].MemberName, model.Args[1].MemberName);
|
return string.Format("instr ({0},{1},1,1) ", model.Args[0].MemberName, model.Args[1].MemberName);
|
||||||
|
Loading…
Reference in New Issue
Block a user