Class KeepConnectionAliveScope
Explicit DataContext connection reuse scope. See KeepConnectionAlive for more details.
Inheritance
System.Object
KeepConnectionAliveScope
Namespace: LinqToDB
Assembly: linq2db.dll
Syntax
public class KeepConnectionAliveScope : IDisposable
Constructors
| Improve this Doc View SourceKeepConnectionAliveScope(DataContext)
Creates connection reuse scope for DataContext.
Declaration
public KeepConnectionAliveScope(DataContext dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataContext | dataContext | Data context. |
Methods
| Improve this Doc View SourceDispose()
Restores old connection reuse option.
Declaration
public void Dispose()