SqlConnectionString

Class SqlConnectionString

A helper class for encapsulating a conection string to a sql server in an object. Internally the SqlConnectionStringBuilder is used to access the values of the given connection string.

Namespace: ETLBox.SqlServer
Assembly: ETLBox.SqlServer.dll
Syntax
    public class SqlConnectionString : DbConnectionString<SqlConnectionString, SqlConnectionStringBuilder>, IDbConnectionString

Constructors

SqlConnectionString()

Declaration
    public SqlConnectionString()

SqlConnectionString(string)

Declaration
    public SqlConnectionString(string value)
Parameters
TypeNameDescription
stringvalue

Properties

DbName

The database name

Declaration
    public override string DbName { get; set; }
Property Value
TypeDescription
string
Overrides
ETLBox.DbConnectionString<ETLBox.SqlServer.SqlConnectionString, Microsoft.Data.SqlClient.SqlConnectionStringBuilder>.DbName

DbNameKeyword

The keyword used in the connection string to identify a database

Declaration
    protected override string DbNameKeyword { get; }
Property Value
TypeDescription
string
Overrides
ETLBox.DbConnectionString<ETLBox.SqlServer.SqlConnectionString, Microsoft.Data.SqlClient.SqlConnectionStringBuilder>.DbNameKeyword

MasterDbName

The name of the master database (if applicable)

Declaration
    public override string MasterDbName { get; }
Property Value
TypeDescription
string
Overrides
ETLBox.DbConnectionString<ETLBox.SqlServer.SqlConnectionString, Microsoft.Data.SqlClient.SqlConnectionStringBuilder>.MasterDbName

Value

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

Declaration
    public override string Value { get; set; }
Property Value
TypeDescription
string
Overrides
ETLBox.DbConnectionString<ETLBox.SqlServer.SqlConnectionString, Microsoft.Data.SqlClient.SqlConnectionStringBuilder>.Value

Operators

implicit operator SqlConnectionString(string)

Declaration
    public static implicit operator SqlConnectionString(string value)
Parameters
TypeNameDescription
stringvalue
Returns
TypeDescription
SqlConnectionString

Implements