Reference > Configuration > Runtime

Database Connections

Configure options for the services responsible for creating database connections.

core concept: connection

Generically specify type

Syntax

Use<T>()

Arguments

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

Use a factory

Syntax

Use({factory})

Arguments

factory
A factory responsible for returning a connection.
syntax examples
Previous
Statement Executor

© 2024 dbExpression. All rights reserved.