Interface IDbConnectionString
The generic defintion of a connection string
Namespace: ETLBox.Connection
Assembly: ETLBox.dll
Syntax
public interface IDbConnectionString
Properties
DbName
The database name
Declaration
string DbName { get; set; }
Property Value
Type | Description |
---|---|
string |
MasterDbName
The name of the master database (if applicable)
Declaration
string MasterDbName { get; }
Property Value
Type | Description |
---|---|
string |
Value
The connection string value, e.g. "Server=localhost;Database=etlbox;"
Declaration
string Value { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
Clone()
Creates a copy of the current connection
Declaration
IDbConnectionString Clone()
Returns
Type | Description |
---|---|
IDbConnectionString | A copy of the connection string |
CloneWithMasterDbName()
Clone the current connection string with the master database
Declaration
IDbConnectionString CloneWithMasterDbName()
Returns
Type | Description |
---|---|
IDbConnectionString | The new connection string |
CloneWithNewDbName(string)
Clone the current connection string with a new database name
Declaration
IDbConnectionString CloneWithNewDbName(string value = null)
Parameters
Type | Name | Description |
---|---|---|
string | value | The new database name |
Returns
Type | Description |
---|---|
IDbConnectionString | The new connection string |
ToString()
Returns the connection string Value
Declaration
string ToString()
Returns
Type | Description |
---|---|
string | The new connection string |