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.

This article provides a complete and descriptive explanation of the Entity Framework Core Code First approach. It explains how databases are created and managed using C# classes, how DbContext and entities work together, how migrations handle schema changes, and how relationships, configuration, and change tracking are managed in Code First development. Written in simple language, this guide is ideal for beginners and professional .NET developers building modern, scalable applications using Entity Framework Core and SQL Server.

This article provides a complete and descriptive explanation of the Entity Framework Core Database First approach. It explains how EF Core generates entity classes and DbContext from an existing database, how scaffolding works, how relationships, views, and stored procedures are handled, and how to safely manage schema changes using re-scaffolding and partial classes. Written in simple language, this guide is ideal for beginners and professional .NET developers working with legacy or enterprise databases using Entity Framework Core.

Boost EF Core query performance! Learn practical tips like AsNoTracking, pagination, projections, and indexing to optimize your .NET applications. Make your apps faster!

This article provides a complete, descriptive, and beginner-to-advanced explanation of Entity Framework Core (EF Core). It covers how EF Core works internally, its core components, change tracking, relationship handling, migrations, DbContext, DbSet, performance features, advanced capabilities, concurrency handling, shadow properties, value conversions, global filters, interceptors, and when EF Core is suitable for real-world .NET applications. Written in a simple, clear style, this guide helps developers understand EF Core deeply without focusing on LINQ or specific approaches.

Build an AI-powered prescription recommendation system using Angular. Enhance patient safety and treatment with intelligent, data-driven insights for doctors.

Learn to build CRUD endpoints in an ASP.NET Core Web API using Entity Framework Core, SQL Server, DbContext, and migrations.

Master Angular's RxJS operators: switchMap, mergeMap, concatMap, and exhaustMap! Learn when to use each with simple explanations, diagrams, and real-world examples.

Ensure database connectivity and stability in .NET applications using EF Core health checks. Implement diagnostics, prevent downtime, and enable smarter orchestration for production-ready systems. Monitor database health effectively.

Optimize EF Core bulk operations for high performance! Learn native techniques, batch processing, and third-party libraries like EFCore.BulkExtensions for faster data handling.

Master EF Core 9 transactions & concurrency for robust data integrity. Learn savepoints, distributed transactions, and optimistic concurrency control. Build reliable apps!

Master data modeling and relationships in Entity Framework Core 9! This guide covers data annotations, Fluent API, one-to-many, one-to-one, and many-to-many relationships. Learn to control your database schema, seed data, and handle exceptions for robust and scalable applications. Explore best practices and alternatives like Dapper for optimized performance. Elevate your data architecture skills!

Combine the power of Entity Framework Core (EF Core) for schema management and Dapper for raw SQL performance in .NET 8 with PostgreSQL. This guide explores two approaches: using EF Core for CRUD and Dapper for complex queries, or sharing a single transaction across both. Learn best practices, avoid common pitfalls, and optimize your data access layer for speed and efficiency. Leverage Dapper and EF Core for robust and performant .NET applications.

Configure Entity Framework Core with PostgreSQL in a .NET Web API, including Npgsql setup, DbContext configuration, connection strings, migrations, and a basic product controller.

This article dives into Eager Loading and Lazy Loading strategies, explaining their pros, cons, and practical examples using Customers and Orders. Learn when to use each approach to optimize database queries, reduce memory usage, and prevent the N+1 problem. Choose the right loading strategy for efficient and scalable applications.

Understand the key differences between Entity Framework 6 (EF6) and Entity Framework Core (EF Core). This article compares platform support, performance, and features to help you choose the right ORM for your .NET project. Learn when to use EF6 for legacy applications and when EF Core is the better choice for modern, cross-platform, and cloud-based development.

Unlock the power of .NET data access! This article clarifies the differences between Entity Framework 6 (EF6) and Entity Framework Core (EF Core), guiding you to choose the right ORM for your project. Discover platform support, performance implications, and ideal use cases for each.

Learn how to use Entity Framework Core (EF Core) migrations to keep your database schema in sync with your application's data model. This guide provides a step-by-step explanation of creating, applying, updating, and rolling back migrations using simple commands. Automate database changes, avoid data loss, and streamline teamwork with EF Core migrations.

Optimize EF Core performance when dealing with large datasets! This article explores various bulk operation techniques, from built-in options like ExecuteUpdate/Delete to powerful third-party libraries like EFCore.BulkExtensions and Z.EntityFramework.Extensions. Learn when to use each approach, including raw SQL for maximum control, and boost your application's efficiency. Discover the best solution for your needs, whether dealing with thousands or millions of rows.

Unlock EF Core efficiency! Compare Find() (primary key, cached) vs. GetBy() (flexible, direct DB query). Learn performance, usage, and error handling for optimal data access.

Learn how to store enums as strings in EF Core for improved database readability and maintainability. Explore the pros, cons, and step-by-step implementation.

Explore Entity Framework, .NET's ORM, simplifying data access. Learn modeling, querying, migrations, and best practices for building scalable applications.

Learn how to implement soft deletes in EF Core using interceptors. Mark entities as deleted without removing them, apply global query filters, and ensure automatic, transparent handling of deleted records

This Blog demonstrates how to use multiple DbContexts in an ASP.NET Core application with Entity Framework Core. It helps manage complex data models, avoid concurrency issues, and maintain clean architecture when working with different parts of a database or multiple databases.

Learn how to set up Entity Framework Core in an ASP.NET Core MVC project, perform basic CRUD operations, configure DbContext, manage migrations, and follow best practices for scalable and maintainable development.

Avoid common pitfalls in Entity Framework Core with this practical guide. Learn about typical developer mistakes and how to fix them to write efficient, bug-free EF Core code.

This article explains Entity Framework Core Change Tracking, covering how EF tracks entity states, manages updates, and boosts performance using no-tracking queries for efficient, read-only data access.

Learn how to manage transactions in Entity Framework to ensure data integrity. This article covers built-in handling, explicit transactions, rollbacks, commits, and managing multiple DbContexts for consistent operations.

Optimize your Entity Framework Core apps with proven performance tips: use AsNoTracking, prevent N+1 issues, project only needed fields, leverage caching, compiled queries, and bulk operations for faster, memory-efficient data access.

In this article, I will provide a comprehensive overview of Keyset Pagination in Entity Framework Core, highlighting its benefits, implementation strategies, and a performance comparison with traditional pagination methods

Entity Framework is a versatile and powerful ORM, but its performance depends on how it’s used. By following these best practices and leveraging the new features in .NET 9, you can build high-performance applications that scale efficiently.
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