DAT303 - Entity Framework: Application Patterns Pablo Castro Technical Lead, Microsoft Corporation.

Slides:



Advertisements
Similar presentations
Shyam Pather Development Manager Microsoft Session Code: DTL402.
Advertisements

DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
ASP.NET 3.5 Mike Ormond Developer & Platform Group Microsoft Ltd
.NET Framework V3.5+ & RESTful web services Mike Taulty Developer & Platform Group Microsoft Ltd
What’s new in ASP.NET 3.5? Mike Ormond Developer & Platform Group Microsoft Ltd
Building Offline/Cache Mode Web Apps Using Sync Framework Mike Clark Group Manager Cloud Data Services Team
Report Management and Creation using Microsoft SQL Server 2008 Reporting Services Chris Testa-O’Neill Database Product Planner Remarc Group.
Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft DEV201 #auteched #dev201.
DAT336 Connected vs Disconnected Data Access in ADO.NET Pablo Castro Program Manager – ADO.NET Team Microsoft Corporation.
WEB 304 An Overview of ASP.NET and Windows Workflow Foundation Kashif Alam Program Manager Developer Division Microsoft Corporation.
Project “Astoria” first announced in Mix 2007 Shared early prototypes, got tons of feedback Now we’re talking about the real deal Production quality bits,
 Mike Flasko Program Manager Microsoft Corporation TL07.
Why data services? Common challenges when creating rich web applications Creating rich web applications with data services Future scenarios & roadmap.
Name Microsoft Student Partner Overview of the Visual Studio 2005 Express Products.
Quick overview of ASP.NET Ajax Ajax deep-dive Cover some key real-world problems Discuss solutions, patterns, opportunities Lots of demos And more of.
1 ADO.NET Data Services Mike Taulty Developer & Platform Group Microsoft Ltd
DEV221 Windows Forms in Visual Studio 2005: An Overview Saurabh Pant Program Manager Microsoft Corporation.
Dynamic Languages Initiative Silverlight ASP.NET Web Services Summary.
Design To Blend Dale G. Jones Director of Creative Design IdentityMine, Inc.
My Sessions here at Tech Ed Mon, 16:00, TLA201, Auditorium A Tour of Visual Studio 2008 and the.NET Framework 3.5 Tue, 10:45, MED202, Room 113 Building.
DAT316 Implementing Microsoft SQL Server Express Steve Lasker Program Manager Microsoft blogs.msdn.com/SteveLasker.
UCM305 Embedding Communications with UCMA SDK 1.0 Chris D. Mayo Technical Evangelist
BizTalk Damir Dobric Lead Architect. Agenda Microsoft BizTalk RFID Overview Architecture Application models Implementing Event Handlers Sensors.
Building Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 Omar Khan Group Program Manager Visual Studio.
TLA404 - MFC Updates for Visual Studio 2008 and Beyond Ale Contenti VC++ Libraries Dev Lead.
DES201 - Developers and Designers collaboration Level 200 Aude Mousset Artistic director i-Breed - France Dick Lantim User eXperience Advisor Microsoft.
2 ADO.NET Data Services for the Web Mike Flasko Program Manager, Microsoft “Project Astoria”
XSLT ‘Extreme’ TLA327 Dave McMahon MCAD,MCDBA,MVP – Connected Systems Developer.
Building Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 Omar Khan Group Program Manager Visual Studio.
Building rich web applications with ASP.NET AJAX Mike Ormond Developer & Platform Evangelism Group, Microsoft Ltd Developer & Platform Evangelism Group,
Reporting Services Futures: Report Authoring for Information Workers Ciprian Jichici Microsoft Regional Director for Romania General Manager, Genisoft.
Introducing the Microsoft® .NET Framework
Building and Consuming REST-based Data Services for the Web
Entity Framework 4 Deep Dive
5/15/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
MIX 09 6/5/2018 9:14 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Chris Menegay Sr. Consultant TECHSYS Business Solutions
Avalon – Using Data In Your Applications
Visual Studio Tools for Office 2005
Microsoft Ignite /22/2018 3:27 PM BRK2121
Shanku Niyogi PRS 312 Group Program Manager Microsoft Corporation
Microsoft Ajax Taking Ajax to the Next Level
Entity Framework 4 and WCF Data Services 4
Overview of Social Computing in Microsoft SharePoint 2010
ADO.NEXT Advances in Data Access for 2008
Developer Patterns to Integrate Silverlight 4.0 with SharePoint 2010
Best Practices: Creating OData Services using WCF Data Services
Tech·Ed North America /7/2018 2:51 PM
Tech Ed North America /1/ :36 AM Required Slide
Intro to Workflow Services and Windows Server AppFabric
TechEd /11/ :54 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Visual Studio 2005 Tools For Office: Creating A Multi-tier Application
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
TechEd /18/ :08 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Pablo Castro Software Architect Microsoft Corporation
Building Awesome Metro style HTML apps in Blend
TechEd /22/2019 9:22 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
From Development to Production: Optimizing for Continuous Delivery
Maxim Lukiyanov Program Manager Microsoft Corporation
Building Business Applications in LightSwitch
TechEd /3/ :48 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
From Development to Production: Optimizing for Continuous Delivery
Brandon Bray Principal Group Program Manager Microsoft Corporation
What’s New in Visual Studio LightSwitch
4/19/2019 1:57 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
TechEd /27/2019 5:37 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Code First Development in Microsoft ADO.NET Entity Framework 4.1
Mark Quirk Head of Technology Developer & Platform Group
.NET Framework V3.5+ & RESTful web services
8/23/ :09 PM #DEV332 Building Modern, HTML5-Based Business Apps on Windows Azure and Office 365 with Visual Studio LightSwitch Andrew
Presentation transcript:

DAT303 - Entity Framework: Application Patterns Pablo Castro Technical Lead, Microsoft Corporation

Session Prerequisites.NET Framework basics ADO.NET Entity Framework basics In TechEd: DAT201 - Entity Framework Introduction Creation of applications with relational databases

Session Objectives and Agenda Session goal: describe concrete application scenarios for the Entity Framework Brief Introduction to the Entity Framework Starting simple: 2-tier applications Getting real: web applications Getting fancy: n-tier applications and services

The ADO.NET Entity Framework The next layer up in the ADO.NET stack Describe your data using a conceptual model, we’ll do the rest Entity Data Model design tools Declarative mapping to the database Generation of.NET classes for your business entities Query using LINQ and Entity SQL Handle updates automatically, SQL-gen or stored-procedures

2-Tier Applications When? Small applications and tools Trusted clients Application types Windows applications using data-binding Single-task console applications UI and application logic Database server, may include some logic Entity Framework

Aspects to Consider Leveraging features Entity Framework has data-binding support built-in Identity resolution maintains object identity in long-running applications Be careful with… Sharing a single context object makes code simpler… …but you need to recycle it or prune it periodically Stale data in the client, concurrency violations more likely

Web Applications When? Data-driven web applications Database can be used directly by web application Characteristics Most logic runs in web server Entity Framework used in web server UI in web browser Database server Entity Framework UI rendering + business logic

Aspects to Consider Usage patterns Short-lived contexts, create a new one every page hit If absolutely needed, round-trip entities in ASP.NET view state Leveraging features Query results work well with data-aware controls Turn-off object tracking if not going to make changes Query-caching/pre-compilation will speed up execution and lower CPU utilization Web application-friendly connection string syntax Things to avoid Do not store context/connections in application-/session-state

Service/Business Logic Tier Data Tier Consumers/Presentation Tier Service contract Multi-Tier Applications When? Medium to large enterprise applications Characteristics Strong UI/business logic separation Enables service- orientation Enables re-use of services and components UI in web browser Entity Framework Desktop application Web server

Strict Contracts Style Typically SOAP-based web services interface WCF is the best tool for this Client proxies automatically generated for consuming apps Entity types may or may not be appropriate Sometimes it is better to have separate service types State management can be tricky Service calls need to re-build state before calling into the Entity Framework Use ObjectContext.Attach()/.Attach()

Flexible Data Interfaces Style Exposes the data in a more flexible way, at the expense of a less strict contract Use ADO.NET Data Services framework a.k.a. “Project Astoria” Data is exposed over HTTP Each entity becomes a resource URIs are used to point to data (both read and write if enabled) Clients for.NET, Silverlight and Javascript available Or plain HTTP can be used for broader reach

Features to Round it up This sessions discussed patterns, not features Some key features commonly applied to real-world scenarios Flexible mapping capabilities, declarative and query-based Stored-procedures support for data retrieval and update Integration with System.Transactions Provider model for multiple database support Graphical tools for authoring models and mappings

Summary The ADO.NET Entity Framework automatically generates a data-access layer from a conceptual model Each application scenario has its specific requirements, and the Entity Framework provides the building blocks to handle them

Q&A

Related Content Breakout Sessions DAT201 Entity Framework Introduction DAT312 Programming SQL Server 2008 WEB313 Project Astoria: Data Services for the Web TLA308 LINQ to SQL: Accessing Relational Data with Language Integrated Query TLA326 LINQ to Entities – Use LINQ to access ADO.NET Entity Data Models Interactive Sessions DAT01-IS Tell Us Where it Hurts! SQL Server Product Feedback Discussion TLA06-IS LINQ to “X”, ADO.NET Entity Framework, DataSets & Co – What is it with all these Data Access Technologies?

Resources Data Team site in MSDN ADO.NET Team blog My blog

Resources Technical Communities, Webcasts, Blogs, Chats & User Groups Microsoft Learning and Certification Microsoft Developer Network (MSDN) & TechNet Trial Software and Virtual Labs ult.mspx ult.mspx New, as a pilot for 2007, the Breakout sessions will be available post event, in the TechEd Video Library, via the My Event page of the website Required slide: Please customize this slide with the resources relevant to your session MSDN Library Knowledge Base Forums MSDN Magazine User Groups Newsgroups E-learning Product Evaluations Videos Webcasts V-labs Blogs MVPs Certification Chats learn support connect subscribe Visit MSDN in the ATE Pavilion and get a FREE 180-day trial of MS Visual Studio Team System!

Complete your evaluation on the My Event pages of the website at the CommNet or the Feedback Terminals to win!

© 2007 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.