Streamlines how strings are escaped with the sql expression helpers and syntax providers. Fixes: U4-4232 Umbraco.Core.Persistence.Querying issue with backslashes

This commit is contained in:
Shannon
2014-02-17 21:38:13 +11:00
parent 846f4b5b6c
commit e0dcc3afbc
8 changed files with 36 additions and 22 deletions

View File

@@ -11,6 +11,8 @@ namespace Umbraco.Core.Persistence.SqlSyntax
/// </summary>
public interface ISqlSyntaxProvider
{
string EscapeString(string val);
string GetStringColumnEqualComparison(string column, string value, TextColumnType columnType);
string GetStringColumnStartsWithComparison(string column, string value, TextColumnType columnType);
string GetStringColumnEndsWithComparison(string column, string value, TextColumnType columnType);