MetadataWorkspaceExtensions.GetEntityContainerName Method (ItemCollection)
Retrieves the 'Name' attribute of the <EntityContainer/> element in this ItemCollection.
Assembly: Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)
Parameters
- itemCollection
-
Type:
System.Data.Entity.Core.Metadata.Edm.ItemCollection
The ItemCollection.
Exception | Condition |
---|---|
InvalidDataException | if an EntityContainer element cannot be found |