Export (0) Print
Expand All

DataServiceContext Properties

The DataServiceContext type exposes the following members.

  Name Description
Public property AddAndUpdateResponsePreference Gets or sets whether the client requests that the data service return entity data in the response message to a change request.
Public property ApplyingChanges Gets a value that indicates whether the DataServiceContext is currently applying changes to tracked objects.
Public property BaseUri Gets the absolute URI identifying the root of the target data service.
Public property Configurations Gets the configurations.
Public property Credentials Gets or sets the authentication information that is used by each query created by using the DataServiceContext object.
Public property DataNamespace Obsolete. Gets or sets the XML namespace for data items, not metadata items, of an Atom payload.
Public property Entities Gets a list of all the resources currently being tracked by the DataServiceContext.
Public property Format Gets an object which allows the user to customize the format the client will use for making requests.
Public property IgnoreMissingProperties Gets or sets whether the properties read from the type must be mapped to properties on the client-side type.
Public property IgnoreResourceNotFoundException Gets or sets whether an exception is raised when a 404 error (resource not found) is returned by the data service.
Public property Links Gets the collection of all associations or links currently being tracked by the DataServiceContext object.
Public property MaxProtocolVersion Gets the maximum version of the Open Data Protocol (OData) that the client is allowed to use.
Public property MergeOption Gets or sets the synchronization option for receiving entities from a data service.
Public property ResolveEntitySet Gets or sets the delegate method that is used to resolve the entity set URI when the value cannot be determined from an edit-link or self-link URI.
Public property ResolveName Gets or sets a function to override the default type resolution strategy used by the client library when you send entities to a data service.
Public property ResolveType Gets or sets a function that is used to override the default type resolution option that is used by the client library when receiving entities from a data service.
Public property SaveChangesDefaultOptions Gets or sets the SaveChangesOptions values that are used by the SaveChanges method.
Public property Timeout Gets or sets the time-out option (in seconds) that is used for the underlying HTTP request to the data service.
Public property TypeScheme Obsolete. Gets or sets the URI used to indicate what type scheme is used by the service.
Public property UrlConventions Gets or sets the URL conventions the client should use.
Public property UsePostTunneling Gets or sets a Boolean value that indicates whether to use post tunneling.
Top
Show:
© 2014 Microsoft