DomainContext.AddReference Method

WCF RIA Services

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Adds a reference to an external DomainContext.

Namespace:  System.ServiceModel.DomainServices.Client
Assembly:  System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)

public void AddReference(
	Type entityType,
	DomainContext domainContext
)

Parameters

entityType
Type: System.Type
The entity type to lookup in the domainContext.
domainContext
Type: System.ServiceModel.DomainServices.Client.DomainContext
A DomainContext to register as an external reference.

Once a reference is established, referenced DomainContext instances will be consulted when resolving the EntitySet for an Entity type.

Show: