IModelRelationship<TFrom, TTo> Interface

Used to obtain both sides of a relationship.

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Interface IModelRelationship(Of TFrom As {Class, IModelElement}, TTo As {Class, IModelElement}) _
    Inherits IModelRelationship, IModelEntity
public interface IModelRelationship<TFrom, TTo> : IModelRelationship, 
    IModelEntity
where TFrom : class, IModelElement
where TTo : class, IModelElement
generic<typename TFrom, typename TTo>
where TFrom : ref class, IModelElement
where TTo : ref class, IModelElement
public interface class IModelRelationship : IModelRelationship, 
    IModelEntity
type IModelRelationship<'TFrom, 'TTo when 'TFrom : not struct and IModelElement when 'TTo : not struct and IModelElement> =  
    interface
        interface IModelRelationship
        interface IModelEntity
    end
JScript does not support generic types or methods.

Type Parameters

  • TFrom
  • TTo

The IModelRelationship<TFrom, TTo> type exposes the following members.

Properties

  Name Description
Public property FromElement Gets the relating element. (Inherited from IModelRelationship.)
Public property FromElement Gets the relating element.
Public property Model Gets the model reference. (Inherited from IModelEntity.)
Public property RelationshipClass Gets the metadata class. (Inherited from IModelRelationship.)

Top

Methods

  Name Description
Public method GetReferencedElements() Returns the related elements. (Inherited from IModelRelationship.)
Public method GetReferencedElements() Gets a list of the related elements.
Public method GetReferencedRelationshipEntries Returns the related relationship entries. (Inherited from IModelRelationship.)

Top

See Also

Reference

Microsoft.Data.Schema.SchemaModel Namespace