Add managed connection pooling and execution locking
This commit is contained in:
@@ -31,6 +31,14 @@ using (var db = new DynamicDatabase(
|
||||
|
||||
This setup mirrors `DynamORM.Tests/TestsBase.cs`.
|
||||
|
||||
If you do not want `SingleConnection`, but still want managed reuse of open connections, enable `DynamicDatabaseOptions.ConnectionPooling` and configure:
|
||||
|
||||
- `db.ConnectionPoolingKeepOpenCount`
|
||||
- `db.ConnectionPoolingMaximumOpenCount`
|
||||
- `db.ConnectionPoolingConnectionLifetime`
|
||||
|
||||
Full details are documented in [Transactions and Disposal](transactions-and-disposal.md).
|
||||
|
||||
## First Query (Dynamic API)
|
||||
|
||||
```csharp
|
||||
|
||||
Reference in New Issue
Block a user