Enterprise Library Data Access Application Block  7.0-rc1
The Data Access Application Block abstracts the actual database you are using, and exposes a collection of methods that make it easy to access that database and to perform common tasks.
Microsoft.Practices.EnterpriseLibrary.Data.Configuration.Fluent.IDatabaseProviderConfiguration Interface Reference

Defines the mapping options for providers. More...

Inheritance diagram for Microsoft.Practices.EnterpriseLibrary.Data.Configuration.Fluent.IDatabaseProviderConfiguration:
Microsoft.Practices.EnterpriseLibrary.Data.Configuration.Fluent.IDataConfiguration Microsoft.Practices.EnterpriseLibrary.Data.Configuration.Fluent.IDatabaseConfiguration

Public Member Functions

IDataConfiguration MappedToDatabase (Type databaseType)
 The Database to map the provider to. More...
 
IDataConfiguration MappedToDatabase< T > ()
 The Database to map the provider to. More...
 
IDatabaseProviderConfiguration WithProviderNamed (string providerName)
 Specify a custom provider name or alias to use. This must map to the name of the invariant name specified by DbProviderFactories More...
 
IDatabaseConfigurationProperties ForDatabaseNamed (string databaseName)
 Configure a named database. More...
 

Detailed Description

Defines the mapping options for providers.

Member Function Documentation

◆ ForDatabaseNamed()

IDatabaseConfigurationProperties Microsoft.Practices.EnterpriseLibrary.Data.Configuration.Fluent.IDatabaseConfiguration.ForDatabaseNamed ( string  databaseName)
inherited

Configure a named database.

Parameters
databaseNameName of database to configure
Returns

Implemented in Microsoft.Practices.EnterpriseLibrary.Data.Configuration.Fluent.DatabaseConfigurationExtension.

◆ MappedToDatabase()

IDataConfiguration Microsoft.Practices.EnterpriseLibrary.Data.Configuration.Fluent.IDatabaseProviderConfiguration.MappedToDatabase ( Type  databaseType)

The Database to map the provider to.

Parameters
databaseTypeThe Database type.
Returns
See also
GenericDatabase

◆ MappedToDatabase< T >()

The Database to map the provider to.

Template Parameters
TDatabase type to map to
Returns
See also
GenericDatabase
Type Constraints
T :Database 

◆ WithProviderNamed()

IDatabaseProviderConfiguration Microsoft.Practices.EnterpriseLibrary.Data.Configuration.Fluent.IDataConfiguration.WithProviderNamed ( string  providerName)
inherited

Specify a custom provider name or alias to use. This must map to the name of the invariant name specified by DbProviderFactories

If the provider is not mapped to a specific Enterprise Library Database class, then the GenericDatabase will be used.

Parameters
providerNameThe name of the database provider's invariant.
Returns

The documentation for this interface was generated from the following file: