EntityContainer.TryGetEntitySetByName Method (String, Boolean, EntitySet)

 

Returns an EntitySet object by using the specified name for the entity set.

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

public bool TryGetEntitySetByName(
	string name,
	bool ignoreCase,
	out EntitySet entitySet
)

Parameters

name
Type: System.String

The name of the entity set that is searched for.

ignoreCase
Type: System.Boolean

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

entitySet
Type: System.Data.Entity.Core.Metadata.Edm.EntitySet

When this method returns, contains an EntitySet object. If there is no entity set, this output parameter contains null.

Return Value

Type: System.Boolean

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