Maintains a pool of connectors.
public sealed class DbConnectorPool : IAsyncDisposable, IDisposable
name | description |
---|---|
DbConnectorPool(…) | Creates a new connector pool. |
Dispose() | Disposes the connector pool. |
DisposeAsync() | Disposes the connector pool. |
Get() | Creates a connector that delegates to a connector in the pool (or a new connector if the pool is empty). |
This is potentially useful if your ADO.NET provider doesn’t do its own connection pooling. The database connection of a pooled connector will retain whatever state it had when it was returned to the pool.