Share via


MetadataWorkspace.GetPrimitiveTypes(DataSpace) Method

Definition

Returns the list of primitive types in the specified data model.

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

Parameters

dataSpace
DataSpace

The data model for which you need the list of primitive types.

Returns

A collection of type ReadOnlyCollection<T> that contains all the primitive types 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