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.Sql.Configuration.SqlDatabaseData Class Reference

Describes a SqlDatabase instance, aggregating information from a ConnectionStringSettings. More...

Inheritance diagram for Microsoft.Practices.EnterpriseLibrary.Data.Sql.Configuration.SqlDatabaseData:
Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseData

Public Member Functions

 SqlDatabaseData (ConnectionStringSettings connectionStringSettings, Func< string, ConfigurationSection > configurationSource)
 Initializes a new instance of the SqlDatabase class with a connection string and a configuration source. /summary> param name="connectionStringSettings">The ConnectionStringSettings for the represented database.param name="configurationSource">The IConfigurationSource from which additional information can be retrieved if necessary.
 
override Database BuildDatabase ()
 Builds the Database represented by this configuration object. 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 SqlDatabase instance, aggregating information from a ConnectionStringSettings.

Member Function Documentation

◆ BuildDatabase()

override Database Microsoft.Practices.EnterpriseLibrary.Data.Sql.Configuration.SqlDatabaseData.BuildDatabase ( )
virtual

Builds the Database represented by this configuration object.

Returns
A database.

Implements Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseData.

Property Documentation

◆ ConfigurationSource

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

Gets the function to access configuration information.

◆ ConnectionString

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

Gets the connection string for the represented database.

◆ ConnectionStringSettings

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

Gets the ConnectionStringSettings for the database data.

◆ Name

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

Gets the name for the represented database.


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