PrimitiveType.GetEdmPrimitiveType Method
Returns the model equivalent type for this type.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | GetEdmPrimitiveType() | Returns the equivalent EdmType of this PrimitiveType . |
![]() ![]() | GetEdmPrimitiveType(PrimitiveTypeKind) | Returns the equivalent EdmType of a PrimitiveType . |
PrimitiveType.GetEdmPrimitiveType Method ()
Returns the equivalent EdmType of this PrimitiveType .
Return Value
Type: System.Data.Entity.Core.Metadata.Edm.EdmTypeAn EdmType object that is an equivalent of this PrimitiveType .
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".
PrimitiveType.GetEdmPrimitiveType Method (PrimitiveTypeKind)
Returns the equivalent EdmType of a PrimitiveType .
Parameters
- primitiveTypeKind
-
Type:
System.Data.Entity.Core.Metadata.Edm.PrimitiveTypeKind
A value of type PrimitiveType.
Return Value
Type: System.Data.Entity.Core.Metadata.Edm.PrimitiveTypeAn EdmType object that is an equivalent of a specified PrimitiveType .