IModelRelationship<TFrom, TTo> 接口
用于获取关系的两端。
命名空间: Microsoft.Data.Schema.SchemaModel
程序集: Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
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 不支持泛型类型或方法。
类型参数
- TFrom
- TTo
IModelRelationship<TFrom, TTo> 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
FromElement | 获取相关元素。 (继承自 IModelRelationship。) | |
FromElement | 获取相关元素。 | |
Model | 获取模型引用。 (继承自 IModelEntity。) | |
RelationshipClass | 获取元数据类。 (继承自 IModelRelationship。) |
页首
方法
名称 | 说明 | |
---|---|---|
GetReferencedElements() | 返回相关元素。 (继承自 IModelRelationship。) | |
GetReferencedElements() | 获取被相关元素的列表。 | |
GetReferencedRelationshipEntries | 返回相关的关系项。 (继承自 IModelRelationship。) |
页首