Share via


MetadataWorkspaceExtensions.GetContainingTypes Method

Returns a collection of all EntityType objects within the specified EntitySet and 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 GetContainingTypes ( _
    set As EntitySet, _
    itemCollection As ItemCollection _
) As IEnumerable(Of EntityType)
'Usage
Dim set As EntitySet
Dim itemCollection As ItemCollection
Dim returnValue As IEnumerable(Of EntityType)

returnValue = set.GetContainingTypes(itemCollection)
public static IEnumerable<EntityType> GetContainingTypes(
    this EntitySet set,
    ItemCollection itemCollection
)
[ExtensionAttribute]
public:
static IEnumerable<EntityType^>^ GetContainingTypes(
    EntitySet^ set, 
    ItemCollection^ itemCollection
)
public static function GetContainingTypes(
    set : EntitySet, 
    itemCollection : ItemCollection
) : IEnumerable<EntityType>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<EntityType>
A collection of all EntityType objects within the specified EntitySet and ItemCollection.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type EntitySet. 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 GetContainingTypes() method is used by the Generate Database Wizard when generating a database from a conceptual model.

Permissions

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)

Windows Workflow Foundation