MetadataWorkspace.GetEntityContainer Method

Definition

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

Overloads

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.

GetEntityContainer(String, Boolean, DataSpace)

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

C#
public System.Data.Metadata.Edm.EntityContainer GetEntityContainer(string name, bool ignoreCase, System.Data.Metadata.Edm.DataSpace dataSpace);

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.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetEntityContainer(String, DataSpace)

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

C#
public System.Data.Metadata.Edm.EntityContainer GetEntityContainer(string name, System.Data.Metadata.Edm.DataSpace dataSpace);

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.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1