QuarkFlix Guard Duty: A Hands-On CDI Interceptor Tutorial with Quarkus
Learn how to build modular, secure, and testable Java applications
https://myfear.substack.com/p/quarkus-cdi-interceptors-real-world
#Java #Quarkus #CDI #Interceptors
QuarkFlix Guard Duty: A Hands-On CDI Interceptor Tutorial with Quarkus
Learn how to build modular, secure, and testable Java applications
https://myfear.substack.com/p/quarkus-cdi-interceptors-real-world
#Java #Quarkus #CDI #Interceptors
Angular HTTP: Connecting to the REST API by Abdelfattah Ragab
The e-book is only available on the author's website https://books.abdelfattah-ragab.com with amazing discounts of up to 40%.
#angular #http #httpclient #rest #restful #restapi #backend #uploadingfiles #interceptors
Angular for beginners: Everything you need to know by Abdelfattah Ragab
Available on https://books.abdelfattah-ragab.com
#angular #beginners #students #novice #juniors #angularcli #events #routing #componentlifecycle #forms #dependencyinjection #httpclient #environmentvariables #guards #interceptors #resolvers #lazyloading #templatesyntax #pipes #controlflow #styles #observables #rxjs #operators
Angular HTTP: Connecting to the REST API by Abdelfattah Ragab
Available on https://shop.tredition.com and https://www.amazon.com
#angular #http #httpclient #rest #restful #restapi #backend #uploadingfiles #interceptors
Angular for beginners: Everything you need to know by Abdelfattah Ragab
Available on https://shop.tredition.com and https://www.amazon.com
#angular #beginners #students #novice #juniors #angularcli #events #routing #componentlifecycle #forms #dependencyinjection #httpclient #environmentvariables #guards #interceptors #resolvers #lazyloading #templatesyntax #pipes #controlflow #styles #observables #rxjs #operators
One of the latest concepts added to Entity Framework is interceptors. What they offer for developers is the ability to modify the database command before it is sent to the database.
Interceptors can define several methods, and at each level, we can make specific modifications.
On the DbCommandInterceptor, the list of methods is quite long:
📌 CommandCreating, CommandCreated, CommandInitialized, CommandCanceled, CommandCanceledAsync, CommandFailed, CommandFailedAsync
📌 ReaderExecuting, ReaderExecutingAsync, ScalarExecutingAsync
📌 ScalarExecuting, ScalarExecuted, ScalarExecutedAsync
📌 NonQueryExecuting, NonQueryExecutingAsync, NonQueryExecuted
📌 ReaderExecuted, ReaderExecutedAsync
📌 DataReaderClosing, DataReaderClosingAsync, DataReaderDisposing
All the methods are virtual, so we can override only the ones we are interested in. Additionally, there's an ISaveChangesInterceptor that allows us to control SaveChanges methods.
Have you been using interceptors in your projects?
Docs 📑: https://learn.microsoft.com/en-us/ef/core/logging-events-diagnostics/interceptors
#dotnet #entityframework #efcore #interceptors
---
If you find this useful, consider giving a like & share ♻