You are previewing OData Programming Cookbook for .NET Developers.
O'Reilly logo
OData Programming Cookbook for .NET Developers

Book Description

"

Over 40 fast-track, example-driven recipes with clear instructions and details for OData programming with .NET Framework with this book and ebook.

  • Master OData programming concepts and skills by implementing practical examples and apply them in real-world scenarios

  • Find simple and handy means to resolve common OData programming issues more effectively

  • Explore the new OData programming features in latest and future versions of WCF Data Service

  • Well-designed recipes that are organized in complete categories such as server-side programming, client-side programming, hosting and configuration, and security

  • In Detail

    Odata (Open Data Protocol) is a Web protocol for querying and updating data that provides a way to unlock your data and free it from silos that exist in applications today. OData enables data access among a variety of applications, services, and stores by adopting existing Web technologies such as HTTP, XML, and JSON. This book deals with common OData programming cases over the Microsoft .NET Framework platform and eases the learning curve for a .NET developer to start incorporating OData in data service development.

    This book provides a collection of recipes that help .NET developers to get familiar with OData programming in a quick and efficient manner. The recipes cover most OData features from the former ADO.NET Data Service to the current WCF Data Service platform. In addition, all the sample cases here are based on real-world scenarios and issues that .NET developers might come across when programming with OData in application development.

    This book will be your handy guide with basic to advanced walkthroughs of common OData programming cases for the Microsoft .NET Framework platform. You will learn quick solutions to necessary tasks to integrate the power of OData at both server-side and client-side.

    This book will help you master the use of OData with .NET Framework by taking you through hands-on and practical recipes. It starts by talking about the common means for building OData services and consuming OData services in client applications. Then, some more specific topics like hosting, configuration and security are discussed. The book also covers many popular and interesting topics such as integrating OData in web applications, and developing data-driven mobile applications with OData. Moreover, you can also find quite a few recipes discussing real-world OData producers and new features in latest and future versions.

    Within "OData Programming Cookbook for .NET Developers", all the recipes are selected based on real-world scenarios that you will commonly come across. Each recipe covers a specific topic, going from the description of the problem, through a conceptual solution, to a solution containing sample code. By following these recipes, you can acquire how to program with OData in a simple, effective, and easy manner.

    "

    Table of Contents

    1. OData Programming Cookbook for .NET Developers
      1. OData Programming Cookbook for .NET Developers
      2. Credits
      3. About the Author
      4. About the Reviewers
      5. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
          3. Instant Updates on New Packt Books
      6. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      7. 1. Building OData Services
        1. Introduction
        2. Building an OData service via WCF Data Service and ADO.NET Entity Framework
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Building an OData service with WCF Data Service and LINQ to SQL
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        4. Exposing OData endpoints from WCF RIA Service
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Adding custom operations on OData service
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Exposing database stored procedures in WCF Data Service
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Using custom data objects as the data source of WCF Data Service
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        8. Using Interceptors to customize a WCF Data Service
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        9. Accessing ASP.NET context data in WCF Data Service
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        10. Creating a custom WCF Data Service provider
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
      8. 2. Working with OData at Client Side
        1. Introduction
        2. Exploring an OData service through web browser
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Using Visual Studio to generate strong-typed OData client proxy
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
        4. Generating OData client proxy via DataSvcUtil.exe tool
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
        5. Editing and deleting data through WCF Data Service client library
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
        6. Accessing OData service via WebRequest class
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
        7. Executing OData queries in an asynchronous manner
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        8. Filtering OData query results by using query options
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
        9. Dealing with server-side paged entity sets from WCF Data Service
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
        10. Performing WPF data binding with OData service data
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
        11. Injecting custom HTTP headers in OData requests
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        12. Consuming HTTP compression enabled OData service
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
        13. Using MSXML to consume OData service in unmanaged applications
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      9. 3. OData Service Hosting and Configuration
        1. Introduction
        2. Hosting a WCF Data Service in IIS server
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Hosting a WCF Data Service in Console application
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Deploying a WCF Data Service on Windows Azure host
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        5. Configuring WCF Data Service to return error details
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
          3. Configuring WCF Data Service to return JSON-format response
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. See also
        6. Applying basic access rules on WCF Data Service
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
        7. Getting rid of .svc extension by using ASP.NET URL Routing
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        8. Enabling dynamic compression for OData service hosted in IIS 7
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
      10. 4. Using OData in Web Application
        1. Introduction
        2. Building data-driven ASP.NET Web Form pages with OData
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Adopting OData in ASP.NET MVC web applications
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Building ASP.NET Page UI with OData and XSLT
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        5. Building AJAX style data-driven web pages with jQuery
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
        6. Consuming OData service with datajs script library
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
        7. Using OData service in Silverlight data access application
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        8. Consuming WCF Data Service in PHP pages
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
      11. 5. OData on Mobile Devices
        1. Introduction
        2. Accessing OData service with OData WP7 client library
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Consuming JSON-format OData service without OData WP7 client library
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Creating Panorama-style, data-driven Windows Phone applications with OData
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
        5. Using HTML5 and OData to build native Windows Phone application
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
        6. Accessing WCF Data Service in Android mobile application
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        7. Accessing WCF Data Service in iOS application
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      12. 6. Working with Public OData Producers
        1. Introduction
        2. Getting started with Netflix OData online catalog
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
        3. Manipulating Sharepoint 2010 documents through OData endpoint
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
        4. Using OData protocol for Windows Azure Table storage access
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
        5. Query StackOverflow forums data with OData endpoint
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        6. Tracking information of NuGet packages through OData feeds
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
        7. Exploring eBay online products catalog through OData service
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
        8. Consuming SSRS 2008 R2 report through OData feed
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
      13. 7. Working with Security
        1. Introduction
        2. Applying Windows authentication for OData service
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
          3. Using ASP.NET Forms authentication to secure OData service
            1. Getting ready
            2. How to do it...
              1. How it works...
              2. There's more...
              3. See also
            3. Securing OData service with HTTPS transport
              1. Getting ready
              2. How to do it...
                1. How it works...
                2. See also
              3. Implementing OData service authentication with custom HTTP Module
                1. Getting ready
                2. How to do it...
                  1. How it works...
                  2. There's more...
                  3. See also
                3. Adding custom authorization with server-side processing pipeline
                  1. Getting ready
                  2. How to do it...
                  3. How it works...
                  4. See also
                4. Using Interceptors to control access for individual entity set
                  1. Getting ready
                  2. How to do it...
                    1. How it works...
                    2. See also
                  3. Implementing role-based security for OData service
                    1. Getting ready
                    2. How to do it...
                    3. How it works...
                    4. There's more...
                    5. See also
      14. 8. Other OData Programming Tips
        1. Introduction
        2. Using LINQPad to compose OData query code
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Exploring OData service with ODataExplorer
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        4. Using OData service in Windows PowerShell script
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Exploring OData service with Microsoft Excel PowerPivot component
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        6. Inspecting OData HTTP traffic through Fiddler web debugger
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Using Open Data Protocol Visualizer to inspect the object model of OData service
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        8. Consuming OData service in Windows 8 Metro style application
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
      15. 9. New Features of WCF Data Service 5.0 (OData V3)
        1. Introduction
        2. Upgrading existing OData service to WCF Data Service 5.0
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
        3. Using geospatial types in OData service
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
        4. Using Any and All operators to filter OData entities
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
        5. Updating OData entities through HTTP PATCH requests
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
        6. Resolving base URI of OData entity sets dynamically
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
        7. Exposing binary data on OData entity with Named Resource Stream
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
        8. Extending OData service functionalities with Service Actions
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also