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.
|
ConnectionString class constructs a connection string by inserting a username and password into a template. More...
Public Member Functions | |
ConnectionString (string connectionString, string userIdTokens, string passwordTokens) | |
Initializes a new instance of the ConnectionString with a connection string, the user ID tokens and password tokens. More... | |
override string | ToString () |
Gets the formatted connection string. More... | |
string | ToStringNoCredentials () |
Gets the formatted connection string without the username and password. More... | |
ConnectionString | CreateNewConnectionString (string connectionStringToFormat) |
Formats a new connection string with a user ID and password. More... | |
Properties | |
string | UserName [get, set] |
Gets or sets the name of the user. More... | |
string | Password [get, set] |
Gets or sets the user password for the connection string. More... | |
ConnectionString class constructs a connection string by inserting a username and password into a template.
Microsoft.Practices.EnterpriseLibrary.Data.ConnectionString.ConnectionString | ( | string | connectionString, |
string | userIdTokens, | ||
string | passwordTokens | ||
) |
Initializes a new instance of the ConnectionString with a connection string, the user ID tokens and password tokens.
connectionString | The connection string. |
userIdTokens | The user id tokens that can be parsed out of the connection string. |
passwordTokens | The password tokens that can be parsed out of the connection string. |
ArgumentException | One of the parameters is null or empty. |
ConnectionString Microsoft.Practices.EnterpriseLibrary.Data.ConnectionString.CreateNewConnectionString | ( | string | connectionStringToFormat | ) |
Formats a new connection string with a user ID and password.
connectionStringToFormat | The connection string to format. |
override string Microsoft.Practices.EnterpriseLibrary.Data.ConnectionString.ToString | ( | ) |
Gets the formatted connection string.
string Microsoft.Practices.EnterpriseLibrary.Data.ConnectionString.ToStringNoCredentials | ( | ) |
Gets the formatted connection string without the username and password.
|
getset |
Gets or sets the user password for the connection string.
|
getset |
Gets or sets the name of the user.
Database username for the connection string.