MetadataWorkspace.GetItems Method
Namespace:
System.Data.Entity.Core.Metadata.Edm
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | GetItems(DataSpace) | Gets all the items in the specified data model. |
![]() | GetItems<T>(DataSpace) | Gets all the items in the specified data model. |
MetadataWorkspace.GetItems Method (DataSpace)
Gets all the items in the specified data model.
Parameters
- dataSpace
-
Type:
System.Data.Entity.Core.Metadata.Edm.DataSpace
The conceptual model for which the list of items is needed.
Return Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<GlobalItem>A collection of type ReadOnlyCollection<T> that contains all the items in the specified data model.
Exception | Condition |
---|---|
ArgumentException | Thrown if the space is not a valid space. Valid space is either C, O, CS or OCSpace |
MetadataWorkspace.GetItems<T> Method (DataSpace)
Gets all the items in the specified data model.
public virtual ReadOnlyCollection<T> GetItems<T>( DataSpace dataSpace ) where T : GlobalItem
Parameters
- dataSpace
-
Type:
System.Data.Entity.Core.Metadata.Edm.DataSpace
The conceptual model for which the list of items is needed.
Return Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<T>A collection of type ReadOnlyCollection<T> that contains all the items in the specified data model.
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 |