Share via


MetadataWorkspace.GetItems Method

Definition

Overloads

GetItems(DataSpace)

Gets all the items in the specified data model.

GetItems<T>(DataSpace)

Gets all the items in the specified data model.

GetItems(DataSpace)

Gets all the items in the specified data model.

public virtual System.Collections.ObjectModel.ReadOnlyCollection<System.Data.Entity.Core.Metadata.Edm.GlobalItem> GetItems (System.Data.Entity.Core.Metadata.Edm.DataSpace dataSpace);
abstract member GetItems : System.Data.Entity.Core.Metadata.Edm.DataSpace -> System.Collections.ObjectModel.ReadOnlyCollection<System.Data.Entity.Core.Metadata.Edm.GlobalItem>
override this.GetItems : System.Data.Entity.Core.Metadata.Edm.DataSpace -> System.Collections.ObjectModel.ReadOnlyCollection<System.Data.Entity.Core.Metadata.Edm.GlobalItem>

Parameters

dataSpace
DataSpace

The conceptual model for which the list of items is needed.

Returns

A collection of type ReadOnlyCollection<T> that contains all the items in the specified data model.

Exceptions

Thrown if the space is not a valid space. Valid space is either C, O, CS or OCSpace

Applies to

GetItems<T>(DataSpace)

Gets all the items in the specified data model.

public virtual System.Collections.ObjectModel.ReadOnlyCollection<T> GetItems<T> (System.Data.Entity.Core.Metadata.Edm.DataSpace dataSpace) where T : System.Data.Entity.Core.Metadata.Edm.GlobalItem;
abstract member GetItems : System.Data.Entity.Core.Metadata.Edm.DataSpace -> System.Collections.ObjectModel.ReadOnlyCollection<'T (requires 'T :> System.Data.Entity.Core.Metadata.Edm.GlobalItem)> (requires 'T :> System.Data.Entity.Core.Metadata.Edm.GlobalItem)
override this.GetItems : System.Data.Entity.Core.Metadata.Edm.DataSpace -> System.Collections.ObjectModel.ReadOnlyCollection<'T (requires 'T :> System.Data.Entity.Core.Metadata.Edm.GlobalItem)> (requires 'T :> System.Data.Entity.Core.Metadata.Edm.GlobalItem)

Type Parameters

T

The type returned by the method.

Parameters

dataSpace
DataSpace

The conceptual model for which the list of items is needed.

Returns

A collection of type ReadOnlyCollection<T> that contains all the items in the specified data model.

Exceptions

Thrown if the space is not a valid space. Valid space is either C, O, CS or OCSpace

Applies to