Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

New Post: DbContext Connection events or overrides

$
0
0

I'd love to know when EF opens and is about to close its connection to the database. I need to write a DbContext in which opening the connection sets the app role and the app role is unset just prior to closing the connection. Unfortunately, there is no Closing event on IDbConnection to grab on to.


Viewing all articles
Browse latest Browse all 10318

Trending Articles