Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.

Safely use raw SQL in Entity Framework Core! Learn how to prevent SQL injection with parameterized queries, FromSqlInterpolated, and input validation for secure .NET apps.

Boost EF Core performance! Learn to optimize LINQ queries, avoid the N+1 problem with eager loading, projections, and more. Build faster, scalable apps now!

Explore the Code First vs. Database First approaches in Entity Framework Core. Learn which method suits new projects and legacy systems for efficient .NET development.

Learn how to identify and fix EF Core N+1 query issues using eager loading, projections, explicit loading, AsNoTracking, and split queries.

Explore Code First vs Database First in EF Core. Understand the differences, advantages, and disadvantages to choose the right approach for your .NET project.

Explore transaction management in .NET EF Core: ensuring data integrity with ACID properties. Learn how to commit or rollback changes for reliable database operations.

Unlock semantic search in .NET with EF Core 10! Query by meaning, not just keywords, using LINQ and SQL Server's native vector support. Build smarter apps easily.

Implement multi-tenancy in EF Core with Global Query Filters! Secure your data by automatically filtering queries based on TenantId. Prevent data leaks and simplify code.

Optimize EF Core queries for large datasets in ASP.NET Core! Improve performance with techniques like AsNoTracking, projection, pagination, and proper indexing.

Learn how to handle concurrency in Entity Framework Core using optimistic locking, RowVersion, and exception handling. Prevent data loss in multi-user ASP.NET Core apps.

Explore Dapper vs. Entity Framework Core for .NET data access. Understand performance, features, and when to choose each ORM for optimal application design.

Safely deploy EF Core migrations in production! Learn best practices for script-based deployments, zero-downtime strategies, CI/CD integration, and rollback plans. Ensure reliable database evolution.

Explore the differences between Entity Framework Core and Dapper for .NET data access. Learn when to choose each ORM based on performance, productivity, and control.

Boost .NET app performance! Learn to optimize Entity Framework Core queries: select data wisely, use no-tracking, paginate, and avoid extra calls. Essential tips!

Learn how the Unit of Work pattern manages transactions and data consistency in .NET, including how Entity Framework Core DbContext provides built-in Unit of Work behavior.

Unlock EF Core performance! Learn when to use Tracking for updates and No Tracking for read-only operations. Optimize your .NET applications for speed and efficiency.

Troubleshoot EF Core performance in production! Learn to identify and fix N+1 queries, missing indexes, and async blocking to keep your app fast and reliable.

Avoid EF Core production disasters! Learn how to fix common logic and tracking mistakes like improper Any(), First(), and missing AsNoTracking() for optimal performance.

EF Core code working locally but failing in production? Discover common, innocent-looking patterns that cause performance bottlenecks with large datasets. Learn to write efficient, production-ready EF Core!

Learn how to create, apply, roll back, and manage Entity Framework Core migrations in Visual Studio using Package Manager Console and the .NET CLI.

Master DELETE requests, Postman API testing, and Entity Framework Core integration in ASP.NET Core. Learn to build robust and efficient data management APIs.

Master EF Core data access! Learn best practices like scoped DbContext, async queries, and the repository pattern for scalable and efficient .NET apps.

Explore EF Core vs. Dapper in .NET 10 for data access. Discover their key differences, benefits, code examples, and guidance on choosing the right tool for your project.

EF Core 10 is here! This LTS release alongside .NET 10 delivers vector search, JSON enhancements, LINQ improvements, bulk updates, and enterprise SQL Server features.

Unlock EF Core's power with ExecuteUpdate & ExecuteDelete! Boost performance using set-based bulk operations for efficient data modifications. Learn EF Core 10 enhancements!


A complete guide to configuring database connections in ASP.NET Core using EF Core. Learn how to use IDesignTimeDbContextFactory, configure DbContext in Program.cs/Startup.cs, and use the OnConfiguring fallback method for design-time and runtime scenarios.


Traditional EF Core queries often result in multiple database round trips and extensive change tracking, which can significantly degrade performance. To address these limitations, developers leverage bulk operation extensions that optimize data access and retrieval.

Everything on Entity Framework, not only its articles: the Entity Framework page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article