DataServiceContext.ResolveType Property

Definition

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 virtual Func<string,Type> ResolveType { get; set; }
member this.ResolveType : Func<string, Type> with get, set
Public Overridable Property ResolveType As Func(Of String, Type)

Property Value

A function delegate that identifies an override function that is used to override the default type resolution option that is used by the client library.

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 namespace-qualified type name to type within the client application. 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. Overriding type resolution enables inserting a custom type name to type mapping strategy. It does not enable one to affect how a response is materialized into the identified type.

Applies to