Share via


ODataSimplifiedOptions.EnableReadingKeyAsSegment Property

Definition

Gets or sets a value that indicates whether the reader should put key values in their own URI segment when automatically building URIs. If this value is false, automatically-generated URLs will take the form "../EntitySet('KeyValue')/..". If this value is true, automatically-generated URLs will take the form "../EntitySet/KeyValue/..". This setting only applies to URLs that are automatically generated by the ODataMessageReader and the URLs explicitly provided by the server won't be modified.

public bool EnableReadingKeyAsSegment { get; set; }
member this.EnableReadingKeyAsSegment : bool with get, set
Public Property EnableReadingKeyAsSegment As Boolean

Property Value

Applies to