Types of Entities in Entity Framework

 There are two types of entities in an entity framework:


1. POCO Entities (Plain Old CLR Objects)

It is an entity class that does not depend on any framework-specific base class. It is the normal .NET CLR class that's why it is named "Plain Old CLR Objects". It supports many operations like update, create, and delete that are generated by the entity data model.


2. Dynamic Proxy Entities (POCO Proxy)

Dynamic proxy entities are runtime classes and wrap up the POCO entity. These entities are lazy loading classes. It is only supported by EF 6; EF Core 2.0 does not support it yet.



Comments

Popular posts from this blog

What is Entity Framework?

Explain the ways to increase the performance of EF.