Showing posts with label Entity Framework. Show all posts
Showing posts with label Entity Framework. Show all posts

Entity Framework Tutorial For Beginners

In my last article, I have explained how to create simple asp.net mvc application. So let us move further and understand how can we build data access layer using entity framework.Before we begin with development, let us understand few concepts.

What is the need of Entity Framework?

 Let me explain in simple words.The software application that we write using object oriented languages such  as C#, java deals everything in terms of objects. It has got its own standards for managing object oriented data. However, when it comes to data storage we use relational data and RDMS systems. So application layer and database layer has got two different standards for managing data. If a domain object from application layer needs be persisted as relational data then we need a mapper to convert domain object to relational data. Otherwise developers end up in writing lot of code to do this conversion. This is where entity framework plays a vital role.