Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IDbProviderFactoryCreator

    Defines a service for creating instances of database provider factories.

    Namespace: Umbraco.Cms.Infrastructure.Persistence
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public interface IDbProviderFactoryCreator

    Methods

    View Source

    CreateBulkSqlInsertProvider(string)

    Creates a bulk SQL insert provider for the specified database provider.

    Declaration
    IBulkSqlInsertProvider CreateBulkSqlInsertProvider(string providerName)
    Parameters
    Type Name Description
    string providerName

    The name of the database provider.

    Returns
    Type Description
    IBulkSqlInsertProvider

    An instance of IBulkSqlInsertProvider.

    View Source

    CreateDatabase(string, string)

    Creates a new database using the specified provider and connection string.

    Declaration
    void CreateDatabase(string providerName, string connectionString)
    Parameters
    Type Name Description
    string providerName

    The name of the database provider.

    string connectionString

    The connection string to use for database creation.

    View Source

    CreateFactory(string?)

    Creates a System.Data.Common.DbProviderFactory instance for the specified provider name.

    Declaration
    DbProviderFactory? CreateFactory(string? providerName)
    Parameters
    Type Name Description
    string providerName

    The name of the provider to create the factory for.

    Returns
    Type Description
    DbProviderFactory

    The System.Data.Common.DbProviderFactory instance if found; otherwise, null.

    View Source

    GetProviderSpecificInterceptors(string)

    Gets the provider-specific interceptors for the specified database provider name.

    Declaration
    IEnumerable<IProviderSpecificInterceptor> GetProviderSpecificInterceptors(string providerName)
    Parameters
    Type Name Description
    string providerName

    The name of the database provider.

    Returns
    Type Description
    IEnumerable<IProviderSpecificInterceptor>

    An enumerable of provider-specific interceptors for the given provider name; returns an empty enumerable if none are found.

    View Source

    GetSqlSyntaxProvider(string)

    Gets the SQL syntax provider for the specified database provider name.

    Declaration
    ISqlSyntaxProvider GetSqlSyntaxProvider(string providerName)
    Parameters
    Type Name Description
    string providerName

    The name of the database provider.

    Returns
    Type Description
    ISqlSyntaxProvider

    An instance of Umbraco.Cms.Infrastructure.Persistence.ISqlSyntaxProvider corresponding to the provider name.

    View Source

    ProviderSpecificMappers(string)

    Returns the collection of NPoco mappers specific to the specified database provider.

    Declaration
    NPocoMapperCollection ProviderSpecificMappers(string providerName)
    Parameters
    Type Name Description
    string providerName

    The name of the database provider.

    Returns
    Type Description
    NPocoMapperCollection

    The NPoco mappers associated with the given provider.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX