Add Util.EscapeLikeValue

This commit is contained in:
sunkaixuan
2025-04-30 12:15:21 +08:00
parent 1b215aa56d
commit 2b0d2a64f6
2 changed files with 7 additions and 0 deletions

View File

@@ -1264,5 +1264,11 @@ namespace SqlSugar
}
#endregion
#region Other
public string EscapeLikeValue(string value, char wildcard = '%')
{
return UtilMethods.EscapeLikeValue(this.Context, value, wildcard);
}
#endregion
}
}

View File

@@ -51,5 +51,6 @@ namespace SqlSugar
DataTable DictionaryListToDataTable(List<Dictionary<string, object>> dictionaryList);
List<T> ToTree<T>(List<T> list, Expression<Func<T, IEnumerable<object>>> childListExpression, Expression<Func<T, object>> parentIdExpression, Expression<Func<T, object>> pkExpression, object rootValue);
KeyValuePair<string, SugarParameter[]> ConditionalModelsToSql(List<IConditionalModel> conditionalModels, int beginIndex = 0);
string EscapeLikeValue(string value, char wildcard = '%');
}
}