EdmCoreModel.GetPrimitive(EdmPrimitiveTypeKind, Boolean) 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.
Gets a reference to a primitive type of the specified kind.
public Microsoft.OData.Edm.IEdmPrimitiveTypeReference GetPrimitive (Microsoft.OData.Edm.EdmPrimitiveTypeKind kind, bool isNullable);
member this.GetPrimitive : Microsoft.OData.Edm.EdmPrimitiveTypeKind * bool -> Microsoft.OData.Edm.IEdmPrimitiveTypeReference
Public Function GetPrimitive (kind As EdmPrimitiveTypeKind, isNullable As Boolean) As IEdmPrimitiveTypeReference
Parameters
- kind
- EdmPrimitiveTypeKind
Primitive kind of the type reference being created.
- isNullable
- Boolean
Flag specifying if the referenced type should be nullable.
Returns
A new primitive type reference.