WeSearch

EF Core Named query filters

·7 min read · 0 reactions · 0 comments · 15 views
#csharp#database#dotnet
EF Core Named query filters
⚡ TL;DR · AI summary

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.

Key facts
Original article
DEV.to (Top)
Read full at DEV.to (Top) →
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).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)