EntityKey.GetEntitySet(MetadataWorkspace) Method

Definition

Gets the entity set for this entity key from the given metadata workspace.

public System.Data.Entity.Core.Metadata.Edm.EntitySet GetEntitySet (System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace metadataWorkspace);
member this.GetEntitySet : System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace -> System.Data.Entity.Core.Metadata.Edm.EntitySet

Parameters

metadataWorkspace
MetadataWorkspace

The metadata workspace that contains the entity.

Returns

The EntitySet for the entity key.

Exceptions

The entity set could not be located in the specified metadata workspace.

Applies to