IDataAccessAdapterOpenConnectionAsync Method (CancellationToken) |
Async variant of
OpenConnection.
Opens the active connection object. If the connection is already open, nothing is done.
If no connection object is present, a new one is created
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.7.0.0 (5.7.0)
Syntax Task OpenConnectionAsync(
CancellationToken cancellationToken
)
Function OpenConnectionAsync (
cancellationToken As CancellationToken
) As Task
Parameters
- cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskExceptions Exception | Condition |
---|
ObjectDisposedException | DataAccessAdapterBase;This DataAccessAdapter instance has already been disposed, you can't use it for further persistence activity |
See Also