![]() |
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.
|
Represents the mapping from an ADO.NET provider to an Enterprise Library Database. More...
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... | |
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.
Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DbProviderMapping.DbProviderMapping | ( | ) |
Initializes a new instance of the DbProviderMapping class.
Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DbProviderMapping.DbProviderMapping | ( | string | dbProviderName, |
Type | databaseType | ||
) |
Initializes a new instance of the DbProviderMapping class with name and Database type.
dbProviderName | The ADO.NET provider name |
databaseType | The type of the database to use for the mapped ADO.NET provider |
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.
dbProviderName | The ADO.NET provider name |
databaseTypeName | The fully qualified type name of the database to use for the mapped ADO.NET provider |
|
static |
Default name for the Oracle managed provider.
|
static |
Default name for the Sql managed provider.
|
getset |
Gets or sets the type of database to use for the mapped ADO.NET provider.
|
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.
|
get |
Gets the logical name of the ADO.NET provider.
|
getset |
The name of the mapping