DbConnectionString<T, TBuilder>
Class DbConnectionString<T, TBuilder>
IDbConnectionString base
Inheritance
Implements
Inherited Members
Namespace: ETLBox
Assembly: ETLBox.dll
Syntax
Type Parameters
Name | Description |
---|---|
T | Derived type |
TBuilder | The underlying ADO.NET connection string builder |
Constructors
DbConnectionString()
Declaration
DbConnectionString(string)
Declaration
Parameters
Type | Name | Description |
---|---|---|
string | value |
Properties
Builder
The underlying ADO.NET ConnectionStringBuilder
Declaration
Property Value
Type | Description |
---|---|
TBuilder |
DbName
The database name
Declaration
Property Value
Type | Description |
---|---|
string |
DbNameKeyword
The keyword used in the connection string to identify a database
Declaration
Property Value
Type | Description |
---|---|
string |
MasterDbName
The name of the master database (if applicable)
Declaration
Property Value
Type | Description |
---|---|
string |
Value
The connection string value, e.g. "Server=localhost;Database=etlbox;"
Declaration
Property Value
Type | Description |
---|---|
string |
Methods
Clone()
Clones the current connection string
Declaration
Returns
Type | Description |
---|---|
T | A copy of the current connection string |
CloneWithMasterDbName()
Clones the current connection string with the master database name (if applicable)
Declaration
Returns
Type | Description |
---|---|
T | The new connection string with master database name |
CloneWithNewDbName(string)
Clone the current connection string with a new database name
Declaration
Parameters
Type | Name | Description |
---|---|---|
string | value | The new database name |
Returns
Type | Description |
---|---|
T | The new connection string |
CloneWithoutDbName()
Clones the current connection string with removing the database name
Declaration
Returns
Type | Description |
---|---|
T | The new connection string without database name |
ToString()
Returns the connection string Value
Declaration
Returns
Type | Description |
---|---|
string | The new connection string |