OrderByAttribute Class

Definition

Represents an Attribute that can be placed on a class or property correlate to OData's $orderby query option settings.

C#
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=true)]
public sealed class OrderByAttribute : Attribute
Inheritance
OrderByAttribute
Attributes

Constructors

OrderByAttribute()

Initializes a new instance of the OrderByAttribute class.

OrderByAttribute(String[])

Initializes a new instance of the OrderByAttribute class with the name of allowed $orderby properties.

Properties

Disabled

Represents whether the $orderby can be applied on those properties.

OrderByConfigurations

Gets or sets the $orderby configuration of properties.

Applies to

Product Versions
OData Web API ASP .NET 7.0, Core 7.0