zzz projects Entity Framework Core EF Core
Home Articles Knowledge Base Online Examples
  • Home
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework Core - Knowledge Base (KB)

4 results in tag: interceptor

Getting DbContext from implementation of IDbCommandInterceptor

I am using an ...IDbCommandInterceptor... implementation:...public class MyInterceptor : IDbCommandInterceptor { public void ReaderExecuting(DbCommand command, DbCommandInterceptionContext<DbDataReader> interceptionContext) { var context =...
c# entity-framework entity-framework-6 interceptor
asked by bpiec

Learning Entity Framework 6 command tree interceptors

This is purely a learning experiment (yay science!). This is not meant to actually be used anywhere. I want to learn how EF6's command tree interceptors work....I'm trying to modify the intercepted command tree to add a "IsActive = 1" filter to all quer...
c# entity-framework entity-framework-6 interceptor
asked by Amy

Hooking IDbInterceptor to EntityFramework DbContext only once

The ...IDbCommandInterceptor... interface is not very well documented. And I've only found a few scarce tutorials on it:...http://www.entityframeworktutorial.net/entityframework6/database-command-interception.aspx...https://msdn.microsoft.com/en-us/data/j...
c# entity-framework entity-framework-6 interceptor logging
asked by Aske B.

How can I add an interceptor to a single query in Entity Framework?

I have a query that I suspect is guilty of parameter-sniffing. I'd like to apply an interceptor like the one found ...here..., but I don't want any other queries affected....The code used there is: ...DbInterception.Add(new OptionRecompileHintDbCommandInt...
entity-framework entity-framework-6 interceptor
asked by adam0101

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!