• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

Class EFCommandInterceptor

Inheritance
System.Object
EFCommandInterceptor
Assembly: Alachisoft.Integrations.EntityFramework.CachingProvider.dll
Syntax
public class EFCommandInterceptor : IDbCommandInterceptor

Constructors

EFCommandInterceptor()

The constructor to initialize the logger and application instance.

Declaration
public EFCommandInterceptor()

Methods

Finalize()

This method performs the application-defined tasks associated with the freeing, releasing, or resetting of unmanaged resources.

Declaration
protected void Finalize()

NonQueryExecuted(System.Data.Common.DbCommand, DbCommandInterceptionContext<Int32>)

This method is called after a call to ExecuteNonQuery() or one of its async counterparts is made.

Declaration
public void NonQueryExecuted(System.Data.Common.DbCommand command, DbCommandInterceptionContext<int> interceptionContext)
Parameters
Type Name Description
System.Data.Common.DbCommand command

The command being executed.

DbCommandInterceptionContext<System.Int32> interceptionContext

The contextual information associated with the call.

NonQueryExecuting(System.Data.Common.DbCommand, DbCommandInterceptionContext<Int32>)

This method is called before a call to ExecuteNonQuery() or one of its async counterparts is made.

Declaration
public void NonQueryExecuting(System.Data.Common.DbCommand command, DbCommandInterceptionContext<int> interceptionContext)
Parameters
Type Name Description
System.Data.Common.DbCommand command

The command being executed.

DbCommandInterceptionContext<System.Int32> interceptionContext

The contextual information associated with the call.

ReaderExecuted(System.Data.Common.DbCommand, DbCommandInterceptionContext<System.Data.Common.DbDataReader>)

This method is called after a call to ExecuteReader(CommandBehavior) or one of its async counterparts is made.

Declaration
public void ReaderExecuted(System.Data.Common.DbCommand command, DbCommandInterceptionContext<System.Data.Common.DbDataReader> interceptionContext)
Parameters
Type Name Description
System.Data.Common.DbCommand command

The command being executed.

DbCommandInterceptionContext<System.Data.Common.DbDataReader> interceptionContext

The contextual information associated with the call.

ReaderExecuting(System.Data.Common.DbCommand, DbCommandInterceptionContext<System.Data.Common.DbDataReader>)

This method is called before a call to ExecuteReader(CommandBehavior) or one of its async counterparts is made.

Declaration
public void ReaderExecuting(System.Data.Common.DbCommand command, DbCommandInterceptionContext<System.Data.Common.DbDataReader> interceptionContext)
Parameters
Type Name Description
System.Data.Common.DbCommand command

The command being executed.

DbCommandInterceptionContext<System.Data.Common.DbDataReader> interceptionContext

The contextual information associated with the call.

ScalarExecuted(System.Data.Common.DbCommand, DbCommandInterceptionContext<Object>)

This method is called after a call to ExecuteScalar() or one of its async counterparts is made.

Declaration
public void ScalarExecuted(System.Data.Common.DbCommand command, DbCommandInterceptionContext<object> interceptionContext)
Parameters
Type Name Description
System.Data.Common.DbCommand command

The command being executed.

DbCommandInterceptionContext<System.Object> interceptionContext

The contextual information associated with the call.

ScalarExecuting(System.Data.Common.DbCommand, DbCommandInterceptionContext<Object>)

This method is called before a call to ExecuteScalar() or one of its async counterparts is made.

Declaration
public void ScalarExecuting(System.Data.Common.DbCommand command, DbCommandInterceptionContext<object> interceptionContext)
Parameters
Type Name Description
System.Data.Common.DbCommand command

The command being executed.

DbCommandInterceptionContext<System.Object> interceptionContext

The contextual information associated with the call.

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Community
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top