What is entity framework?
Entity Framework (EF) is an object-relational mapper that enables .NET developers to work with relational data using domain-specific objects. It eliminates the need for most of the data-access code that developers usually need to write. It is an enhancement to ADO.NET that gives developers an automated mechanism for accessing & storing the data in the database.
In our project we use entity framework with Code-First approach
What is Code-First approach?
Entity Framework supports three different development approaches to use entity framework in your application.
- Code First
- Model First
- Database first
Developers who follow the path of Domain-Driven Design (DDD) principles, prefer to begin by coding their domain classes first and then generating the database required to persist their data.
How to install Entity Framework?
In order to use Entity framework in your project you must first install entity framework to your project as follows.
- Right-click on the References folder of your project and selecting Manage NuGet Packages
- Search for EntityFramework and click install
Further References :
What is Entity Framework - https://www.youtube.com/watch?v=Z7713GBhi4k
Code First Approach - https://www.youtube.com/watch?v=kbH-rqMl8cE
No comments:
Post a Comment