MetadataWorkspace.GetPrimitiveTypes Method (DataSpace)
Returns the list of primitive types in the specified data model.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- dataSpace
-
Type:
System.Data.Entity.Core.Metadata.Edm.DataSpace
The data model for which you need the list of primitive types.
Return Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>A collection of type ReadOnlyCollection<T> that contains all the primitive types 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 |