Table of Contents

Class InterceptorExtensions

Namespace
LinqToDB
Assembly
linq2db.dll

Contains extensions that add one-time interceptors to connection.

public static class InterceptorExtensions
Inheritance
InterceptorExtensions

Methods

OnNextCommandInitialized(DataConnection, Func<CommandEventData, DbCommand, DbCommand>)

Adds CommandInitialized(CommandEventData, DbCommand) interceptor, fired on next command only.

public static void OnNextCommandInitialized(this DataConnection dataConnection, Func<CommandEventData, DbCommand, DbCommand> onCommandInitialized)

Parameters

dataConnection DataConnection

Data connection to apply interceptor to.

onCommandInitialized Func<CommandEventData, DbCommand, DbCommand>

Interceptor delegate.

OnNextCommandInitialized(DataContext, Func<CommandEventData, DbCommand, DbCommand>)

Adds CommandInitialized(CommandEventData, DbCommand) interceptor, fired on next command only.

public static void OnNextCommandInitialized(this DataContext dataContext, Func<CommandEventData, DbCommand, DbCommand> onCommandInitialized)

Parameters

dataContext DataContext

Data context to apply interceptor to.

onCommandInitialized Func<CommandEventData, DbCommand, DbCommand>

Interceptor delegate.