Share via


EntityContainer.TryGetEntitySetByName(String, Boolean, EntitySet) Method

Definition

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

public bool TryGetEntitySetByName (string name, bool ignoreCase, out System.Data.Entity.Core.Metadata.Edm.EntitySet entitySet);
member this.TryGetEntitySetByName : string * bool *  -> bool
Public Function TryGetEntitySetByName (name As String, ignoreCase As Boolean, ByRef entitySet As EntitySet) As Boolean

Parameters

name
String

The name of the entity set that is searched for.

ignoreCase
Boolean

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

entitySet
EntitySet

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

Returns

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

Applies to