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

Represents the mapping from an ADO.NET provider to an Enterprise Library Database. More...

Inheritance diagram for Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DbProviderMapping:

Public Member Functions

 DbProviderMapping ()
 Initializes a new instance of the DbProviderMapping class. More...
 
 DbProviderMapping (string dbProviderName, Type databaseType)
 Initializes a new instance of the DbProviderMapping class with name and Database type. More...
 
 DbProviderMapping (string dbProviderName, string databaseTypeName)
 Initializes a new instance of the DbProviderMapping class with name and fully qualified type name of the Database type. More...
 

Static Public Attributes

const string DefaultSqlProviderName = "System.Data.SqlClient"
 Default name for the Sql managed provider. More...
 
const string DefaultOracleProviderName = "Oracle.ManagedDataAccess.Client"
 Default name for the Oracle managed provider. More...
 

Properties

Type DatabaseType [get, set]
 Gets or sets the type of database to use for the mapped ADO.NET provider. More...
 
string DatabaseTypeName [get, set]
 Gets or sets the fully qualified type name of the database to use for the mapped ADO.NET provider. More...
 
string DbProviderName [get]
 Gets the logical name of the ADO.NET provider. More...
 
override string Name [get, set]
 The name of the mapping More...
 

Detailed Description

Represents the mapping from an ADO.NET provider to an Enterprise Library Database.

The Enterprise Library Data Access Application Block leverages the ADO.NET provider factories. To determine what type of Database matches a given provider factory type, the DbProviderMapping configuration objects should be defined in the block's configuration section.

If a mapping is not present for a given provider type, the GenericDatabase will be used.

See also
DatabaseSyntheticConfigSettings.GetProviderMapping(string), System.Data.Common.DbProviderFactory

Constructor & Destructor Documentation

◆ DbProviderMapping() [1/3]

Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DbProviderMapping.DbProviderMapping ( )

Initializes a new instance of the DbProviderMapping class.

◆ DbProviderMapping() [2/3]

Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DbProviderMapping.DbProviderMapping ( string  dbProviderName,
Type  databaseType 
)

Initializes a new instance of the DbProviderMapping class with name and Database type.

Parameters
dbProviderNameThe ADO.NET provider name
databaseTypeThe type of the database to use for the mapped ADO.NET provider

◆ DbProviderMapping() [3/3]

Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DbProviderMapping.DbProviderMapping ( string  dbProviderName,
string  databaseTypeName 
)

Initializes a new instance of the DbProviderMapping class with name and fully qualified type name of the Database type.

Parameters
dbProviderNameThe ADO.NET provider name
databaseTypeNameThe fully qualified type name of the database to use for the mapped ADO.NET provider

Member Data Documentation

◆ DefaultOracleProviderName

const string Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DbProviderMapping.DefaultOracleProviderName = "Oracle.ManagedDataAccess.Client"
static

Default name for the Oracle managed provider.

◆ DefaultSqlProviderName

const string Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DbProviderMapping.DefaultSqlProviderName = "System.Data.SqlClient"
static

Default name for the Sql managed provider.

Property Documentation

◆ DatabaseType

Type Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DbProviderMapping.DatabaseType
getset

Gets or sets the type of database to use for the mapped ADO.NET provider.

◆ DatabaseTypeName

string Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DbProviderMapping.DatabaseTypeName
getset

Gets or sets the fully qualified type name of the database to use for the mapped ADO.NET provider.

The fully qualified type name of the database to use for the mapped ADO.NET provider.

◆ DbProviderName

string Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DbProviderMapping.DbProviderName
get

Gets the logical name of the ADO.NET provider.

◆ Name

override string Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DbProviderMapping.Name
getset

The name of the mapping


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