Download Code First

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Tolga Balci

EF 1
◦ Shipped with .NET 3.5 SP1
◦ Features:
 Basic ORM support
 Database First Workflow

EF 4
◦ Shipped with .NET 4.0 and VS 2010
◦ Features:
 Model First Workflow
 POCO, FKs, Lazy Loading, T4 Code Generation, …

EF 4.1
◦ Features:
 Code First Workflow
 DbContext API
 GAC Installed

EF 4.3
◦ Features:
 Migrations
 NuGet only distribution model

EF 5.0
◦ Will require .NET 4.5 and ship with VS 11




State of Linq to SQL
Choice for Microsoft teams
Move forward choice
EF on second version - New API on first version
Developer Workflows
Designer Centric
New
Database
Existing
Database
Code Centric
Model First
Code First
•
•
•
•
•
Create .edmx model in designer
Generate database from .edmx
Classes auto-generated from .edmx
Define classes & mapping in code
Database auto-created at runtime
Database First
Code First
•
•
•
Reverse engineer .edmx model
Classes auto-generated from .edmx
Define classes & mapping in code
(Reverse engineer tools available)

Channel9.msdn.com
◦ Visual Studio Toolbox: Entity Framework Part 1 and 2

msdn.com/data/EF
◦ Get Started Resources




Code First
Model & Database First
Code First & Migrations
Many Videos
Related documents