This documentation is archived and is not being maintained.

TSqlObject.GetReferenced Method

 

Updated: April 20, 2017

Gets all referenced objects.

Namespace:   Microsoft.SqlServer.Dac.Model
Assembly:  Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)

NameDescription
System_CAPS_pubmethodGetReferenced()

Gets all referenced objects within the Default scope.

System_CAPS_pubmethodGetReferenced(DacQueryScopes)

Gets all referenced objects within a given DacQueryScopes scope.

System_CAPS_pubmethodGetReferenced(ModelRelationshipClass)

Gets referenced objects for a given ModelRelationshipClass, where objects are within the Default scope.

System_CAPS_pubmethodGetReferenced(ModelRelationshipClass, DacQueryScopes)

Gets referenced objects for a given ModelRelationshipClass, where objects are within a given DacQueryScopes scope.

Return to top

TSqlObject.GetReferenced Method ()

Gets all referenced objects within the Default scope.

public IEnumerable<TSqlObject> GetReferenced()

Return Value

Type: System.Collections.Generic.IEnumerable<TSqlObject>

The TSqlObjects referenced by this object.

References to elements not in the TSqlModel are not returned. Use GetReferencedRelationshipInstances for a listing of all possible referenced elements.

Return to top

TSqlObject.GetReferenced Method (DacQueryScopes)

Gets all referenced objects within a given DacQueryScopes scope.

public IEnumerable<TSqlObject> GetReferenced(
	DacQueryScopes queryScopes
)

Parameters

queryScopes
Type: Microsoft.SqlServer.Dac.Model.DacQueryScopes

The DacQueryScopes defining the scope objects must exist in.

Return Value

Type: System.Collections.Generic.IEnumerable<TSqlObject>

The TSqlObjects referenced by this object.

References to elements not in the TSqlModel are not returned. Use GetReferencedRelationshipInstances for a listing of all possible referenced elements.

Return to top

TSqlObject.GetReferenced Method (ModelRelationshipClass)

Gets referenced objects for a given ModelRelationshipClass, where objects are within the Default scope.

public IEnumerable<TSqlObject> GetReferenced(
	ModelRelationshipClass relationshipType
)

Parameters

relationshipType
Type: Microsoft.SqlServer.Dac.Model.ModelRelationshipClass

The ModelRelationshipClass defining the relationship class to query for.

Return Value

Type: System.Collections.Generic.IEnumerable<TSqlObject>

The TSqlObjects referenced by this object for a given ModelRelationshipClass.

References to elements not in the TSqlModel are not returned. Use GetReferencedRelationshipInstances for a listing of all possible referenced elements.

Return to top

TSqlObject.GetReferenced Method (ModelRelationshipClass, DacQueryScopes)

Gets referenced objects for a given ModelRelationshipClass, where objects are within a given DacQueryScopes scope.

public IEnumerable<TSqlObject> GetReferenced(
	ModelRelationshipClass relationshipType,
	DacQueryScopes queryScopes
)

Parameters

relationshipType
Type: Microsoft.SqlServer.Dac.Model.ModelRelationshipClass

The ModelRelationshipClass defining the relationship to query for.

queryScopes
Type: Microsoft.SqlServer.Dac.Model.DacQueryScopes

The DacQueryScopes defining the scope objects must exist in.

Return Value

Type: System.Collections.Generic.IEnumerable<TSqlObject>

The TSqlObjects referenced by this object for a given ModelRelationshipClass.

References to elements not in the TSqlModel are not returned. Use GetReferencedRelationshipInstances for a listing of all possible referenced elements.

Return to top
Show: