Eric Nelson: Developer & Platform Group Microsoft LTD
Eric Nelson: Developer & Platform Group Microsoft LTD
{ Simple Walkthough }
Typed Datasets (cough) shipped ObjectSpaces v1 never shipped ObjectSpaces v2 never shipped Microsoft Business Framework never shipped WinFS never shipped LINQ to SQL - shipped November 2007
Visual Studio 2008 & .NET Framework 3.5
Note: LINQ to Entities is the most visible part of the ADO.NET Entity Framework
Microsoft is using it
Data Services - shipping Reporting Services Sync Services Microsoft M
Partners supporting it
Database Vendors IBM,OpenLink, Data Direct, Devart etc ORM vendors supporting it
DevForce now target Entity Framework, replacing their own LLBLGen v3 will target Entity Framework as well as their own
What is LINQ?
LINQ is not about databases, it is about objects LINQ = Language-Integrated Query
Extensions to programming languages to query objects in memory
We ship
LINQ to Objects LINQ to XML LINQ to Datasets LINQ to SQL just SQL Server LINQ to Entities added in .NET Framework 3.5 SP1
LINQ to Entities SQL Server, DB2, Oracle, Sybase, MySQL ... Complex
Simple
Strategic Often
Entity Framework is only .NET 3.5 SP1 and above Entity Framework is probably not the best choice for a short lived SQL Server applications
Entity Framework v1 has warts
Designer It is annoying buggy, clunky Exposes subset of the functionality Does not support model first N-tier story Stored Procedure Support Foreign Keys PoCo Guids SQL 2008 New Types
What is it?
Tools and services to create an Entity Data Model
EDM gives ORM to SQL Server, Oracle, DB2 etc
Notes
Strategic but just released...
Application model
Mapped to a persistence store
Mapping
Storage
{ A look at mapping }
Entity Client
Entity SQL
Object Services
Entity SQL LINQ To Entities
Runtime services:
Unit of work Identity tracking Eager/explicit loading
Entity SQL
LINQ To Entities
Object Services
Entity Client
ADO.NET Provider
{ Consuming an EDM}
Entity Framework Across MS Products and Technologies more widely adopted Rough edges removed Technologies work better together
Better ORM capabilities in LINQ to Entities POCO support, N-Tier, Model First
Better tooling
Data Access technology remained reasonably static Procedural, API access Surfaced the database schema No clear ORM choice
LINQ excellent addition to the .NET languages Entity Framework and the EDM strategic investment Productivity leap
http://geekswithblogs.net/IUpdateable Or http://iupdateable.com
2008 Microsoft Ltd. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.