23 lines
735 B
C#
23 lines
735 B
C#
|
|
using System;
|
|||
|
|
|
|||
|
|
namespace Umbraco.Core.Persistence.SqlSyntax
|
|||
|
|
{
|
|||
|
|
internal static class SyntaxConfig
|
|||
|
|
{
|
|||
|
|
private static ISqlSyntaxProvider _sqlSyntaxProvider;
|
|||
|
|
|
|||
|
|
public static ISqlSyntaxProvider SqlSyntaxProvider
|
|||
|
|
{
|
|||
|
|
get
|
|||
|
|
{
|
|||
|
|
if(_sqlSyntaxProvider == null)
|
|||
|
|
{
|
|||
|
|
throw new ArgumentNullException("SqlSyntaxProvider",
|
|||
|
|
"You must set the singleton 'Umbraco.Core.Persistence.SqlSyntax.SyntaxConfig' to use an sql syntax provider");
|
|||
|
|
}
|
|||
|
|
return _sqlSyntaxProvider;
|
|||
|
|
}
|
|||
|
|
set { _sqlSyntaxProvider = value; }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|