Export (0) Print
Expand All

IUpdatable.ResolveResource Method

Returns the instance of the resource represented by the specified resource object.

Namespace:  System.Data.Services
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Object ResolveResource(
	Object resource
)

Parameters

resource
Type: System.Object
The object representing the resource whose instance needs to be retrieved.

Return Value

Type: System.Object
Returns the instance of the resource represented by the specified resource object.

This method is called to resolve the opaque object returned by the CreateResource or GetResource API into the CLR instance. This is normally called after SaveChanges to serialize the resource for POST methods.

This method is also called if there are update interceptors invoked with the common language runtime (CLR) resource instances. It can be used if the provider supports optimistic concurrency and the resource type has concurrency tokens defined by ETagAttribute in a CLR-based provider.

Show:
© 2014 Microsoft