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.

Namespace:   System.Data.Entity.Core
Assembly:  EntityFramework (in EntityFramework.dll)

public EntitySet GetEntitySet(
	MetadataWorkspace metadataWorkspace
)

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.EntitySet

The entity set from the given workspace for this entity key.

Exception Condition
ArgumentException

The entity set could not be located in the workspace.