Skip to main content

Definition

Assembly: Microsoft.Restier.AspNetCore.dll Namespace: Microsoft.Restier.AspNetCore.Model Inheritance: System.Attribute

Syntax

Microsoft.Restier.AspNetCore.Model.OperationAttribute

Summary

An abstract class containing the common information for registering Actions and Functions to an OData schema.

Remarks

This was turned into an Abstract class in favor or more specific functionality. The old design created situations where you could not achive the behavior you desired, due to unsupported parameter combinations. Please use [BoundOperation] or [UnboundOperation] instead.

Properties

IsComposable

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

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

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.AspNetCore.Model.OperationType OperationType { get; set; }

Property Value

Type: Microsoft.Restier.AspNetCore.Model.OperationType