Download presentation
Presentation is loading. Please wait.
Published byKristina Mosley Modified over 9 years ago
1
Entity Framework MIS 324 MIS 324 Professor Sandvig Professor Sandvig
2
Outline What is Entity Framework Benefits Drawbacks Example
3
What is Entity Framework Microsoft’s newest data access technology Visual Studio: Examines database Examines database Creates objects that represent data schema Creates objects that represent data schema LINQ (Language Integrated Query) Replaces SQL Replaces SQL Select, sort, filter, etc. Select, sort, filter, etc.
4
Benefits Eliminates disconnect between code & database No sql statements in code No sql statements in code Use intellisense to write query LINQ works on all data collections Arrays, lists, dataviews, etc. Arrays, lists, dataviews, etc.
5
Drawbacks Microsoft propriety technology LINQ query syntax different than SQL Better in many ways Better in many ways Synchronization between database and entity objects Change database Change database Rebuild entity objects Rebuild entity objects
6
Creating Model
9
Note: Relationships should be defined in database
10
Linq
11
Output Music Store Example Example
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.