Bewerken

Delen via


PrimitiveType.GetEdmPrimitiveType Method

Definition

Returns the equivalent EdmType of this PrimitiveType.

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::Metadata::Edm::EdmType ^ GetEdmPrimitiveType();
public System.Data.Metadata.Edm.EdmType GetEdmPrimitiveType ();
member this.GetEdmPrimitiveType : unit -> System.Data.Metadata.Edm.EdmType
Public Function GetEdmPrimitiveType () As EdmType

Returns

An EdmType object that is an equivalent of this PrimitiveType.

Remarks

GetEdmPrimitiveType returns the model equivalent type for this type, For example, if this instance is nvarchar and its base type is a conceptual model string, then the return type is a conceptual model 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::Metadata::Edm::PrimitiveType ^ GetEdmPrimitiveType(System::Data::Metadata::Edm::PrimitiveTypeKind primitiveTypeKind);
public static System.Data.Metadata.Edm.PrimitiveType GetEdmPrimitiveType (System.Data.Metadata.Edm.PrimitiveTypeKind primitiveTypeKind);
static member GetEdmPrimitiveType : System.Data.Metadata.Edm.PrimitiveTypeKind -> System.Data.Metadata.Edm.PrimitiveType
Public Shared Function GetEdmPrimitiveType (primitiveTypeKind As PrimitiveTypeKind) As PrimitiveType

Parameters

primitiveTypeKind
PrimitiveTypeKind

A value of type PrimitiveType.

Returns

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

Remarks

For more information, see GetEdmPrimitiveType.

Applies to