特定の ModelRelationshipClass を含むこの TSqlObject を参照している各オブジェクトに対して、リレーションシップ データを定義する ModelRelationshipInstance を返します。 これには、(FromObject フィールドによって定義された) 参照元オブジェクト、およびこのリレーションシップに固有のすべてのプロパティが含まれます。 Default スコープ内のオブジェクトのみが返されます。
名前空間: Microsoft.SqlServer.Dac.Model
アセンブリ: Microsoft.SqlServer.Dac.Extensions (Microsoft.SqlServer.Dac.Extensions.dll)
構文
'宣言
Public Function GetReferencingRelationshipInstances ( _
relationshipType As ModelRelationshipClass _
) As IEnumerable(Of ModelRelationshipInstance)
'使用
Dim instance As TSqlObject
Dim relationshipType As ModelRelationshipClass
Dim returnValue As IEnumerable(Of ModelRelationshipInstance)
returnValue = instance.GetReferencingRelationshipInstances(relationshipType)
public IEnumerable<ModelRelationshipInstance> GetReferencingRelationshipInstances(
ModelRelationshipClass relationshipType
)
public:
IEnumerable<ModelRelationshipInstance^>^ GetReferencingRelationshipInstances(
ModelRelationshipClass^ relationshipType
)
member GetReferencingRelationshipInstances :
relationshipType:ModelRelationshipClass -> IEnumerable<ModelRelationshipInstance>
public function GetReferencingRelationshipInstances(
relationshipType : ModelRelationshipClass
) : IEnumerable<ModelRelationshipInstance>
パラメーター
- relationshipType
型: Microsoft.SqlServer.Dac.Model.ModelRelationshipClass
クエリの対象となるリレーションシップ クラスを定義する ModelRelationshipClass
戻り値
型: System.Collections.Generic.IEnumerable<ModelRelationshipInstance>
この TSqlObject とそれを参照しているオブジェクト間のリレーションシップを定義する ModelRelationshipInstance