Share via


ODataController.Created<TEntity>(TEntity) Method

Definition

Creates an action result with the specified values that is a response to a POST operation with an entity to an entity set.

protected virtual Microsoft.AspNetCore.OData.Results.CreatedODataResult<TEntity> Created<TEntity> (TEntity entity);
override this.Created : 'Entity -> Microsoft.AspNetCore.OData.Results.CreatedODataResult<'Entity>
Protected Overridable Function Created(Of TEntity) (entity As TEntity) As CreatedODataResult(Of TEntity)

Type Parameters

TEntity

The created entity type.

Parameters

entity
TEntity

The created entity.

Returns

A CreatedODataResult<T> with the specified values.

Remarks

This function uses types that are AspNetCore-specific.

Applies to