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.

Inheritance
System.Object
DbConnectionString<SqlConnectionString, Microsoft.Data.SqlClient.SqlConnectionStringBuilder>
SqlConnectionString
Namespace: ETLBox.Connection
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
System.Stringvalue

Properties

DbName

The database name

Declaration
    public override string DbName { get; set; }
Property Value
TypeDescription
System.String
Overrides
ETLBox.Connection.DbConnectionString<ETLBox.Connection.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
System.String
Overrides
ETLBox.Connection.DbConnectionString<ETLBox.Connection.SqlConnectionString, Microsoft.Data.SqlClient.SqlConnectionStringBuilder>.DbNameKeyword

MasterDbName

The name of the master database (if applicable)

Declaration
    public override string MasterDbName { get; }
Property Value
TypeDescription
System.String
Overrides
ETLBox.Connection.DbConnectionString<ETLBox.Connection.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
System.String
Overrides
ETLBox.Connection.DbConnectionString<ETLBox.Connection.SqlConnectionString, Microsoft.Data.SqlClient.SqlConnectionStringBuilder>.Value

Operators

Implicit(String to SqlConnectionString)

Declaration
    public static implicit operator SqlConnectionString(string value)
Parameters
TypeNameDescription
System.Stringvalue
Returns
TypeDescription
SqlConnectionString

Implements