This documentation is archived and is not being maintained.

ItemCollection.GetEntityContainer Method (String, Boolean)

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

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

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.Metadata.Edm.EntityContainer
If there is no entity container, this method returns null; otherwise, it returns the first entity container.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1
Show: