What is Entity Framework in ASP.net

Published on October 2018 | Categories: Documents | Downloads: 28 | Comments: 0 | Views: 234
of 11
Download PDF   Embed   Report

Comments

Content

Entity Framework

Outline What is Entity Framework  Benefits 

Drawbacks  Example 

What is Entity Framework Microsoft’s newest data access technology  isual !tudio" 







Examines database #reates ob$ects that represent data schema

%&'( )%anguage &ntegrated (uery* 



+eplaces !(% !elect, sort, filter, etc-

Benefits 

Eliminates disconnect between code . database 

'o s/l statements in code

0se intellisense to write /uery  1utomat  1utomatic ic table $oins $oins 

Full #+0D functionality  %&'( works on all data collections 



 1rrays, lists, data2iews, etcetc-

Drawbacks Microsoft propriety technology  %&'( /uery syntax different than !(% 





Better in many ways

!ynchroni3ation between database and entity ob$ects 



#hange database +ebuild entity ob$ects

Example isual !tudio" 4- #reate new Dynamic Data Entities Web !ite 

5-

 1dd new item"  1DO Data Entity Model

Example 6:-

!elect 78enerate from Database9 !elect !/l !er2er database 



<-

Express or full 2ersion 'ote" table relationships M0!; be defined in Database Diagram

Wi3ard creates new 'amespace 

#ontains data ob$ects that match database

Entity Model Designer Window



'ote" many=to=many relationship

%&'( 

0se %&'( to /uery against data ob$ects

%&'( !yntax ar datatype uses implicit typing  !imilar to Data;able 

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close