MetadataWorkspaceExtensions.GetAllAssociationSets Method

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Retrieves an enumerable collection of all AssociationSet elements in this ItemCollection

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 GetAllAssociationSets ( _
    itemCollection As ItemCollection _
) As IEnumerable(Of AssociationSet)
'Usage
Dim itemCollection As ItemCollection 
Dim returnValue As IEnumerable(Of AssociationSet)

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

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<AssociationSet>
The list of AssociationSet elements.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ItemCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.113) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.113).

See Also

Reference

MetadataWorkspaceExtensions Class

Microsoft.Data.Entity.Design.DatabaseGeneration Namespace