Thursday 11 October 2012

Entity FrameWork


What is Entity Framework?
Entity Framework is an Object Relational Mapper (ORM). It basically generates business objects and entities according to the database tables and provides the mechanism for:
1. Performing basic CRUD (Create, Read, Update, Delete) operations.
2. Easily managing "1 to 1", "1 to many", and "many to many" relationships.
3. Ability to have inheritance relationships between entities.

What are the benefits of using it Entity Framework?

• We can have all data access logic written in higher level languages.
•  The conceptual model can be represented in a better way by using relationships among entities.
•  The underlying data store can be replaced without much overhead since all data access logic is present at a higher level.

 is Entity Framework an alternative to ADO.NET?
the answer would be "yes and no".
 Yes because the developer will not be writing ADO.NET methods and classes for performing data operations
no because this model is actually written on top of ADO.NET, meaning under this framework, we are still using ADO.NET.


No comments: