EntityKey.GetEntitySet Method (MetadataWorkspace)
Gets the entity set for this entity key from the given metadata workspace, by entity container name and entity set name.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- metadataWorkspace
-
Type:
System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace
Workspace in which to look up the entity set.
Return Value
Type: System.Data.Entity.Core.Metadata.Edm.EntitySetThe entity set from the given workspace for this entity key.
Exception | Condition |
---|---|
ArgumentException | The entity set could not be located in the workspace. |