MetadataWorkspaceExtensions.GetEntityContainerName Method (ItemCollection)

 

Retrieves the 'Name' attribute of the <EntityContainer/> element in this ItemCollection.

Namespace:   Microsoft.Data.Entity.Design.DatabaseGeneration
Assembly:  Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)

public static string GetEntityContainerName(
	this ItemCollection itemCollection
)

Parameters

itemCollection
Type: System.Data.Entity.Core.Metadata.Edm.ItemCollection

The ItemCollection.

Return Value

Type: System.String

The name of the entity container.

Exception Condition
InvalidDataException

if an EntityContainer element cannot be found