Share via


DomainContext.AddReference Method

[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)

Syntax

'Declaration
Public Sub AddReference ( _
    entityType As Type, _
    domainContext As DomainContext _
)
'Usage
Dim instance As DomainContext
Dim entityType As Type
Dim domainContext As DomainContext

instance.AddReference(entityType, domainContext)
public void AddReference(
    Type entityType,
    DomainContext domainContext
)
public:
void AddReference(
    Type^ entityType, 
    DomainContext^ domainContext
)
member AddReference : 
        entityType:Type * 
        domainContext:DomainContext -> unit 
public function AddReference(
    entityType : Type, 
    domainContext : DomainContext
)

Parameters

  • entityType
    Type: System.Type
    The entity type to lookup in the domainContext.

Remarks

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

See Also

Reference

DomainContext Class

System.ServiceModel.DomainServices.Client Namespace