Reference > Configuration > Runtime

Connection Strings

Configure options for providing a connection string to dbExpression.

Generically specify a factory type

Syntax

Use<T>()

Arguments

T
The generic parameter that specifies the type that implements `IConnectionStringFactory`. `T` must have a public parameterless constructor.
syntax examples

Use a static string

Syntax

Use({connection_string})

Arguments

connection_string
The connection string dbExpression will use to connect to the database.
syntax examples

Use a factory

Syntax

Use({factory})

Arguments

factory
A factory that returns a connection string.
syntax examples
Previous
Output Options

© 2024 dbExpression. All rights reserved.