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
DataConnectionData 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
DataContextData context to apply interceptor to.
onCommandInitialized
Func<CommandEventData, DbCommand, DbCommand>Interceptor delegate.