Written by Mark Pringle | Last Updated on Monday, November 21, 2022

MVC ASP.NET Version: 6.0 General Information

Entity Framework (EF) is an Object Relational Mapping (ORM, O/RM, and O/R mapping) framework. This framework automatically creates relationships and converts data between a relational database like Microsoft SQL Server and an object-oriented programming language like ASP.NET C#.

MSSQL and C# usually are two incompatible types of systems that do not easily “talk” to each other. However, Entity Framework is a mediator and facilitator between these two systems. This object-relational mapping framework can create classes based on database tables. Conversely, it can create database tables based on the classes or models you make. Through Scaffolding EF can automatically generate the SQL queries necessary to create, read, update, list, or delete rows from your database.

Suppose you have created a database table on which you want to perform CRUD operations. In that case, you can have EF automatically create the classes, code for managing that data, and views by providing Entity Framework with the database schema through reverse engineering.

See Reverse Engineering