Upload
emmanuel-meyers
View
38
Download
0
Tags:
Embed Size (px)
DESCRIPTION
Visual Studio 2010 and .NET Framework 4 Training Workshop. What’s New In ADO.NET Entity Framework 4. Name Title Organization Email. Objectives. How has the EDM toolset been enhanced? What alternative development styles are enabled? How is the EF easier to use? - PowerPoint PPT Presentation
Citation preview
Visual Studio 2010and
.NET Framework 4
Training Workshop
Visual Studio 2010and
.NET Framework 4
Training Workshop
What’s New In ADO.NETEntity Framework 4
What’s New In ADO.NETEntity Framework 4
NameTitleOrganizationEmail
ObjectivesObjectives
• How has the EDM toolset been enhanced?• What alternative development styles are enabled?
• How is the EF easier to use?• How is it more fully-featured?• Does EF 4 address any issues you had with it?
Model-FirstModel-First
ExistingDatabase
GeneratedEntity Data
Model
DatabaseFirst (v1)
Entity DataModel
GeneratedDatabase
ModelFirst (v4)
Complex TypesComplex Types
1) 1:1 DB Mapping 2) Could get “crowded”
1) Flexibility from DB shape2) Nicely “organized”
VS.
Lazy LoadingLazy Loading
1) Get Product
2) Access Category
Database
Get Product1) Get Product
2) Access Category
Get Category
3) Get Category
Database
Get Product
Get Category
Exp
licit
Imp
licit
Foreign KeysForeign Keys
In theory thislooks really good
In theory this alsolooks really good
This is perfect!
N-TierN-Tier
DatabaseWeb Service
1) Get Product
2) Make Changes
2) Update Product
Combines power of:1) DataSet2) DTOs
SummarySummary
• The EDM tooling has been enhanced…• Model-First• Complex Types
• The EF runtime is more fully featured…• POCO• Lazy Loading• Foreign Keys• Model-Defined Functions• N-Tier