IDbConnectionString

Interface IDbConnectionString

The generic defintion of a connection string

Namespace: ETLBox
Assembly: ETLBox.dll
Syntax
    public interface IDbConnectionString

Properties

DbName

The database name

Declaration
    string DbName { get; set; }
Property Value
TypeDescription
string

MasterDbName

The name of the master database (if applicable)

Declaration
    string MasterDbName { get; }
Property Value
TypeDescription
string

Value

The connection string value, e.g. "Server=localhost;Database=etlbox;"

Declaration
    string Value { get; set; }
Property Value
TypeDescription
string

Methods

Clone()

Creates a copy of the current connection

Declaration
    IDbConnectionString Clone()
Returns
TypeDescription
IDbConnectionString

A copy of the connection string

CloneWithMasterDbName()

Clone the current connection string with the master database

Declaration
    IDbConnectionString CloneWithMasterDbName()
Returns
TypeDescription
IDbConnectionString

The new connection string

CloneWithNewDbName(string)

Clone the current connection string with a new database name

Declaration
    IDbConnectionString CloneWithNewDbName(string value = null)
Parameters
TypeNameDescription
stringvalue

The new database name

Returns
TypeDescription
IDbConnectionString

The new connection string

ToString()

Returns the connection string Value

Declaration
    string ToString()
Returns
TypeDescription
string

The new connection string