MetadataWorkspace.GetPrimitiveTypes(DataSpace) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for