I will start a new project in couple of days which is based on ASP.NET MVC3 and I don’t have enough experience in Web Development.
I just want to know about Entity Framework. What is Entity Framework? Why we use it?
and also want to know about Object Relational Mapping. How is it connect with entity framework?
I’ve googled but did not get exact idea about it.
I’m very eager to know what’s basic concept behind all those things?
I will start a new project in couple of days which is based on
Share
Entity Framework is an object-relational mapper. This means that it can return the data in your database as an object (e.g.: a Person object with the properties Id, Name, etc.) or a collection of objects.
Why is this useful? Well, it’s really easy. Most of the time you don’t have to write any SQL yourself, and iterating is very easy using your language built in functions. When you make any changes to the object, the ORM will usually detect this, and mark the object as ‘modified’. When you save all the changes in your ORM to the database, the ORM will automatically generate insert/update/delete statements, based on what you did with the objects.