WIP membership provider updates

This commit is contained in:
Shannon
2013-12-19 18:33:25 +11:00
parent c589c741e8
commit 2dd04799b2
17 changed files with 2094 additions and 2015 deletions

View File

@@ -90,6 +90,20 @@ namespace Umbraco.Core.Persistence.SqlSyntax
}
}
public override string GetStringColumnWildcardComparison(string column, string value, TextColumnType columnType)
{
switch (columnType)
{
case TextColumnType.NVarchar:
return base.GetStringColumnContainsComparison(column, value, columnType);
case TextColumnType.NText:
//MSSQL doesn't allow for upper methods with NText columns
return string.Format("{0} LIKE '{1}'", column, value);
default:
throw new ArgumentOutOfRangeException("columnType");
}
}
public override string GetQuotedTableName(string tableName)
{
return string.Format("[{0}]", tableName);