PrimitiveType.GetEdmPrimitiveType 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.
Overloads
GetEdmPrimitiveType() |
Returns the equivalent EdmType of this PrimitiveType . |
GetEdmPrimitiveType(PrimitiveTypeKind) |
Returns the equivalent EdmType of a PrimitiveType . |
GetEdmPrimitiveType()
Returns the equivalent EdmType of this PrimitiveType .
public System.Data.Entity.Core.Metadata.Edm.EdmType GetEdmPrimitiveType ();
member this.GetEdmPrimitiveType : unit -> System.Data.Entity.Core.Metadata.Edm.EdmType
Public Function GetEdmPrimitiveType () As EdmType
Returns
An EdmType object that is an equivalent of this PrimitiveType .
Remarks
For example if this instance is nvarchar and it's base type is Edm String then the return type is Edm String. If the type is actually already a model type then the return type is "this".
Applies to
GetEdmPrimitiveType(PrimitiveTypeKind)
Returns the equivalent EdmType of a PrimitiveType .
public static System.Data.Entity.Core.Metadata.Edm.PrimitiveType GetEdmPrimitiveType (System.Data.Entity.Core.Metadata.Edm.PrimitiveTypeKind primitiveTypeKind);
static member GetEdmPrimitiveType : System.Data.Entity.Core.Metadata.Edm.PrimitiveTypeKind -> System.Data.Entity.Core.Metadata.Edm.PrimitiveType
Parameters
- primitiveTypeKind
- PrimitiveTypeKind
A value of type PrimitiveType.
Returns
An EdmType object that is an equivalent of a specified PrimitiveType .
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