Did you know you can ignore EF Query FIlters? Query filters are applied to all LINQ queries. However, if you use the IgnoreQueryFilters method, you can ignore them for that specific query. EF Query Filters are an awesome approach for tenant-based applications. Here's how you can use them in multi-tenant applications: https://lnkd.in/eKnabrRz --- Do you want to simplify your development process? Grab my free Clean Architecture template here: https://bit.ly/4fCzIOp
This is an insightful tip about Entity Framework (EF) query filters, especially for developers working on multi-tenant applications. Query filters are often used for implementing soft deletes or multi-tenancy by adding global conditions to entities. While convenient, there are times when bypassing them is necessary, such as when performing administrative tasks or running diagnostics.
A bit advanced for the average viewer
How often you use this feature?
Instructif
Practical .NET and Software Architecture Tips | Microsoft MVP
1dHere's a FREE Clean Architecture template to speed up your development: https://bit.ly/3Ap3qaZ