Persistence in Entity Framework There are two scenarios when persisting (saving) an entity to the database using Entity Framework: the Connected Scenario and the Disconnected Scenar…
Development Approaches with Entity Framework There are three different approaches you can use while developing your application using Entity Framework: Database-First Code-First Model-First Data…
Entity States in Entity Framework EF API maintains the state of each entity during an its lifetime. Each entity has a state based on the operation performed on it via the context clas…
Types of Entities in Entity Framework There are two types of Entities in Entity Framework: POCO Entities and Dynamic Proxy Entities. POCO Entities (Plain Old CLR Object) A POCO entity is …
What is an Entity in Entity Framework? An entity in Entity Framework is a class in the domain of your application which is included as a DbSet<TEntity> type property in the derived…
Context Class in Entity Framework The context class in Entity Framework is a class which derives from DbContext in EF 6 and EF Core both. It is an important class in Entity Framewor…
Entity Framework Architecture The following figure shows the overall architecture of the Entity Framework. Let's look at the components of the architecture individually. EDM (…
How Entity Framework Works? Here, you will see an overview of how entity framework works. Entity Framework API (EF6 & EF Core) includes the ability to map domain (entity) cl…
Basic Workflow in Entity Framework Here you will learn about the basic CRUD workflow using Entity Framework. The following figure illustrates the basic workflow. Let’s understand the a…
What is Entity Framework? Prior to .NET 3.5, we (developers) often used to write ADO.NET code or Enterprise Data Access Block to save or retrieve application data from the und…