Compartilhar via


EntityContainer.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 EntitySet.

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

Syntax

'Declaration
Public Sub AddReference ( _
    entitySet As EntitySet _
)
'Usage
Dim instance As EntityContainer
Dim entitySet As EntitySet

instance.AddReference(entitySet)
public void AddReference(
    EntitySet entitySet
)
public:
void AddReference(
    EntitySet^ entitySet
)
member AddReference : 
        entitySet:EntitySet -> unit 
public function AddReference(
    entitySet : EntitySet
)

Parameters

See Also

Reference

EntityContainer Class

System.ServiceModel.DomainServices.Client Namespace