QueryExpression.AddLink Method

Definition

Overloads

AddLink(String, String, String)

Adds the specified link to the query expression setting the LinkToEntityName, LinkFromAttributeName and LinkToAttributeName properties.

AddLink(String, String, String, JoinOperator)

Adds the specified link to the query expression setting the LinkToEntityName, LinkFromAttributeName, LinkToAttributeName, and JoinOperator properties.

AddLink(String, String, String)

Adds the specified link to the query expression setting the LinkToEntityName, LinkFromAttributeName and LinkToAttributeName properties.

public:
 Microsoft::Xrm::Sdk::Query::LinkEntity ^ AddLink(System::String ^ linkToEntityName, System::String ^ linkFromAttributeName, System::String ^ linkToAttributeName);
public Microsoft.Xrm.Sdk.Query.LinkEntity AddLink (string linkToEntityName, string linkFromAttributeName, string linkToAttributeName);
member this.AddLink : string * string * string -> Microsoft.Xrm.Sdk.Query.LinkEntity
Public Function AddLink (linkToEntityName As String, linkFromAttributeName As String, linkToAttributeName As String) As LinkEntity

Parameters

linkToEntityName
String

The logical name of table to link from.

linkFromAttributeName
String

The logical name of the column to link from.

linkToAttributeName
String

The logical name of the column to link to.

Returns

The LinkEntity instance created and added to the query expression.

Applies to

AddLink(String, String, String, JoinOperator)

Adds the specified link to the query expression setting the LinkToEntityName, LinkFromAttributeName, LinkToAttributeName, and JoinOperator properties.

public:
 Microsoft::Xrm::Sdk::Query::LinkEntity ^ AddLink(System::String ^ linkToEntityName, System::String ^ linkFromAttributeName, System::String ^ linkToAttributeName, Microsoft::Xrm::Sdk::Query::JoinOperator joinOperator);
public Microsoft.Xrm.Sdk.Query.LinkEntity AddLink (string linkToEntityName, string linkFromAttributeName, string linkToAttributeName, Microsoft.Xrm.Sdk.Query.JoinOperator joinOperator);
member this.AddLink : string * string * string * Microsoft.Xrm.Sdk.Query.JoinOperator -> Microsoft.Xrm.Sdk.Query.LinkEntity
Public Function AddLink (linkToEntityName As String, linkFromAttributeName As String, linkToAttributeName As String, joinOperator As JoinOperator) As LinkEntity

Parameters

linkToEntityName
String

The logical name of table to link from.

linkFromAttributeName
String

The logical name of the column to link from.

linkToAttributeName
String

The logical name of the column to link to.

joinOperator
JoinOperator

The join operator.

Returns

The LinkEntity instance created and added to the query expression.

Applies to