Add SqlFunc.SplitIn(+3)

This commit is contained in:
sunkaixuan 2023-07-16 16:05:45 +08:00
parent f2ab18a100
commit 27d8d3cee5
2 changed files with 11 additions and 0 deletions

View File

@ -770,6 +770,12 @@ namespace SqlSugar
var value1 = MergeString(value, "','");
var value2 = MergeString("','", value);
var value3 = MergeString("','", value, "','");
if (model.Args.Count == 3)
{
value1 = value1.Replace("','", model.Args[2].MemberName+"" );
value2 = value2.Replace("','", model.Args[2].MemberName + "" );
value3 = value3.Replace("','", model.Args[2].MemberName + "" );
}
var likeString1 =
StartsWith(new MethodCallExpressionModel() { Args = new List<MethodCallExpressionArgs>() {
new MethodCallExpressionArgs(){ IsMember=true, MemberName=fullString },

View File

@ -344,6 +344,11 @@ namespace SqlSugar
throw new NotSupportedException("Can only be used in expressions");
}
public static bool SplitIn(string CommaSegmentationString, string inValue,char splitChar)
{
throw new NotSupportedException("Can only be used in expressions");
}
public static bool ListAny<T>(List<T> listConstant, Expression<Func<T,bool>> expression)
{
throw new NotSupportedException("Can only be used in expressions");