MetadataWorkspaceExtensions.GetAllAssociationSets Method
Returns an enumerable collection of all AssociationSet objects in the specified 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
)
public static function GetAllAssociationSets(
itemCollection : ItemCollection
) : IEnumerable<AssociationSet>
Parameters
- itemCollection
Type: System.Data.Metadata.Edm.ItemCollection
An in-memory collection of metadata.
Return Value
Type: System.Collections.Generic.IEnumerable<AssociationSet>
An enumerable collection of all AssociationSet objects in the specified ItemCollection.
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 Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
The GetAllAssociationSets() method is used by the Generate Database Wizard when generating a database from a conceptual model.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
MetadataWorkspaceExtensions Class
MetadataWorkspaceExtensions Members
Microsoft.Data.Entity.Design.DatabaseGeneration Namespace
Other Resources
How to: Generate a Database from a Conceptual Model (Entity Data Model Tools)