MetadataWorkspace.GetItem Method
Searches for an item with the given identity in the given space.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | GetItem<T>(String, Boolean, DataSpace) | Returns an item by using the specified identity and the data model. |
![]() | GetItem<T>(String, DataSpace) | Returns an item by using the specified identity and the data model. |
MetadataWorkspace.GetItem<T> Method (String, Boolean, DataSpace)
Returns an item by using the specified identity and the data model.
public virtual T GetItem<T>( string identity, bool ignoreCase, DataSpace dataSpace ) where T : GlobalItem
Parameters
- identity
-
Type:
System.String
The identity of the item.
- ignoreCase
-
Type:
System.Boolean
true to perform the case-insensitive search; otherwise, false.
- dataSpace
-
Type:
System.Data.Entity.Core.Metadata.Edm.DataSpace
The conceptual model on which the item is searched.
Type Parameters
- T
The type returned by the method.
Exception | Condition |
---|---|
ArgumentException | Thrown if the space is not a valid space. Valid space is either C, O, CS or OCSpace |
MetadataWorkspace.GetItem<T> Method (String, DataSpace)
Returns an item by using the specified identity and the data model.
Parameters
- identity
-
Type:
System.String
The identity of the item.
- dataSpace
-
Type:
System.Data.Entity.Core.Metadata.Edm.DataSpace
The conceptual model in which the item is searched.
Type Parameters
- T
The type returned by the method.
Exception | Condition |
---|---|
ArgumentException | Thrown if the space is not a valid space. Valid space is either C, O, CS or OCSpace |