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.

Learn how to reverse engineer an existing database into an Entity Framework Code First model and manage schema changes with migrations.

This article walks you through how to use EF Core 5.0 in .NET Core 3.1 to implement a code-first approach to create/update a MySQL database on Visual Studio 2019 for a RESTful API application.

Entity Framework Core (EF Core) stands as a powerful toolset for .NET developers, streamlining the interaction between applications and databases through object-relational mapping (ORM). Whether adopting a database-first or code-first approach, EF Core simplifies data access and manipulation.

Learn how to delete and update records in an ASP.NET Web Forms application by setting Entity Framework entity states to Deleted and Modified.

Use Entity Framework's SqlQuery method to execute a stored procedure with raw SQL and bind the returned employee data to an ASP.NET Web Forms GridView.

Get started with creation of SQL Server Temporal Tables using Entity Framework Core 6.0 Code First approach and querying the historical data using LINQ.

Simplify data modeling in Entity Framework Core with Owned Types. Streamline database schema and relationships, reducing complexity in code-first approaches. Enhance maintainability and readability with simplified data structures.

Learn to implement and compare offset and keyset pagination in a .NET 8 Web API using Entity Framework Core, including performance and concurrency trade-offs.

Soft delete in Entity Framework Core allows for logically marking records as deleted without physically removing them from the database. This technique involves setting a flag, often "IsDeleted," to true instead of deleting the record.

Entity framework core added many new features that are already present in older entity framework versions. One of the features of the Entity framework core is "Shadow Properties". The feature "Shadow Properties" was originally introduced in EF 7.

Implement audit fields in EF Core using shadow properties for efficient tracking of entity modifications. Utilize Entity Framework's built-in functionality to automatically update created and modified timestamps, enhancing data integrity and accountability without cluttering the entity model.

Entity Framework Core is a lightweight and extensible version of Entity Framework. It is based on an ORM (Object-Relational Mapper) which enables us to work with databases using .NET objects. This article explains the new features of EF Core 2.0.

This article shows you how to work with database triggers in Entity Framework Core using a third-party library and Entity Framework Core Triggers with this unofficial package, enhancing database operations with event-driven programming.

Learn how to return multiple result sets from a stored procedure in Entity Framework by updating EDMX function imports, complex types, and result mappings.

Learn to create a robust ASP.NET Core backend and Angular 2 frontend application. Master-detail functionality implemented using HTML grid, with Web API for data exchange and Entity Framework (EF) 1.0.1 for seamless database integration.

here is some common Entity Framework interview questions.

Learn Entity Framework 6 concepts in ASP.NET MVC, including ORM architecture, Database First, Model First, Code First, EDMX files, transactions, and entity relationships.

Learn how eager, lazy, and explicit loading retrieve related entities in Entity Framework, with examples and guidance on when to use each approach.

Entity framework in C# is an object relational mapping framework. In this article, we will see how to use Entity Framework in a C# application.

Compare Dapper and Entity Framework Core for .NET data access, including performance, complexity, database support, flexibility, and example queries.

Learn how to call SQL Server stored procedures in Entity Framework by importing them as functions or using ExecuteStoreQuery with custom result types.

Learn how to implement optimistic concurrency in ASP.NET MVC with Entity Framework using a RowVersion field, Fluent API configuration, and DbUpdateConcurrencyException handling.

Tutorial on EF7 – Code First approach using Command Line (CLI)

Tutorial on EF7 – Database First approach using GUI tools EFCorePowerTools

Tutorial on EF7 – Database First approach using Command Line (CLI)

In certain cases, you may need to apply filtering conditions to all queries involving specific entities. This can be useful when you want to exclude soft-deleted items, filter data based on certain criteria, or ensure data integrity. With Entity Framework's global query filters, you can easily achieve this during the model creation process.

In this article, we will learn about Maximizing Performance in Entity Framework Core and what is the difference between Tracking and No Tracking.

Recently I am working on Entity Framework as a data access layer-based Project. We found many performance issues with this application.

In this article, you will learn how to perform CRUD operations in an ASP.NET MVC web application using Entity Framework.

In this article, we can learn about Global Query Filters in Entity Framework Core in .NET is a feature that allows us to apply filters to all queries of a specific entity type.
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