EntityPropertyMappingAttribute.KeepInContent Property
Gets a Boolean value that indicates whether a property value should be repeated both in the content section of the feed and in the mapped location.
Namespace: System.Data.Services.Common
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Public ReadOnly Property KeepInContent As Boolean
Get
'Usage
Dim instance As EntityPropertyMappingAttribute
Dim value As Boolean
value = instance.KeepInContent
public bool KeepInContent { get; }
public:
property bool KeepInContent {
bool get ();
}
member KeepInContent : bool
function get KeepInContent () : boolean
Property Value
Type: System.Boolean
A Boolean value that is true when the property is mapped into both locations in the feed; otherwise, false.
Remarks
When the value of KeepInContent is true, the feed is backward compatible with Open Data Protocol (OData) client applications that use protocol version 1.0. When the value of KeepInContent is false, the protocol version used by the data service must be 2.0 or later versions. For more information, see Data Service Versioning (WCF Data Services).