IModelMultiRelationship<TFrom, TTo> Interface
Used to add multiple relationships.
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
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 does not support generic types or methods.
Type Parameters
- TFrom
- TTo
The IModelMultiRelationship<TFrom, TTo> type exposes the following members.
Properties
Name | Description | |
---|---|---|
Count | Gets the number of elements contained in the ICollection<T>. (Inherited from ICollection<TTo>.) | |
FromElement | Gets the relating element. (Inherited from IModelRelationship.) | |
FromElement | Gets the relating element. (Inherited from IModelRelationship<TFrom, TTo>.) | |
IsReadOnly | Gets a value indicating whether the ICollection<T> is read-only. (Inherited from ICollection<TTo>.) | |
Item | Gets or sets the element at the specified index. (Inherited from IList<TTo>.) | |
Model | Gets the model reference. (Inherited from IModelEntity.) | |
RelationshipClass | Gets the metadata class. (Inherited from IModelRelationship.) |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds an item to the ICollection<T>. (Inherited from ICollection<TTo>.) | |
AddElement | Adds a relationship entry (based on an element) to the end of the relationship. | |
AddRelationshipEntry | Adds an empty relationship entry to the end of the relationship. | |
Clear | Removes all items from the ICollection<T>. (Inherited from ICollection<TTo>.) | |
Contains | Determines whether the ICollection<T> contains a specific value. (Inherited from ICollection<TTo>.) | |
CopyTo | Copies the elements of the ICollection<T> to an Array, starting at a particular Array index. (Inherited from ICollection<TTo>.) | |
GetEnumerator() | Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<TTo>.) | |
GetEnumerator() | Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.) | |
GetReferencedElements() | Returns the related elements. (Inherited from IModelRelationship.) | |
GetReferencedElements() | Gets a list of the related elements. (Inherited from IModelRelationship<TFrom, TTo>.) | |
GetReferencedRelationshipEntries | Returns the related relationship entries. (Inherited from IModelRelationship.) | |
GetRelationshipEntry | Returns a relationship entry at the specified index. | |
IndexOf(T) | Determines the index of a specific item in the IList<T>. (Inherited from IList<TTo>.) | |
IndexOf(TTo, Int32) | Reports the index of the first occurrence of the relationship entry based on a specified element. | |
Insert | Inserts an item to the IList<T> at the specified index. (Inherited from IList<TTo>.) | |
InsertElement | Inserts a relationship entry (based on an element) at the specified index. | |
InsertRelationshipEntry | Inserts an empty relationship entry at the specified index. | |
Remove | Removes the first occurrence of a specific object from the ICollection<T>. (Inherited from ICollection<TTo>.) | |
RemoveAt | Removes the IList<T> item at the specified index. (Inherited from IList<TTo>.) |
Top
Remarks
This is the base type interface, which should be used by features that do not know about explicit model interfaces.