Add managed connection pooling and execution locking

This commit is contained in:
2026-02-27 17:28:50 +01:00
parent e43d7863ec
commit aedb97e879
12 changed files with 1554 additions and 348 deletions

View File

@@ -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