100%(1)1 out of 1 people found this document helpful
This preview shows page 1 - 8 out of 22 pages.
Advanced .NET Server DevelopmentENTITY FRAMEWORKINSTRUCTOR: MAHBOOB ALI
Learning OutcomesImplement data access code using ◦Microsoft Entity Framework ◦LINQ to Entities
Objectives•What is Entity Framework•Entity Framework Architecture•Entity Data Model•Entity Framework and Web Forms•LINQ to Entities•Entity Framework Workflows
What is Entity Framework?➢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.
Introduction to EF•Microsoft’s latest ORM is Entity Framework 6•It provides all of the features of an ORM described previously and more!•It allows us to choose a workflow based on our requirements and preference from:◦Database First◦Model First◦Code First•Changes to entities are tracked automatically by the context!•We can easily save all changes to our entities using the SaveChanges method of our DbContext derived context•We can query our entities using LINQ to Entities!