Skip to main content

Definition

Assembly: Microsoft.Restier.AspNet.dll Namespace: Microsoft.Restier.AspNet.Model Inheritance: Microsoft.Restier.AspNet.Model.OperationAttribute

Syntax

Microsoft.Restier.AspNet.Model.BoundOperationAttribute

Constructors

.ctor

Syntax

public BoundOperationAttribute()

.ctor Inherited

Inherited from Microsoft.Restier.AspNet.Model.OperationAttribute

Syntax

protected OperationAttribute()

Properties

EntitySetPath

Gets or sets the path from the BindingParameter do the entity or entities being returned.

Syntax

public string EntitySetPath { get; set; }

Property Value

Type: string

Remarks

Bound Actions or Functions that return an entity or a collection of entities are typically returning data related to the Entity the operation is bound to. In these situations, it may be difficult for OData to return the corerct metadata, or for Restier to execute the proper Interceptors to filter the results. EntitySetPath solves this problem by specifying the navigation segments to type casts required to traverse the entity structure. It consists of a series of segments joined together with forward slashes.
  • The first segment of the entity set path MUST be the name of the binding parameter.
  • The remaining segments of the entity set path MUST represent navigation segments or type casts.

IsComposable Inherited

Inherited from Microsoft.Restier.AspNet.Model.OperationAttribute
Gets or sets a value indicating whether the function is composable. Defaults to false.

Syntax

public bool IsComposable { get; set; }

Property Value

Type: bool

Namespace Inherited

Inherited from Microsoft.Restier.AspNet.Model.OperationAttribute
Gets or sets the namespace of the operation. The default value will be same as the namespace of entity type.

Syntax

public string Namespace { get; set; }

Property Value

Type: string

OperationType Inherited

Inherited from Microsoft.Restier.AspNet.Model.OperationAttribute
Gets or sets a value indicating what type of Operation is being registered. OperationType.FunctionFunctions</see> respond to HTTP GET requests, while OperationType.ActionActions</see> respond to HTTP POST requests. Defaults to OperationType.Function.

Syntax

public Microsoft.Restier.AspNet.Model.OperationType OperationType { get; set; }

Property Value

Type: Microsoft.Restier.AspNet.Model.OperationType