Table of Contents

Class KeepConnectionAliveScope

Namespace
LinqToDB
Assembly
linq2db.dll

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

public class KeepConnectionAliveScope : IDisposable
Inheritance
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()