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.DatabaseProviderFactory Class Reference

More...

Public Member Functions

 DatabaseProviderFactory ()
 Initializes a new instance of the DatabaseProviderFactory class with the default configuration source. More...
 
 DatabaseProviderFactory (IConfigurationSource configurationSource)
 Initializes a new instance of the DatabaseProviderFactory class with the given configuration source. More...
 
 DatabaseProviderFactory (Func< string, ConfigurationSection > configurationAccessor)
 Initializes a new instance of the DatabaseProviderFactory class with the given configuration accessor. More...
 
Database CreateDefault ()
 Returns a new Database instance based on the default instance configuration. More...
 
Database Create (string name)
 Returns a new Database instance based on the configuration for name . More...
 

Detailed Description

Represents a factory for creating named instances of Database objects.

Constructor & Destructor Documentation

◆ DatabaseProviderFactory() [1/3]

Microsoft.Practices.EnterpriseLibrary.Data.DatabaseProviderFactory.DatabaseProviderFactory ( )

Initializes a new instance of the DatabaseProviderFactory class with the default configuration source.

◆ DatabaseProviderFactory() [2/3]

Microsoft.Practices.EnterpriseLibrary.Data.DatabaseProviderFactory.DatabaseProviderFactory ( IConfigurationSource  configurationSource)

Initializes a new instance of the DatabaseProviderFactory class with the given configuration source.

Parameters
configurationSourceThe source for configuration information.

◆ DatabaseProviderFactory() [3/3]

Microsoft.Practices.EnterpriseLibrary.Data.DatabaseProviderFactory.DatabaseProviderFactory ( Func< string, ConfigurationSection >  configurationAccessor)

Initializes a new instance of the DatabaseProviderFactory class with the given configuration accessor.

Parameters
configurationAccessorThe source for configuration information.

Member Function Documentation

◆ Create()

Database Microsoft.Practices.EnterpriseLibrary.Data.DatabaseProviderFactory.Create ( string  name)

Returns a new Database instance based on the configuration for name .

Parameters
nameThe name of the required instance.
Returns
A new Database instance.

◆ CreateDefault()

Database Microsoft.Practices.EnterpriseLibrary.Data.DatabaseProviderFactory.CreateDefault ( )

Returns a new Database instance based on the default instance configuration.

Returns
A new Database instance.

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