Monthly Archives: June 2014

Web API OData V4 Using Contained Models Part 6

This post is part 6 of the Web API and OData V4 series. This article shows how Web API 2.2 with OData V4 can use contained EntityTypes in an OData model without defining the entities on the top level. In this example, the Player entity is the route entity set. The PlayerStats can then be […]

Web API OData V4 Using Unity IoC, SQLite with EF6 and OData Model Aliasing Part 5

This post is part 5 of the Web API and OData V4 series. This article shows how Web API 2.2 with OData V4 can be used together with Unity as an IoC, Entity Framework with SQLite for persistence and also creates an OData service which can do CRUD operations. OData Model Aliasing features are used […]

Web API OData V4 using enum with functions and Entities Part 4

This post is part 4 of the Web API and OData V4 series. This article shows how Web API 2.2 with OData V4 supports enum in entities or as return values and also supports enum parameters for functions. Part 1 Getting started with Web API and OData V4 Part 1. Part 2 Web API and […]

Web API and OData V4 CRUD and Actions Part 3

This article demonstrates how simple CRUD operations can be mapped to an OData service, how to map DateTimeOffset to DateTime types in the entity framework and also how to create OData actions for Entities and Entity Collections. This post is part 3 of the Web API and OData V4 series. Part 1 Getting started with […]

Web API and OData V4 Queries, Functions and Attribute Routing Part 2

This post continues on from Getting started with Web API and OData V4. Part 1 Getting started with Web API and OData V4 Part 1. Part 2 Web API and OData V4 Queries, Functions and Attribute Routing Part 2 Part 3 Web API and OData V4 CRUD and Actions Part 3 Part 4 Web API […]

Getting started with Web API and OData V4 Part 1

This article demonstrates how to create an OData V4 Web API service which uses Entity Framework 6 and SQL 2014 for persistence. OData V4 was released with Web API 2.2. The OData V4 standard is documented here: http://www.odata.org/documentation/. The Web API implementation does supports a lot of features from the standard, but not all. Part […]

SignalR Self Hosting in a Windows Service

This blog provides a simple template or example of a windows service which hosts a SignalR service. Code: https://github.com/damienbod/SignalRWSelfHostingWindowsServiceTemplate The Start and Stop methods used by the Windows Service use a long running Task which can be cancelled. SignalR is self hosted in OWIN. The main method of the service just starts the service. If […]

Web API GitHub OAuth2 Code Flow

This article demonstrates how to setup an OAuth2 code flow example using GitHub as an authorization server and a Web API service as a resource server. Thanks to Jerrie Pelser and Thinktecture for providing code and blogs which made it easy to research this and setup a working example. Code: https://github.com/damienbod/WebAppGitHubCodeFlow Setting up GitHub OAuth2 […]