Part 11 – OData v4 in ASP.NET WebApi – Route Attributes

This is a series of blogs detailing my introduction to using OData v4 with C# and ASP.NET WebApi. The source code for the project can be found here. Conventional Routes I mentioned in previous blogs that if we name our controllers and actions in a specific way, an OData request will locate the right action. … More Part 11 – OData v4 in ASP.NET WebApi – Route Attributes

Part 10 – OData v4 in ASP.NET WebApi – Alternate Key

This is a series of blogs detailing my introduction to using OData v4 with C# and ASP.NET WebApi. The source code for the project can be found here. Conventional Data Model Up to now our two code examples built the Entity Data Model (EDM) using the Conventional Data Model. We defined a model class and … More Part 10 – OData v4 in ASP.NET WebApi – Alternate Key

Part 08 – OData v4 in ASP.NET WebApi – Single key

This is a series of blogs detailing my introduction to using OData v4 with C# and ASP.NET WebApi. The source code for the project can be found here. Creating the Project The Project is called Part08 Create the Customer Model In the Models folder create a Customer class for our Entity. public class Customer { … More Part 08 – OData v4 in ASP.NET WebApi – Single key

Part 07 – OData v4 in ASP.NET WebApi – Setting Up the Demos

This is a series of blogs detailing my introduction to using OData v4 with C# and ASP.NET WebApi. Rather than repeat myself in each blog, I will discuss how I initially setup each demo. The source code for this project can be found here Software Versions All my demos will be using .NET 4.5.2 Microsoft.AspNet.OData” … More Part 07 – OData v4 in ASP.NET WebApi – Setting Up the Demos

Part 05 – OData v4 in ASP.NET WebApi – Querying 1

This is a series of blogs detailing my introduction to using OData v4 with C# and ASP.NET WebApi. Query OData Entities Once we have the OData model defined we can start to query the entities. Within the EntityContainer in the metadata document there are four EntitySets defined. Let’s begin running some queries against them. The … More Part 05 – OData v4 in ASP.NET WebApi – Querying 1

Part 04 – OData v4 in ASP.NET WebApi – Metadata Document

This is a series of blogs detailing my introduction to using OData v4 with C# and ASP.NET WebApi. What is a Metadata Document An OData Metadata Document shows a more detailed XML data model that describes the data and operations exposed by an OData service. All OData services must have metadata document. The Metadata Document … More Part 04 – OData v4 in ASP.NET WebApi – Metadata Document

Part 03 – OData v4 in ASP.NET WebApi – Service Document

This is a series of blogs detailing my introduction to using OData v4 with C# and ASP.NET WebApi. What is an OData Service An OData Service is where you expose your data to the client. An OData URL will always start http://host/Service. It is possible to expose multiple OData Services on the same host which … More Part 03 – OData v4 in ASP.NET WebApi – Service Document

Part 02 – OData v4 in ASP.NET WebApi – Entity Data Model

This is a series of blogs detailing my introduction to using OData v4 with C# and ASP.NET WebApi. OData is a protocol and libraries like ASP.NET WebApi implement part or all of the protocol. You can view the current v4 protocol documentation here. http://docs.oasis-open.org/odata/odata/v4.0/odata-v4.0-part1-protocol.html What is the Entity Data Model At the heart of OData … More Part 02 – OData v4 in ASP.NET WebApi – Entity Data Model