Skip to content

FabianGosebrink/ASPNET-OData-WebAPI-Sample

Repository files navigation

ASP.NET - WebAPI - OData - Entity Framework

In this repository I want to show you an Odata sample of an ASP.NET WebAPI.

Before you run this sample make sure you install all nuget packages. The repo is using Ninject as dependency injection resolver.

After starting this repo with Visual Studio you can use Postman to fire queries against the database.

The endpoint is available through [yourHost]/odata/

Querying normal data

http://localhost:3153/odata/Houses

Postman

Querying data with select (datashaping)

http://localhost:3153/odata/Houses?$select=Street, City

Postman

Querying data with select (datashaping) and child properties with $expand

http://localhost:3153/odata/Houses?$select=Street, City, ZipCode&$expand=Persons

Postman

About

ASP.NET OData example with Entity Framework and Repositories

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages