Data centric apps for web, desktop and mobile with EF5 Windows Azure 5/29/2018 Data centric apps for web, desktop and mobile with EF5 Rowan Miller Program Manager 3-031 © 2011 Microsoft Corporation. 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.
Agenda Developer workflows Entity Framework 5 Demos Entity Framework 6
EF developer workflows Designer centric Code centric New database Model first Create .edmx model in designer Generate database from .edmx Classes auto-generated from .edmx Code first Define classes and mapping in code Database auto-created at runtime Existing database Database first Reverse engineer .edmx model Classes auto-generated from .edmx Code first Define classes and mapping in code (Reverse engineer tools available)
Entity Framework 5 (EF5) EntityFramework NuGet Package Included in Visual Studio 2012 Works with Visual Studio 2010 Works with .NET 4.0 and 4.5 Most new features require .NET 4.5
What’s new in EF5 EF designer and code first EF designer only Enum support Spatial data types Performance improvements EF designer only Table-valued Functions (TVFs) Multiple diagrams and coloring DbContext code generation
Park Finder demo
Search Text Bing Maps API Coordinates ParkFinder Web API List<Park> Entity Framework LocalDb Map GridView demo
EF developer workflows Designer centric Code centric New database Model first Create .edmx model in designer Generate database from .edmx Classes auto-generated from .edmx Code first Define classes and mapping in code Database auto-created at runtime Existing database Database first Reverse engineer .edmx model Classes auto-generated from .edmx Code first Define classes and mapping in code (Reverse engineer tools available)
Entity Framework 6 (EF6) Open source Targeting mid-2013 RTM Accepting contributions Code base has Apache 2.0 License Releases have same license, branding, quality, support, etc. as EF5 Targeting mid-2013 RTM Alpha 1 available today
EF6 Features Async query and save Dependency injection pattern Code first custom conventions Enums, spatial, etc. on .NET 4.0 Connection resiliency (retry) Tooling consolidation Code first stored procedure support
Related sessions 11/1 2:30PM — B92 Trident/Thunder — Building Services for Any Client with ASP.NET Web API 11/2 8:30AM — B92 Nexus/Normandy — Data Options in Windows Azure. What's a developer to do? 11/2 2:30PM — B33 McKinley — Bleeding edge ASP.NET: See what is next for MVC, Web API, SignalR and more…
Resources msdn.com/data/ef blogs.msdn.com/adonet entityframework.codeplex.com twitter.com/efmagicunicorns #EFHelp on Twitter facebook.com/efmagicunicorns romiller.com Please submit session evals on the Build Windows 8 App or at http://aka.ms/BuildSessions
Resources Follow us on Twitter @WindowsAzure Get Started: www.windowsazure.com/build Please submit session evals on the Build Windows 8 App or at http://aka.ms/BuildSessions