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
TypeDescription
System.String

MasterDbName

The name of the master database (if applicable)

Declaration
    string MasterDbName { get; }
Property Value
TypeDescription
System.String

Value

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

Declaration
    string Value { get; set; }
Property Value
TypeDescription
System.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
System.Stringvalue

The new database name

Returns
TypeDescription
IDbConnectionString

The new connection string

ToString()

Returns the connection string Value

Declaration
    string ToString()
Returns
TypeDescription
System.String

The new connection string