Class SqlSyntaxProviders
Used to return the correct syntax provider for a given provider name
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public sealed class SqlSyntaxProviders
Constructors
SqlSyntaxProviders(IEnumerable<ISqlSyntaxProvider>)
Constructor
Declaration
public SqlSyntaxProviders(IEnumerable<ISqlSyntaxProvider> syntaxProviders)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ISqlSyntaxProvider> | syntaxProviders |
Methods
GetByProviderNameOrDefault(String)
Gets a ISqlSyntaxProvider by its attributed provider.
Declaration
public ISqlSyntaxProvider GetByProviderNameOrDefault(string providerName)
Parameters
Type | Name | Description |
---|---|---|
System.String | providerName | ProviderName from the ConnectionString settings |
Returns
Type | Description |
---|---|
ISqlSyntaxProvider | ISqlSyntaxProvider that corresponds to the attributed provider or the default Sql Server Syntax Provider. |