Discover how .NET query filters streamline data access in Entity Framework Core. Learn how to implement global conditions for soft deletes, multi-tenancy, and security, while avoiding common pitfalls. This guide explores best practices and performance tips to help you write cleaner, more maintainable code.
Category: csharp
Policy-based Authorization in ASP.Net Core
Learn how to implement policy-based authorization in ASP.NET Core using custom policies, requirements, and handlers. This guide explains how to apply fine-grained access control across controllers, Razor Pages, and endpoints, enabling more flexible and secure authorization strategies for modern web applications.
c# fire and forget
Fire-and-forget in C# lets async methods run independently, but improper handling can cause unobserved exceptions. Learn how to implement safe fire-and-forget using best practices and the AsyncAwaitBestPractices NuGet package to improve reliability and prevent crashes in your applications.