EnableQueryAttribute.AllowedOrderByProperties Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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