• Save
 

CodeMash 2013 Microsoft Data Stack

on

  • 739 views

Explore the Microsoft Data Stack.

Explore the Microsoft Data Stack.

Statistics

Views

Total Views
739
Slideshare-icon Views on SlideShare
739
Embed Views
0

Actions

Likes
1
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    CodeMash 2013 Microsoft Data Stack CodeMash 2013 Microsoft Data Stack Presentation Transcript

    • Mike Benkovichmike@benko.comhttp://www.benkotips.comTwitter: @mbenko
    •  Understand the Microsoft Data Stack  Explore types of clients and formats  What are the service options  Ask the right questionsMore info on www.BenkoTIPS.com
    • OData Poco REST XML RIA
    •  Client  Server  REST & OData  WCF Data Services  ATOM  ADO.NET Entity Framework  JSON  RIA Services
    •  REST vs ODBC  Representation State Transfer  Addressable resource – i.e. URL http://northwind.com/data.svc/Customers(ALFKI)  OData – fka Astoria  Implementation of WCF Data Services  IDataService implementation  WCF Data Services Data  RIA ServicesMore info on www.BenkoTIPS.com
    •  RESTful implementation of a data source  URL based addressing scheme to data service  Implements IDataService interface  Query constructs  Preface commands with $ … i.e. $filter $expand  $skip, $top Server side paging  $expand Expand related entities  $filter Apply where clauseMore info on www.BenkoTIPS.com
    •  Visit http://odata.org for complete list  Available sources include: ▪ SharePoint ▪ TwitPic ▪ Facebook Insights ▪ TechEd 2010 ▪ Netflix ▪ MIX 10 ▪ Twitter ▪ Codename Dallas ▪ IBM Web Sphere ▪ Stack Overflow ▪ Vancouver Street Parking ▪ Server Fault ▪ Dbpedia ▪ EBay ▪ SQL Azure ▪ + more comingMore info on www.BenkoTIPS.com
    •  Netflix  http://odata.netflix.com/Catalog/  http://odata.netflix.com/Catalog/Titles?$skip=5&$top=10  http://odata.netflix.com/Catalog/Titles(BVcw3)  http://odata.netflix.com/Catalog/Titles(BVcw3)/Cast  http://odata.netflix.com/Catalog/People(47249)  http://odata.netflix.com/Catalog/People(47249)/TitlesActedIn  http://odata.netflix.com/Catalog/People(47249)/TitlesActedIn/$count  http://odata.netflix.com/Catalog/People(47249)/Name/$value  http://odata.netflix.com/Catalog/$metadata  TechED 2010  http://odata.msteched.com/sessions.svc/  http://odata.msteched.com/sessions.svc/Speakers?$filter=SpeakerLastName eq Brown‘  http://odata.msteched.com/sessions.svc/Speakers?$filter=SpeakerLastName eq Brown&$expand=Sessions  Twitter  http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=mbenkoMore info on www.BenkoTIPS.com
    •  Client  REST & OData  ATOM  JSON
    •  Implementation of IDataService public class PocoData : DataService< PresenterData > { // This method is called only once to initialize service-wide policies. public static void InitializeService(DataServiceConfiguration config) { config.SetEntitySetAccessRule("*", EntitySetRights.AllRead); config.SetServiceOperationAccessRule("*", ServiceOperationRights.All); config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2; } } Expose functions & methods with [WebGet] [WebGet] public List<string> SayHello() { return new List<string>() { "Hello World", "Whee!" }; }
    •  Object modeling layer Logical representation of Physical schema  Create from Database  Start from scratch
    •  Part of .NET 4.0 Framework  Visual Studio 2010 Designer support  Flexible implementation allows many approaches  Generate from Database  “Model First”  “Code First”  Provides “Logical” to “Physical” abstractionMore info on www.BenkoTIPS.com
    •  Inheritance  Abstract Entities  Table per Hierarchy  Associations within  Table per Type EntitySets  Table per Concrete Type  Associations across  Hybrids EntitySets Many entities to one  Store-side table discriminators Stored Procedures  EDM-side Many tables to one discriminators entity  QueryViews, Defining Query, CommandText
    •  REST and OData provide a simple, easy to use way of addressing data exposed in the real world The industry is adopting OData and embracing it in .NET, AJAX, Silverlight, iPhone, and other emerging platforms WCF Data Services implement the IDataService interface making it very easy to create and host an OData service ADO.NET Entity Framework provides a comprehensive platform for building the Data Layer for n-tier applications
    •  MSDN Data Developer Center: http://msdn.com/data ADO.NET Team Blog: http://blogs.msdn.com/adonet OData Blog: http://odata.org/blog WCF Data Services Team Blog: http://blogs.msdn.com/astoriateam EF Design Blog: http://blogs.msdn.com/efdesign Data Platform Development Forums: http://msdn.com/data and click on the “Forums” tab Patterns and Testability: http://bit.ly/learnef4test, http://bit.ly/ef4wpfsample