TableContractResolver Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This class implements an Newtonsoft.Json.Serialization.IContractResolver to provide support for deserialization of the System.Web.Http.OData.Delta`1 type using JSON.NET.
public class TableContractResolver : Microsoft.Azure.Mobile.Server.Serialization.ServiceContractResolver
type TableContractResolver = class
inherit ServiceContractResolver
Public Class TableContractResolver
Inherits ServiceContractResolver
- Inheritance
Remarks
The contract created for System.Web.Http.OData.Delta`1 will deserialize properties using the types and property names of the underlying type. The Newtonsoft.Json.Serialization.JsonProperty instances are copied from the underlying type's Newtonsoft.Json.Serialization.JsonContract and customized to work with a dynamic object. In particular, a custom Newtonsoft.Json.Serialization.IValueProvider is used to get and set values using the contract of DynamicObject, which System.Web.Http.OData.Delta`1 inherits from.
Constructors
TableContractResolver(MediaTypeFormatter) |
Initializes a new instance of the TableContractResolver class with a given |
Methods
CreateContract(Type) |
Gets the contract for a given type. The type System.Web.Http.OData.Delta`1 is treated specially whereas all other types are handled by the base class. |
GetDeltaContract(Type) |
Creates a contract for a type of System.Web.Http.OData.Delta`1. |
ResolvePropertyName(String) | (Inherited from ServiceContractResolver) |
Applies to
Azure SDK for .NET