ItemCollection.GetEntityContainer Method

 

Gets an entity container.

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

NameDescription
System_CAPS_pubmethodGetEntityContainer(String)

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

System_CAPS_pubmethodGetEntityContainer(String, Boolean)

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


ItemCollection.GetEntityContainer Method (String)

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

public EntityContainer GetEntityContainer(
	string name
)

Parameters

name
Type: System.String

The name of the entity container.

Return Value

Type: System.Data.Entity.Core.Metadata.Edm.EntityContainer

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


ItemCollection.GetEntityContainer Method (String, Boolean)

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

public EntityContainer GetEntityContainer(
	string name,
	bool ignoreCase
)

Parameters

name
Type: System.String

The name of the entity container.

ignoreCase
Type: System.Boolean

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

Return Value

Type: System.Data.Entity.Core.Metadata.Edm.EntityContainer

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