Table of Contents

Class KeepConnectionAliveScope

Namespace
LinqToDB
Assembly
linq2db.dll

Explicit DataContext connection reuse scope. See KeepConnectionAlive for more details.

public class KeepConnectionAliveScope : IDisposable, IAsyncDisposable
Inheritance
object
KeepConnectionAliveScope
Implements
Extension Methods

Constructors

KeepConnectionAliveScope(DataContext)

Creates connection reuse scope for DataContext.

public KeepConnectionAliveScope(DataContext dataContext)

Parameters

dataContext DataContext

Data 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()

Returns

ValueTask