Stephen Forte DAT401 from s in dat.Speaker select s.Bio; Chief Strategy Officer of Telerik Certified Scrum Master Active in the community: International.

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.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Stephen Forte Chief Strategy Officer Telerik WUX204.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
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.
Co- location Mass Market Managed Hosting ISV Hosting.
Stephen Forte Chief Strategy Officer Telerik Session Code: WUX310.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
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.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Connect with life Connect with life
NEXT: Overview – Sharing skills & code.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
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.

customer.
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
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Stephen Forte Chief Strategy Officer Telerik Session Code: DEV317.
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

Mark Michaelis Chief Computer Nerd IDesign/Itron/IntelliTechture DTL313.
9/11/2018 5:53 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Tech Ed North America /13/ :13 AM Required Slide
Tech·Ed North America /15/2018 3:31 AM
Возможности Excel 2010, о которых следует знать
Optimizing Microsoft SQL Server 2008 Applications Using Table Valued Parameters, XML, and MERGE
Integrating Microsoft SharePoint 2010 with Windows Azure
Sysinternals Tutorials
Title of Presentation 12/2/2018 3:48 PM
Brian Keller Sr. Technical Evangelist Microsoft Session Code: DEV310
Tech·Ed North America /7/2018 2:51 PM
Tech Ed North America /1/ :36 AM Required Slide
1/17/2019 9:05 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Brian Keller Sr. Technical Evangelist Microsoft Session Code: DEV310
Building Silverlight Apps with RIA Services
Silverlight Debugging
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.
4/27/17, Bell #8 What amount of net pay has been earned this period?
Ward Bell VP Technology IdeaBlade, Inc.
Architecting Silverlight Applications with MVVM
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
TechEd /28/2019 7:58 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
2010 Microsoft BI Conference
From Start to REST in 60 Minutes (DEV323)
Hack-proofing your Clients using Windows 7 Security!
Шитманов Дархан Қаражанұлы Тарих пәнінің
Lap Around the Windows Azure Platform
Code First Development in Microsoft ADO.NET Entity Framework 4.1
Title of Presentation 5/24/2019 1:26 PM
What’s New in Visual Studio 2012 for Web Developers
Presentation transcript:

Stephen Forte DAT401

from s in dat.Speaker select s.Bio; Chief Strategy Officer of Telerik Certified Scrum Master Active in the community: International Conference Speaker for 12+ years RD, MVP and INETA Speaker Co-moderator & founder of NYC.NET Developers Group Author of SQL Server 2008 Developers Guide (MS Press) MBA from the City University of New York Past: CTO and co-founder of Corzen, Inc. (TXV: WAN) CTO of Zagat Survey

Agenda ADO.NET: Passing a.NET Custom Collection to a Stored Procedure LINQ: Understanding the difference between IEnumerable and IQueryable by eavesdropping on the server Entity Framework: Model Complex Relationships with Views Silverlight: Binding REST data to Silverlight Database Architecture: Pre-calculate and Transform Data for Faster Performance

Agenda ADO.NET: Passing a.NET Custom Collection to a Stored Procedure LINQ: Understanding the difference between IEnumerable and IQueryable by eavesdropping on the server Entity Framework: Model Complex Relationships with Views Astoria: Binding REST data to Silverlight Database Architecture: Pre-calculate and Transform Data for Faster Performance

Hack #1: Pass.NET Collection to SPs SQL Server 2008 allows Table Valued Variables to be passed into a stored procedure (TVP) ADO.NET 3.51 allows a DataSet to be passed into a SP via a TVP Your custom.NET collection is a graph of the data you want to insert/change Must implement IEnumerable Create a C# 3.0 Extension method that takes any IEnumerable collection and converts to a DataSet Call your stored procedure with yourcollection.ToDataSet()

Using TVPs and.NET 3.5 Extension Methods

Agenda ADO.NET: Passing a.NET Custom Collection to a Stored Procedure LINQ: Understanding the difference between IEnumerable and IQueryable by eavesdropping on the server Entity Framework: Model Complex Relationships with Views Astoria: Binding REST data to Silverlight Database Architecture: Pre-calculate and Transform Data for Faster Performance

Hack #2: Spying on Your Server Use implicitly typed local variables IEnumerable will execute locally (Linq to Objects, XML) IQueryable will convert your LINQ to TSQL and execute remotely When executing remotely, LINQ queries will generate TSQL on your server You can spy on this SQL via code or even better, watch the whole conversation via SQL Server Profiler Learning a very small amount about TSQL, Indices, and Execution Plans will make you a far better LINQ programmer

LINQ to SQL, LINQ to EF, LINQ to ORM + SQL Server Profiler

Agenda ADO.NET: Passing a.NET Custom Collection to a Stored Procedure LINQ: Understanding the difference between IEnumerable and IQueryable by eavesdropping on the server Entity Framework: Model Complex Relationships with Views Astoria: Binding REST data to Silverlight Database Architecture: Pre-calculate and Transform Data for Faster Performance

Hack #3: Deconstruct Complex Databases Before You Map Them Some DBAs go overboard and super normalize the database Hard to represent a relationship via too many joins ORMs/EF are supposed to do this for us; however, it creates difficult models to work with Many models are just 1:1 representations of the database Create a series of views that deconstruct your complex data and optimize those views with an index Updates? Use stored procedures or you can still model the tables and only use them for updates

Creating Views Out of Complex Data Relationships for EF

Agenda ADO.NET: Passing a.NET Custom Collection to a Stored Procedure LINQ: Understanding the difference between IEnumerable and IQueryable by eavesdropping on the server Entity Framework: Model Complex Relationships with Views Astoria: Binding REST data to Silverlight Database Architecture: Pre-calculate and Transform Data for Faster Performance

Hack #4: Silverlight Databinding to RESTful Data Services Use LINQ to ADO.NET Data Services on the SL client Leverage your investment in LINQ; however, you have to be 100% asynchronous Hack: Encapsulate all the asynchronous LINQ calls into its own helper library using Generics Beware of cross-domain issues Clientaccesspolicy.xml WCF Web Service, then expose as RESTful data

Asynchronous ADO.NET Data Services Data Binding via LINQ to Astoria in Silverlight

Agenda ADO.NET: Passing a.NET Custom Collection to a Stored Procedure LINQ: Understanding the difference between IEnumerable and IQueryable by eavesdropping on the server Entity Framework: Model Complex Relationships with Views Astoria: Binding REST data to Silverlight Database Architecture: Pre-calculate and Transform Data for Faster Performance

Hack #5: “Reporting DB” Design Pattern Optimize for a high read environment with multiple views of the data and multiple data access strategies What data to move? Anything that can be derived from an OLTP database for high read Reporting data Web view (Amazon catalog, not orders) Traditionally “flatter” Some de-normalized aspects Prevents query against normalized “raw” data Must accept latency Good implementation of XML Highly indexed since the data is “published”

Building the Database for Database Reads

Sessions On-Demand & Community Resources for IT Professionals Resources for Developers Microsoft Certification and Training Resources Microsoft Certification & Training Resources Resources

Complete an evaluation on CommNet and enter to win! Required Slide

© 2009 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. Required Slide