![]() |
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.
|
Public Member Functions | |
DatabaseSettings () | |
Static Public Member Functions | |
static DatabaseSettings | GetDatabaseSettings (IConfigurationSource configurationSource) |
Retrieves the DatabaseSettings from a configuration source. More... | |
Static Public Attributes | |
const string | SectionName = "dataConfiguration" |
The name of the data configuration section. More... | |
Properties | |
string | DefaultDatabase [get, set] |
NamedElementCollection< DbProviderMapping > | ProviderMappings [get] |
Holds the optional mappings from ADO.NET's database providers to Enterprise Library's database types. More... | |
Represents the root configuration for data.
The class maps to the databaseSettings
element in configuration.
Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings.DatabaseSettings | ( | ) |
Initializes a new instance of the DatabaseSettings class.
|
static |
Retrieves the DatabaseSettings from a configuration source.
configurationSource | The IConfigurationSource to query for the database settings. |
ArgumentNullException | configurationSource is null. |
|
static |
The name of the data configuration section.
|
getset |
Gets or sets the default database instance name.
The default database instance name.
This property maps to the defaultInstance
element in configuration.
|
get |
Holds the optional mappings from ADO.NET's database providers to Enterprise Library's database types.