MetadataWorkspaceExtensions.GetContainingTypes Method (EntitySet, ItemCollection)

 

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)

public static IEnumerable<EntityType> GetContainingTypes(
	this EntitySet set,
	ItemCollection itemCollection
)

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.