Before .NET 3.5 as a developer, we often used to write ADO.NET code to perform CRUD operation with the underlying database. For this, we need to create a connection with the database, open the connection, and then create a DataSet to fetch or submit the data to the database, and convert the data from the DataSet to .NET objects or vice-versa to apply our business rules. Actually, this was a time consuming, cumbersome and error-prone process. Microsoft has provided a framework called “Entity Framework” to automate all these database related activities for our application if we provided the necessary details to the Entity Framework.
What is Entity Framework?
Entity Framework is an open-source object-relational mapping (ORM) Framework for .NET applications that enables .NET developers to work with relational data using domain-specific objects without focusing on the underlying database tables and columns where actually the data is stored. That means the Entity Framework eliminates the need for writing the data-access code that developers usually need to write.
Official Definition: “The Entity Framework is an object-relational mapper (O/RM) that enables .NET developers to work with a database using .NET objects. It eliminates the need for most of the data-access code that developers usually need to write.”
In this article series, I am going to discuss all the features of the entity framework 6.x and EF Core with real-time examples. We will discuss
- Database First Approach
- Model First Approach
- Code First Approach
We will also discuss using the EF in ASP.NET MVC applications.
These tutorials are design for beginners as well as professionals who want to learn EF step by step from very basics to the advanced concepts of Entity Framework. This tutorial provides a hands-on approach to the subject with step-by-step program examples that will assist you to learn and put the acquired knowledge into practice.
In this article serious I am going discuss EF with real-time examples I hope this article series will help you for your need. I would like to have your feedback. Please post your feedback, question, or comments about this Entity Framework article series.