EdmCoreModel.GetPrimitiveType 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
| Name | Description |
|---|---|
| GetPrimitiveType() |
Gets Edm.PrimitiveType type. |
| GetPrimitiveType(EdmPrimitiveTypeKind) |
Gets primitive type by kind. |
| GetPrimitiveType(Boolean) |
Gets a reference to the Edm.PrimitiveType type definition. |
GetPrimitiveType()
Gets Edm.PrimitiveType type.
public Microsoft.OData.Edm.IEdmPrimitiveType GetPrimitiveType();
member this.GetPrimitiveType : unit -> Microsoft.OData.Edm.IEdmPrimitiveType
Public Function GetPrimitiveType () As IEdmPrimitiveType
Returns
IEdmPrimitiveType type definition.
Applies to
GetPrimitiveType(EdmPrimitiveTypeKind)
Gets primitive type by kind.
public Microsoft.OData.Edm.IEdmPrimitiveType GetPrimitiveType(Microsoft.OData.Edm.EdmPrimitiveTypeKind kind);
member this.GetPrimitiveType : Microsoft.OData.Edm.EdmPrimitiveTypeKind -> Microsoft.OData.Edm.IEdmPrimitiveType
Public Function GetPrimitiveType (kind As EdmPrimitiveTypeKind) As IEdmPrimitiveType
Parameters
- kind
- EdmPrimitiveTypeKind
Kind of the primitive type.
Returns
Primitive type definition.
Applies to
GetPrimitiveType(Boolean)
Gets a reference to the Edm.PrimitiveType type definition.
public Microsoft.OData.Edm.IEdmPrimitiveTypeReference GetPrimitiveType(bool isNullable);
member this.GetPrimitiveType : bool -> Microsoft.OData.Edm.IEdmPrimitiveTypeReference
Public Function GetPrimitiveType (isNullable As Boolean) As IEdmPrimitiveTypeReference
Parameters
- isNullable
- Boolean
Flag specifying if the referenced type should be nullable.
Returns
A new Edm.PrimitiveType type reference.