用于获取关系的两端。
命名空间:  Microsoft.Data.Schema.SchemaModel
程序集:  Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Public Interface IModelRelationship _
    Inherits IModelEntity
public interface IModelRelationship : IModelEntity
public interface class IModelRelationship : IModelEntity
type IModelRelationship =  
    interface
        interface IModelEntity
    end
public interface IModelRelationship extends IModelEntity
IModelRelationship 类型公开以下成员。
属性
| 名称 | 说明 | |
|---|---|---|
| .gif) | FromElement | 获取相关元素。 | 
| .gif) | Model | 获取模型引用。 (继承自 IModelEntity。) | 
| .gif) | RelationshipClass | 获取元数据类。 | 
页首
方法
| 名称 | 说明 | |
|---|---|---|
| .gif) | GetReferencedElements | 返回相关元素。 | 
| .gif) | GetReferencedRelationshipEntries | 返回相关的关系项。 | 
页首
备注
如果功能不知道显式模型接口,则此功能应使用此接口。