DatabaseProviderExtensions.AnotherDatabaseType Method

A database with the specified database provider name.

Namespace: Microsoft.Practices.EnterpriseLibrary.Common.Configuration
Assembly: Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function AnotherDatabaseType ( _
    context As IDatabaseConfigurationProviders, _
    providerName As String _
) As IDatabaseAnotherDatabaseConfiguration
public static IDatabaseAnotherDatabaseConfiguration AnotherDatabaseType(
    this IDatabaseConfigurationProviders context,
    string providerName
)
[ExtensionAttribute]
public:
static IDatabaseAnotherDatabaseConfiguration^ AnotherDatabaseType(
    IDatabaseConfigurationProviders^ context, 
    String^ providerName
)
public static function AnotherDatabaseType(
    context : IDatabaseConfigurationProviders, 
    providerName : String
) : IDatabaseAnotherDatabaseConfiguration

Parameters

  • providerName
    Type: System.String
    The provider name to use for this database connection

Return Value

See Also

DatabaseProviderExtensions Class

Microsoft.Practices.EnterpriseLibrary.Common.Configuration Namespace

System.Data.Common.DbProviderFactories