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.DatabaseData Class Referenceabstract

Describes a Database instance, aggregating information from a ConnectionStringSettings and potentially other sources of configuration. More...

Inheritance diagram for Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseData:
Microsoft.Practices.EnterpriseLibrary.Data.Configuration.GenericDatabaseData Microsoft.Practices.EnterpriseLibrary.Data.Odbc.Configuration.OdbcDatabaseData Microsoft.Practices.EnterpriseLibrary.Data.OleDb.Configuration.OleDbDatabaseData Microsoft.Practices.EnterpriseLibrary.Data.Oracle.Configuration.OracleDatabaseData Microsoft.Practices.EnterpriseLibrary.Data.Sql.Configuration.SqlDatabaseData Microsoft.Practices.EnterpriseLibrary.Data.SqlCe.Configuration.SqlCeDatabaseData

Public Member Functions

abstract Database BuildDatabase ()
 Builds the Database represented by this configuration object. More...
 

Protected Member Functions

 DatabaseData (ConnectionStringSettings connectionStringSettings, Func< string, ConfigurationSection > configurationSource)
 Initializes a new instance of the DatabaseData class with a connection string and a configuration source. More...
 

Properties

ConnectionStringSettings ConnectionStringSettings [get]
 Gets the ConnectionStringSettings for the database data. More...
 
Func< string, ConfigurationSection > ConfigurationSource [get]
 Gets the function to access configuration information. More...
 
string Name [get]
 Gets the name for the represented database. More...
 
string ConnectionString [get]
 Gets the connection string for the represented database. More...
 

Detailed Description

Describes a Database instance, aggregating information from a ConnectionStringSettings and potentially other sources of configuration.

Constructor & Destructor Documentation

◆ DatabaseData()

Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseData.DatabaseData ( ConnectionStringSettings  connectionStringSettings,
Func< string, ConfigurationSection >  configurationSource 
)
protected

Initializes a new instance of the DatabaseData class with a connection string and a configuration source.

Parameters
connectionStringSettingsThe ConnectionStringSettings for the represented database.
configurationSourceThe IConfigurationSource from which additional information can be retrieved if necessary.

Member Function Documentation

◆ BuildDatabase()

Property Documentation

◆ ConfigurationSource

Func<string, ConfigurationSection> Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseData.ConfigurationSource
getprotected

Gets the function to access configuration information.

◆ ConnectionString

string Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseData.ConnectionString
get

Gets the connection string for the represented database.

◆ ConnectionStringSettings

ConnectionStringSettings Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseData.ConnectionStringSettings
getprotected

Gets the ConnectionStringSettings for the database data.

◆ Name

string Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseData.Name
get

Gets the name for the represented database.


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