OData Programming Cookbook for .NET Developers - download pdf or read online

C

By Steven Cheng

70 fast-track, example-driven recipes with transparent directions and info for OData programming with .NET Framework evaluate grasp OData programming techniques and abilities via imposing sensible examples and observe them in real-world situations. locate basic and convenient capacity to unravel universal OData programming matters extra successfully. discover the recent OData programming good points in newest and destiny models of WCF information carrier Well-designed recipes which are geared up in entire different types corresponding to server-side programming, client-side programming, webhosting and configuration, and safeguard. intimately Odata (Open info Protocol) is an online protocol for querying and updating info that gives the way to liberate your information and unfastened it from silos that exist in purposes this present day. OData permits facts entry between various functions, prone, and shops via adopting current internet applied sciences comparable to HTTP, XML, and JSON. This e-book offers with universal OData programming circumstances over the Microsoft .NET Framework platform and eases the training curve for a .NET developer to begin incorporating OData in facts carrier improvement. This booklet offers a suite of recipes that aid .NET builders to get conversant in OData programming in a brief and effective demeanour. The recipes conceal such a lot OData positive aspects from the previous ADO.NET facts provider to the present WCF information provider platform. moreover, the entire pattern situations listed here are in response to real-world situations and concerns that .NET builders may well encounter while programming with OData in program improvement. This publication should be your convenient consultant with uncomplicated to complex stroll throughs of universal OData programming situations for the Microsoft .NET Framework platform. you'll research quickly strategies to worthy projects to combine the facility of OData at either server-side and client-side. This ebook can assist you grasp using OData with .NET Framework through taking you thru hands-on and

Show description

Read Online or Download OData Programming Cookbook for .NET Developers PDF

Similar c# books

Download e-book for iPad: Beginning CSharp Game Programming by Ron Penton

Are you prepared to aim your hand at programming video games utilizing C#? "Beginning C# video game Programming" is your excellent introductory guide—designed to jumpstart your adventure with C# and DirectX nine. It comprises the basic issues you’ll want to know and covers extra issues that you’ll locate priceless alongside the best way.

Get Visual C Sharp 2005 Demystified PDF

There’s no more straightforward, quicker, or more effective solution to examine the quite tricky subjects
Visual C# 2005 Demystified explains the language and its libraries and functions in addition to tips on how to use the built-in improvement surroundings. This self-teaching consultant comes entire with key issues, history details, quizzes on the finish of every bankruptcy, or even a last examination. easy sufficient for newcomers yet difficult adequate for complicated scholars, this can be a full of life and wonderful brush-up, introductory textual content, or school room complement.

Beginning Windows Phone 7 development by Henry Lee PDF

Microsoft is injecting new power into the shrewdpermanent cell market with the subtle home windows cellphone 7. This new strength equates to new possibilities for you, the cellular developer. starting home windows cellphone 7 improvement has been written particularly that will help you grab those possibilities and start developing purposes for this interesting new cellular gadget platform.

Additional resources for OData Programming Cookbook for .NET Developers

Example text

In this sample, we create some custom data types for the return value of each stored procedure mapping function. This is because in most cases, the returned data columns from a given stored procedure don't exactly match a complete data entity type (corresponding to the target database table). In addition to the imported functions on EF data model class, we also need to add custom operations within the WCF Data Service class. These operations simply delegate the operation call to the corresponding stored procedure mapping functions.

The default output of the OData endpoint is just the same as a standard WCF Data Service (see the following screenshot). How it works... When creating the sample WCF RIA Service, we enable the OData endpoint on it by selecting the Expose OData endpoint option in the Add New Domain Service Class dialog. config file (see the following configuration fragment). serviceModel> section. ODataEndpointFactory type). config file. NET Entity Framework recipe Adding custom operations on OData service By default, WCF Data Service will expose all data object collections provided by the data source in the format of OData entity sets.

Endregion } In the previous code snippet, the GetQueryRootForResourceSet method is the one in which we return the entity set data based on the requested entity set type parameter. The following is the definition of the main provider class (see the following DirectoryFileDataService class) in this sample. It takes a generic parameter which is derived from the data context class we defined earlier. public abstract class DirectoryFileDataService : DataService, IServiceProvider where T : DirectoryFileDataContext { private DirectoryFileDataServiceMetadata _metaProvider = null; private DirectoryFileDataServiceQueryProvider _queryProvider = null; ......

Download PDF sample

Rated 4.00 of 5 – based on 25 votes