Share via


EnableQueryAttribute.AllowedOrderByProperties Property

Definition

Gets or sets a string with comma separated list of property names. The queryable result can only be ordered by those properties defined in this list.

Note, by default this string is null, which means it can be ordered by any property.

For example, setting this value to null or empty string means that we allow ordering the queryable result by any properties. Setting this value to "Name" means we only allow queryable result to be ordered by Name property.

public string AllowedOrderByProperties { get; set; }
member this.AllowedOrderByProperties : string with get, set
Public Property AllowedOrderByProperties As String

Property Value

Applies to