Data Access Methodologies: When to choose what (ADO.NET, Entity Framework, WCF Data Services) Wriju Ghosh Lead Partner Consultant, Microsoft.

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Identity Management - Login © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
.NET 3.5 SP1 New features Enhancements Visual Studio 2008 SP1 New features Enhancements Additional features/enhancements.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Shyam Pather Development Manager Microsoft Session Code: DTL402.
Change the Rules Distributed data apps with.NET Zlatko Knezevic Developer Evangelist Microsoft
Feature: Reprint Outstanding Transactions Report © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
ASP.NET Web Forms vs. MVC Choosing the right one for web development Harish Ranganathan Senior Evangelist Microsoft Corporation.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Payroll and HR Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
.NET Framework V3.5+ & RESTful web services Mike Taulty Developer & Platform Group Microsoft Ltd
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: OLE Notes Migration Utility
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
 Pablo Castro Software Architect Microsoft Corporation TL08.
Feature: SmartList Usability Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Session 1.
travel Suru Windows 7 Release NET 4.0 / Surface 2.0 Release Multi-Touch Controls Multi-Touch API Surface Multi-Touch Controls & API Surface.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Shyam Pather Development Manager Microsoft Corporation SESSION CODE: DEV324.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Connect with life Connect with life
Service Interfaces Atom & AtomPub Atom-Enabled Data Services Drill Down: Windows Live Spaces Photos Data Services Framework Wrap-up.
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,
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: Employee Self Service Timecard Entry © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
SQL Server SQL Azure Visual Studio“Quadrant” SQL Server Modeling Services Entity Framework ADO.NET“M”/EDM Data Services …
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Why data services? Common challenges when creating rich web applications Creating rich web applications with data services Future scenarios & roadmap.

customer.
1 ADO.NET Data Services Mike Taulty Developer & Platform Group Microsoft Ltd
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Language Integrated Query Mike Taulty Developer & Platform Group Microsoft Ltd

2 Behind every great site, there is great data Eric Nelson Developer Evangelist Microsoft UK
DataModel VisualizationExternal Assets Workbook Excel Services API BrowserRich Apps EWA JSOMBrowser REST BrowserRich Apps.
End to end app development ASP.NET, WCF, WF, EF, & RIA Services
Возможности Excel 2010, о которых следует знать
ADO.NEXT Advances in Data Access for 2008
Accessing Data in a .NET Web Application
Title of Presentation 12/2/2018 3:48 PM
Your Devices + OData + Azure = 
Tech Ed North America /1/ :36 AM Required Slide
Pablo Castro Software Architect Microsoft Corporation
Creating and Consuming OData Services for Business Applications
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
PENSACOLA ENERGY WORK PLAN OCTOBER 10, 2016
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
9/14/2019 6:51 AM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Presentation transcript:

Data Access Methodologies: When to choose what (ADO.NET, Entity Framework, WCF Data Services) Wriju Ghosh Lead Partner Consultant, Microsoft

Agenda Data Access Technology Recap ADO.NET ADO.NET Entity Framework WCF Data Services / OData

Development of Native Data Access SQL Server Databases DB-Library ESQL for C Various Stores … API Raw Data Native Client JDBC Drivers ODBC Abstract Call-Level OLE DB ADO (RecordSet) Simplified Object Level (pointerless languages) MSDASQL RDO Object Level (pointer-capable languages) Direct APIs PHPPHP PHPPHP

.NET Data Access Object-Relational Mapping LINQ to Entities SQL Server Databases Various Stores … Raw Data OLE DB ODBC Data Providers LINQ Any Data ADO.NET Core ADO.NET Data Providers LINQ to SQL, DataSet.NET Classes Entity Framework Various Stores + XML IQueryable IEnumerable LINQ to Objects, etc. LINQ to XML Entity Data Model Language Integration SqlClient WCF Data Services (OData) RESTful Services

.NET Data Access Guidance ADO.NET Core –Use it when you want the lowest level control LINQ to SQL –Fully supported but little new investment ADO.NET Entity Framework –Significant investment in.NET 4 and beyond –All new apps should start here –Existing apps can leverage EF incrementally WCF Data Services and OData –Use it for services that primarily expose data –Growing ecosystem of clients and servers

Entity Framework in Context ORM from Microsoft and continued future investments Fully supports WCF Next generation of Data Access First class POCO support Native support for Stored Procedures Support for Oracle, MySQL, DB2, FireBird and many more

New in Entity Framework 4.0 Model-first development Automatic pluralization Foreign keys in models POCO class support Lazy loading T4 Code Generation Template customization IObjectSet Virtual SaveChanges ObjectStateManager control Self-tracking entities SQL generation improvements More LINQ operator support LINQ extensibility ExecuteStoreQuery ExecuteStoreCommand SPROC import improvements Model defined functions WPF designer integration Code-Only development (Feature CTP)

EF Recommendations Start with the EF for new apps Use Patterns – adopting an O/RM sets you up well for this –Repository, Unit of Work –POCO / “Persistence Ignorant” classes –DDD/TDD Learn about the EF features and techniques you can use to tune your applications –Compiled queries –Splitting up models –…

Data Services Guidance

Data Services in Context What is WCF Data Services? –Server framework for creating REST-based data-centric web services –Client libraries for consuming data services –REST-based protocol called OData (Open Data Protocol) It’s part of the WCF stack The OData ecosystem is growing! –Big announcement at MIX10

Scenarios for Data Services Client-server designed and deployed together Functionality surfaces in user interface DLL + XAML Data (XML, etc) Data in Modern Web AppsOnline Services Loosely coupled clients and servers State, functionality through service interface Data (XML, etc)

What is OData? Uniform way of representing structured data –Atom, JSON formats Uniform URL conventions –Navigation, filtering, sorting, paging, etc. Uniform operations –Addressability –GET, POST, PUT, DELETE always mean the same A growing number of services and clients –Servers: OGDI, NetFlix, Reporting Services –Clients:.NET, AJAX, PHP, Excel

Social connections Facebook (Wriju Ghosh) Twitter (wriju_ghosh)

Resources Software Application Developers Infrastructure Professionals

© 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.