DevForce Help Reference
EntityReferenceStrategy Class
Members 


Determines when related entities are loaded and how they are merged into the EntityManager's cache.
Syntax
'Declaration
 
<DataContractAttribute()>
Public Class EntityReferenceStrategy 
'Usage
 
Dim instance As EntityReferenceStrategy
[DataContract()]
public class EntityReferenceStrategy 
Remarks
An EntityReferenceStrategy is a combination of an EntityReferenceLoadStrategy, a MergeStrategy, and whether the load is synchronous or not.

The EntityReferenceStrategy is used when working with navigation properties. The Default strategy will lazily load the navigation property upon first access and preserve existing changes in cache. Other strategies allow you to turn off load altogether, or load the related entities every time the navigation property is accessed.

In mobile environments and Silverlight, the load is always performed asynchronously. In other environments you may choose to load related entities either synchronously or asynchronously.

The EntityReferenceStrategy may be set for an individual navigation property via its % NavigationEntityProperty.ReferenceyStrategy% or for the EntityManager as a whole with the EntityManager.DefaultEntityReferenceStrategy.

Inheritance Hierarchy

System.Object
   IdeaBlade.EntityModel.EntityReferenceStrategy

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

Reference

EntityReferenceStrategy Members
IdeaBlade.EntityModel Namespace

Send Feedback