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) Version: (6.0.1304.0)

public static IDatabaseAnotherDatabaseConfiguration AnotherDatabaseType(
	this IDatabaseConfigurationProviders context,
	string providerName


Type: Microsoft.Practices.EnterpriseLibrary.Data.Configuration.Fluent.IDatabaseConfigurationProviders
Extension context for fluent-interface
Type: System.String
The provider name to use for this database connection

Return Value

Type: IDatabaseAnotherDatabaseConfiguration

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDatabaseConfigurationProviders. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).