IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityRelationRole Class : ReferenceStrategy Property |
'Declaration
<DataMemberAttribute()> Public Property ReferenceStrategy As EntityReferenceStrategy
'Usage
Dim instance As EntityRelationRole Dim value As EntityReferenceStrategy instance.ReferenceStrategy = value value = instance.ReferenceStrategy
[DataMember()] public EntityReferenceStrategy ReferenceStrategy {get; set;}
// Globally change the strategy for the Customer.OrderSummaries relation: var ers = new EntityReferenceStrategy(EntityReferenceLoadStrategy.Load, MergeStrategy.PreserveChanges); Customer.OrderSummariesEntityProperty.ReferenceStrategy = ers;
// Globally change the strategy for the Customer.OrderSummaries relation: var ers = new EntityReferenceStrategy(EntityReferenceLoadStrategy.Load, MergeStrategy.PreserveChanges); Customer.OrderSummariesEntityProperty.ReferenceStrategy = ers;
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