Freigeben über


MetadataWorkspaceExtensions.GetAllAssociations-Methode

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Ruft eine aufzählbare Auflistung aller AssociationType-Elemente in dieser ItemCollection ab

Namespace:  Microsoft.Data.Entity.Design.DatabaseGeneration
Assembly:  Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetAllAssociations ( _
    itemCollection As ItemCollection _
) As IEnumerable(Of AssociationType)
'Usage
Dim itemCollection As ItemCollection 
Dim returnValue As IEnumerable(Of AssociationType)

returnValue = itemCollection.GetAllAssociations()
public static IEnumerable<AssociationType> GetAllAssociations(
    this ItemCollection itemCollection
)
[ExtensionAttribute]
public:
static IEnumerable<AssociationType^>^ GetAllAssociations(
    ItemCollection^ itemCollection
)
static member GetAllAssociations : 
        itemCollection:ItemCollection -> IEnumerable<AssociationType> 
public static function GetAllAssociations(
    itemCollection : ItemCollection
) : IEnumerable<AssociationType>

Parameter

Rückgabewert

Typ: System.Collections.Generic.IEnumerable<AssociationType>
Die Liste der AssociationType-Elemente.

Hinweis zur Verwendung

In Visual Basic und C# können Sie diese Methode als Instanzenmethode für ein beliebiges Objekt vom Typ ItemCollection aufrufen. Bei Verwendung der Syntax für Instanzenmethoden lassen Sie den ersten Parameter aus. Weitere Informationen finden Sie unter https://msdn.microsoft.com/de-de/library/bb384936(v=vs.113) oder https://msdn.microsoft.com/de-de/library/bb383977(v=vs.113).

Siehe auch

Verweis

MetadataWorkspaceExtensions Klasse

Microsoft.Data.Entity.Design.DatabaseGeneration-Namespace