Platform Core .NET Assemblies API
ResolveResource Method
See Also  Send Feedback
Terrasoft.Core.Entities.Services Namespace > UpdateProvider Class : ResolveResource Method
resource

Glossary Item Box

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

Syntax

 
C#
 
 

Parameters

resource

Remarks

The contract must return ((EntityLazyProxy)resource).Entity.Value, but it is probably to return a proxy, which would be premature not to make a query in the database. In this case, all parts of the code that use the returned object must be aware of the EntityLazyProxy. Used in: EntityDataServiceQueryProvider.GetResourceType () Called after the SaveChanges call to serialize the resource for the POST methods

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.