MetadataWorkspaceExtensions.GetContainingTypes 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.]
Get all EntityTypes within this EntitySet
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
)
static member GetContainingTypes :
set:EntitySet *
itemCollection:ItemCollection -> IEnumerable<EntityType>
public static function GetContainingTypes(
set : EntitySet,
itemCollection : ItemCollection
) : IEnumerable<EntityType>
Parameters
- set
Type: System.Data.Entity.Core.Metadata.Edm.EntitySet
The EntitySet
- itemCollection
Type: System.Data.Entity.Core.Metadata.Edm.ItemCollection
The ItemCollection containing the EntitySet.
Return Value
Type: System.Collections.Generic.IEnumerable<EntityType>
A list of EntityTypes.
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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.113) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.113).