Skip to main content

Getting started

info

In this short getting-started guide, we expect you are already running an Asp .Net OData service (version 8). If you have no experience with OData or want to start from scratch, use this guide.

Installation

Aspor can directly be installed into your Asp .Net project with the NuGet packet manager. We always recommend installing the four base packages Aspor.Common, Aspor.Validation, Aspor.Authorization, Aspor.EF to get the best experience.

Install-Package Aspor.Common Aspor.Validation Aspor.Authorization Aspor.EF Aspor.Export

Configuration

services.AddAsporValidation();
services.AddControllers()
.AddAutoPreValidationCheck()
.AddAsporODataPageSize()
.AddAsporReturnPreference()
.AddAsporETagAutoMatch()
.AddAsporExport()