Del via


ODataSimplifiedOptions.EnableWritingKeyAsSegment Property

Definition

Gets or sets a value that indicates whether the writer 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 ODataMessageWriter and does not modify URLs explicitly provided by the user.

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

Property Value

Applies to