Share via


MetadataWorkspace.TryGetEntityContainer Method

Definition

Overloads

TryGetEntityContainer(String, DataSpace, EntityContainer)

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

TryGetEntityContainer(String, Boolean, DataSpace, EntityContainer)

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

TryGetEntityContainer(String, DataSpace, EntityContainer)

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

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

Parameters

name
String

The name of the entity container.

dataSpace
DataSpace

The conceptual model on which the entity container is searched.

entityContainer
EntityContainer

When this method returns, contains an EntityContainer object. If there is no entity container, this output parameter contains null; otherwise, it returns the first entity container. This parameter is passed uninitialized.

Returns

true if there is an entity container that matches the search criteria; otherwise, false.

Applies to

TryGetEntityContainer(String, Boolean, DataSpace, EntityContainer)

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

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

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.

entityContainer
EntityContainer

When this method returns, contains an EntityContainer object. If there is no entity container, this output parameter contains null; otherwise, it returns the first entity container. This parameter is passed uninitialized.

Returns

true if there is an entity container that matches the search criteria; otherwise, false.

Applies to