IModelMultiRelationship<TFrom, TTo> 接口
用于添加多个关系。
命名空间: Microsoft.Data.Schema.SchemaModel
程序集: Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Public Interface IModelMultiRelationship(Of TFrom As {Class, IModelElement}, TTo As {Class, IModelElement}) _
Inherits IModelRelationship(Of TFrom, TTo), IModelRelationship, IModelEntity, _
IList(Of TTo), ICollection(Of TTo), IEnumerable(Of TTo), _
IEnumerable
public interface IModelMultiRelationship<TFrom, TTo> : IModelRelationship<TFrom, TTo>,
IModelRelationship, IModelEntity, IList<TTo>, ICollection<TTo>, IEnumerable<TTo>,
IEnumerable
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 IModelMultiRelationship : IModelRelationship<TFrom, TTo>,
IModelRelationship, IModelEntity, IList<TTo>, ICollection<TTo>, IEnumerable<TTo>,
IEnumerable
type IModelMultiRelationship<'TFrom, 'TTo when 'TFrom : not struct and IModelElement when 'TTo : not struct and IModelElement> =
interface
interface IModelRelationship<'TFrom, 'TTo>
interface IModelRelationship
interface IModelEntity
interface IList<'TTo>
interface ICollection<'TTo>
interface IEnumerable<'TTo>
interface IEnumerable
end
JScript 不支持泛型类型或方法。
类型参数
- TFrom
- TTo
IModelMultiRelationship<TFrom, TTo> 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
Count | 获取 ICollection<T> 中包含的元素数。 (继承自 ICollection<TTo>。) | |
FromElement | 获取相关元素。 (继承自 IModelRelationship。) | |
FromElement | 获取相关元素。 (继承自 IModelRelationship<TFrom, TTo>。) | |
IsReadOnly | 获取一个值,该值指示 ICollection<T> 是否为只读。 (继承自 ICollection<TTo>。) | |
Item | 获取或设置指定索引处的元素。 (继承自 IList<TTo>。) | |
Model | 获取模型引用。 (继承自 IModelEntity。) | |
RelationshipClass | 获取元数据类。 (继承自 IModelRelationship。) |
页首
方法
页首
备注
这是基类型接口。如果功能不知道显式模型接口,则此功能应使用此接口。