IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace : EntityReferenceStrategy Class |
'Declaration
<DataContractAttribute()> Public Class EntityReferenceStrategy
'Usage
Dim instance As EntityReferenceStrategy
[DataContract()] public class EntityReferenceStrategy
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.
System.Object
IdeaBlade.EntityModel.EntityReferenceStrategy
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