ASP.NET + jQuery + Odata = Goodness Stephen Walther Superexpert.com

Slides:



Advertisements
Similar presentations
What Is Microsoft Marketplace DataMarket What Is Microsoft Marketplace DataMarket? Michael Stiefel
Advertisements

SharePoint and Knockout for the REST of Us
Dhananjay Kumar
OASIS OData Technical Committee. AGENDA Introduction OASIS OData Technical Committee OData Overview Work of the Technical Committee Q&A.
.NET 3.5 SP1 New features Enhancements Visual Studio 2008 SP1 New features Enhancements Additional features/enhancements.
HTML5 Applications with ASP.NET Web Forms Stephen Walther Superexpert.com
.NET Framework V3.5+ & RESTful web services Mike Taulty Developer & Platform Group Microsoft Ltd
& Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin
05 | Data Access with Entity Framework Bruno Terkaly | Technical Evangelist Bret Stateham | Technical Evangelist.
Access Web Apps – OK, Now What? EXTENDING ACCESS WEB APPS George Young Dawson Butte Software ACCESS DAY – OCTOBER DENVER,
Building Offline/Cache Mode Web Apps Using Sync Framework Mike Clark Group Manager Cloud Data Services Team
Using jQuery Templates with ASP.NET Stephen Walther Superexpert.com
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Building Data Driven Applications Using WinRT and XAML Sergey Barskiy, Magenic Microsoft MVP – Data Platform Principal Consultant Level: Intermediate.
ASP.NET Web API Udaiappa Ramachandran NHDN-Nashua.NET/Cloud Computing UG Lead Blog:
ODATA DELTAS Deltas provide a hypermedia-driven solution for retrieving changes to a given set of data.
ADO.NET DATA SERVICES Mike Taulty Developer & Platform Group Microsoft UK
Service Interfaces Atom & AtomPub Atom-Enabled Data Services Drill Down: Windows Live Spaces Photos Data Services Framework Wrap-up.
Open Data Protocol * Han Wang 11/30/2012 *
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.
OData: There’s a Feed for That Pablo Castro Software Architect Microsoft Corporation
Lap Around Visual Studio 2008 &.NET 3.5 Enhancements.
Introduction to the SharePoint 2013 REST API. 2 About Me SharePoint Solutions Architect at Sparkhound in Baton Rouge
The Web Developer’s Toolbox Steve Fabian e:
HTML5 AND THE FUTURE JAVASCRIPT PLATFORM Marcelo Lopez Ruiz Senior Software Design Engineer Microsoft Corporation.
1 ADO.NET Data Services Mike Taulty Developer & Platform Group Microsoft Ltd
Using OData Data Sources in SharePoint 2013 Solutions Hunter
Virtual techdays INDIA │ 9-11 February 2011 virtual techdays Data grail: Data Market on Windows Azure Sudhindra Kovalam │ Developer, Icertis Inc.
Implementing OData: How to Create a Feed for That Mike Flasko Lead Program Manager Microsoft Corporation
Data lifecycle (CRUD+) Operation logic, query, databinding, change tracking, unit of work Validation User: authn/authz/profile.
Ken Casada Developer Evangelist Microsoft Switzerland Visual Studio LightSwitch.
Data Access Methodologies: When to choose what (ADO.NET, Entity Framework, WCF Data Services) Wriju Ghosh Lead Partner Consultant, Microsoft.
The New Face of ASP.NET ASP.NET MVC, Razor, and jQuery Ido Flatow | Senior Architect | Sela | This session is.
Spaso Lazarević Microsoft MVP Nova banka ad Banja Luka Building business application using Visual Studio 2013 LightSwitch.
To OData or Not to OData Chris Eargle kodefuguru.com.
Exploring Networked Data and Data Stores Lesson 3.
2 ADO.NET Data Services for the Web Mike Flasko Program Manager, Microsoft “Project Astoria”
Software services delivering SharePoint, Mobile, and Business Intelligence solutions Creating mobile applications that integrate with SharePoint 2013 on-
Building and Consuming REST-based Data Services for the Web
Data Persistence In A Web Hosted World
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.
Baoming Yu(于宝明) Software Engineer Wicresoft
Microsoft Ajax Taking Ajax to the Next Level
KnockoutJS -Pradeep Shet 31st August 2014.
IBM Data Server Gateway for OData
End to end app development ASP.NET, WCF, WF, EF, & RIA Services
Entity Framework 4 and WCF Data Services 4
Build a RESTful service with OData
Microsoft Build /15/2018 6:28 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
DotnetConf 11/17/ :06 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE.
Accessing Data in a .NET Web Application
Windows Azure Keenan Newton 3-021
Your Devices + OData + Azure = 
WCF Data Services Getting Started Guide
Tech Ed North America /1/ :36 AM Required Slide
Saranya Sriram Developer Evangelist | Microsoft
Building HTTP services for modern client apps
Pablo Castro Software Architect Microsoft Corporation
TechEd /22/2019 9:22 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Building Business Applications in LightSwitch
OData Futures: creating the web of data
HTML5 Course Review Master a Skill / Learn for Life.
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.
WCF Data Services and Silverlight
ITI 257 Data Analysis with Power BI
Erik Porter Program Manager ASP.NET Microsoft Corporation
data programming and modeling for the Microsoft .net developer
.NET Framework V3.5+ & RESTful web services
SQL Azure to .NET Developers
Presentation transcript:

ASP.NET + jQuery + Odata = Goodness Stephen Walther Superexpert.com

Agenda Overview of OData/WCF Data Services Querying OData from jQuery Creating/Editing OData from jQuery Client/Server Validation Useful OData plugins

The Open Data Protocol (OData) Defined at Odata.org: ● Open Standard ● REST = Representational State Transfer ● Supports XML (Atom) and JSON ● XHR and JSONP

OData Data Sources Netflix NuGet Stack Overflow SQL Azure Azure Table Storage SharePoint 2010 Windows Live SQL Server Reporting Services eBay

WCF Data Services Exposes data using the OData protocol WCF Data Services February 2011 CTP2 ● Works with Entity Framework 4.1 (Code First)

WCF Data Services Exposes DBContext:

Querying OData OData URIs have three parts: ● Service Root ● Resource Path ● Query Options

Querying OData Query Options: ● $select ● $filter ● $top ● $skip ● $orderby ● $inlinecount ● $count $expand $format $links $metadata $value

Query OData (Operators)

Query OData (String Filters)

Query OData (Date Filters)

Query OData (Math Filters)

Query OData (Type Filters)

Query OData __metadata:

Query OData with jQuery

Create New Entities

Edit Existing Entities

Validation Client = Use jQuery Validate Use for immediate user feedback Server = Use Entity Framework Use for domain validation

Client Validation Use jQuery Validate to create client validation rules

Server Validation Use Data Annotation validators to validate properties:

Server Validation Use the IValidatableObject interface for more complex validation:

Server Validation Handle the Entity Framework DbEntityValidationException in your service class:

jQuery OData Plugin Created by Egil Hansen: ● Updated fork at: ●

DataJS Plugin Created by Microsoft: ● Supports reading and updating data Supports HTML5 DOM Storage

Resources ● WCF Data Services March 2011 CTP b392-6b04cdc821behttp:// b392-6b04cdc821be ● Entity Framework 4.1 (Included with MVC3) 48b2-878d-b9f49d87569ahttp:// 48b2-878d-b9f49d87569a ● jQuery Templates Install-Package jQuery.Templates ● jQuery UI (Included with MVC3) Install-Package jQuery.UI ● jQuery Odata ● DataJS

Download the Sample Code Visit Stephen Walther’s blog to download the sample code for this talk: ●

Website: Phone:

Your Feedback is Important Please fill out a session evaluation form. Thank you!