EF Core Named query filters
EF Core 10 introduces named query filters, enhancing the management of common patterns like soft deletion and multitenancy. This update allows developers to assign individual names to filters, enabling more precise control over query behavior. The new feature improves upon previous versions by allowing multiple filters on the same entity while maintaining a clean and centralized default filtering approach.
- ▪Named query filters in EF Core 10 improve the management of soft deletion and multitenancy.
- ▪Developers can now define multiple filters on the same entity and selectively disable them for specific queries.
- ▪This update enhances control over query behavior while keeping the default filtering consistent.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 1000004) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Karen Payne Posted on May 19 EF Core Named query filters #csharp #database #dotnet #news C# (72 Part Series) 1 SQL-Server: Exploration of datetime2(7) precision (C#) 2 Reveal Data provider parameter values at run time ... 68 more parts...
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).