Share via


EntityContainer Class

Definition

Class for representing an entity container

public class EntityContainer : System.Data.Entity.Core.Metadata.Edm.GlobalItem
type EntityContainer = class
    inherit GlobalItem
Public Class EntityContainer
Inherits GlobalItem
Inheritance
EntityContainer

Constructors

EntityContainer(String, DataSpace)

Creates an entity container with the specified name and data space.

Properties

AssociationSets

Gets the association sets for this entity container.

BaseEntitySets

Gets a list of entity sets and association sets that this EntityContainer includes.

BuiltInTypeKind

Gets the built-in type kind for this EntityContainer.

Documentation

Gets or sets the documentation associated with this type.

(Inherited from MetadataItem)
EntitySets

Gets the entity sets for this entity container.

FunctionImports

Specifies a collection of EdmFunction elements. Each function contains the details of a stored procedure that exists in the database or equivalent CommandText that is mapped to an entity and its properties.

MetadataProperties

Gets the list of properties of the current type.

(Inherited from MetadataItem)
Name

Gets the name of this EntityContainer.

Methods

AddAnnotation(String, Object)

Adds or updates an annotation with the specified name and value.

(Inherited from MetadataItem)
AddEntitySetBase(EntitySetBase)

Adds the specified entity set to the container.

AddFunctionImport(EdmFunction)

Adds a function import to the container.

Create(String, DataSpace, IEnumerable<EntitySetBase>, IEnumerable<EdmFunction>, IEnumerable<MetadataProperty>)

The factory method for constructing the EntityContainer object.

GetEntitySetByName(String, Boolean)

Returns an EntitySet object by using the specified name for the entity set.

GetRelationshipSetByName(String, Boolean)

Returns a RelationshipSet object by using the specified name for the relationship set.

RemoveAnnotation(String)

Removes an annotation with the specified name.

(Inherited from MetadataItem)
RemoveEntitySetBase(EntitySetBase)

Removes a specific entity set from the container.

ToString()

Returns the name of this EntityContainer.

TryGetEntitySetByName(String, Boolean, EntitySet)

Returns an EntitySet object by using the specified name for the entity set.

TryGetRelationshipSetByName(String, Boolean, RelationshipSet)

Returns a RelationshipSet object by using the specified name for the relationship set.

Applies to