MetadataWorkspace.GetEntityContainer Method

Definition

Overloads

GetEntityContainer(String, DataSpace)

Returns an EntityContainer object by using the specified entity container name and the data model.

GetEntityContainer(String, Boolean, DataSpace)

Returns an EntityContainer object by using the specified entity container name and the data model.

GetEntityContainer(String, DataSpace)

Returns an EntityContainer object by using the specified entity container name and the data model.

public virtual System.Data.Entity.Core.Metadata.Edm.EntityContainer GetEntityContainer (string name, System.Data.Entity.Core.Metadata.Edm.DataSpace dataSpace);
abstract member GetEntityContainer : string * System.Data.Entity.Core.Metadata.Edm.DataSpace -> System.Data.Entity.Core.Metadata.Edm.EntityContainer
override this.GetEntityContainer : string * System.Data.Entity.Core.Metadata.Edm.DataSpace -> System.Data.Entity.Core.Metadata.Edm.EntityContainer

Parameters

name
String

The name of the entity container.

dataSpace
DataSpace

The conceptual model on which the entity container is searched.

Returns

If there is no entity container, this method returns null; otherwise, it returns the first entity container.

Exceptions

Thrown if the space is not a valid space. Valid space is either C, O, CS or OCSpace

Applies to

GetEntityContainer(String, Boolean, DataSpace)

Returns an EntityContainer object by using the specified entity container name and the data model.

public virtual System.Data.Entity.Core.Metadata.Edm.EntityContainer GetEntityContainer (string name, bool ignoreCase, System.Data.Entity.Core.Metadata.Edm.DataSpace dataSpace);
abstract member GetEntityContainer : string * bool * System.Data.Entity.Core.Metadata.Edm.DataSpace -> System.Data.Entity.Core.Metadata.Edm.EntityContainer
override this.GetEntityContainer : string * bool * System.Data.Entity.Core.Metadata.Edm.DataSpace -> System.Data.Entity.Core.Metadata.Edm.EntityContainer

Parameters

name
String

The name of the entity container.

ignoreCase
Boolean

true to perform the case-insensitive search; otherwise, false.

dataSpace
DataSpace

The conceptual model on which the entity container is searched.

Returns

If there is no entity container, this method returns null; otherwise, it returns the first entity container.

Exceptions

Thrown if the space is not a valid space. Valid space is either C, O, CS or OCSpace

Applies to