[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Base class for a Connection and DbCommand cache.
Implementations control the lifecycle via lifecycle methods, or may simple obtain new resources and close new resources every time.
This is not a pool - a cache is associated with one client class and that class is expected to use cache methods in well-defined order of get, done-with and destroy.
The following tables list the members exposed by the ConnectionCache type.
Public Methods
Name | Description | |
---|---|---|
![]() | Destroy | Destroys cache closing all resources cached, if any. |
![]() | Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
![]() | DoneWith | Indicate to return the connection and statement pair after use. |
![]() | Equals | (Inherited from Object.) |
![]() | GetConnection | Returns a cached or new connection and statement pair. |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |