Class KeepConnectionAliveScope
- Namespace
- LinqToDB
- Assembly
- linq2db.dll
Explicit DataContext connection reuse scope. See KeepConnectionAlive for more details.
public class KeepConnectionAliveScope : IDisposable, IAsyncDisposable
- Inheritance
-
objectKeepConnectionAliveScope
- Implements
- Extension Methods
Constructors
KeepConnectionAliveScope(DataContext)
Creates connection reuse scope for DataContext.
public KeepConnectionAliveScope(DataContext dataContext)
Parameters
dataContextDataContextData context.
Methods
Dispose()
Restores old connection reuse option.
public void Dispose()
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()