PrimitiveType.GetEdmPrimitiveType Method

 

Returns the model equivalent type for this type.

Namespace:   System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodGetEdmPrimitiveType()

Returns the equivalent EdmType of this PrimitiveType .

System_CAPS_pubmethodSystem_CAPS_staticGetEdmPrimitiveType(PrimitiveTypeKind)

Returns the equivalent EdmType of a PrimitiveType .


PrimitiveType.GetEdmPrimitiveType Method ()

Returns the equivalent EdmType of this PrimitiveType .

public EdmType GetEdmPrimitiveType()

Return Value

Type: System.Data.Entity.Core.Metadata.Edm.EdmType

An 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 .

public static PrimitiveType GetEdmPrimitiveType(
	PrimitiveTypeKind primitiveTypeKind
)

Parameters

primitiveTypeKind
Type: System.Data.Entity.Core.Metadata.Edm.PrimitiveTypeKind

A value of type PrimitiveType.

Return Value

Type: System.Data.Entity.Core.Metadata.Edm.PrimitiveType

An EdmType object that is an equivalent of a specified PrimitiveType .