DataServiceContext.ResolveName Property
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.
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 virtual Func<Type,string> ResolveName { get; set; }
member this.ResolveName : Func<Type, string> with get, set
Public Overridable Property ResolveName As Func(Of Type, String)
Property Value
Returns a string that contains the name of the DataServiceContext.
Remarks
Enables one to override the default type resolution strategy used by the client library. Set this property to a delegate which identifies a function that resolves a type within the client application to a namespace-qualified type name. This enables the client to perform custom mapping between the type name provided in a response from the server and a type on the client. This method enables one to override the entity name that is serialized to the target representation (ATOM,JSON, etc) for the specified type.