Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DataServiceBehavior Class

Use this class to add settings that define service behavior.

System.Object
  System.Data.Services.DataServiceBehavior

Namespace:  System.Data.Services
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)
public sealed class DataServiceBehavior

The DataServiceBehavior type exposes the following members.

  NameDescription
Public propertyAcceptAnyAllRequestsGets or sets whether the server will accept requests with filters that contain all or any expressions.
Public propertyAcceptCountRequestsGets or sets whether requests with the $count path segment or the $inlinecount query options are accepted.
Public propertyAcceptProjectionRequestsGets or sets whether projection requests should be accepted.
Public propertyAcceptReplaceFunctionInQueryAllow replace functions in the request url.
Public propertyAcceptSpatialLiteralsInQueryGets or sets whether spatial literal values are supported in the URI.
Public propertyAlwaysUseDefaultXmlNamespaceForRootElementIf set to true, then the root element of each payload will be written in the default (non-prefix-qualified) namespace of the document. All other elements in the same namespace will also not have prefixes.
Public propertyIncludeAssociationLinksInResponseGet or sets whether relationship links are included in responses from the data service.
Public propertyInvokeInterceptorsOnLinkDeleteGets or sets whether to invoke change interceptors when a link is deleted.
Public propertyMaxProtocolVersionGets or sets the maximum protocol version that is supported by the response sent by the data service.
Public propertyUrlConventionsThe conventions to use when generating and parsing URLs.
Public propertyUseMetadataKeyOrderForBuiltInProvidersGet or sets whether to use the order of key properties as defined in the metadata of an Entity Framework or reflection provider when constructing an implicit OrderBy query.
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.