MetadataWorkspace.GetItems Method

 

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

NameDescription
System_CAPS_pubmethodGetItems(DataSpace)

Gets all the items in the specified data model.

System_CAPS_pubmethodGetItems<T>(DataSpace)

Gets all the items in the specified data model.


MetadataWorkspace.GetItems Method (DataSpace)

Gets all the items in the specified data model.

public virtual ReadOnlyCollection<GlobalItem> GetItems(
	DataSpace dataSpace
)

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