Share via


EdmProperty.CreatePrimitive(String, PrimitiveType) Method

Definition

Creates a new primitive property.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static System.Data.Entity.Core.Metadata.Edm.EdmProperty CreatePrimitive (string name, System.Data.Entity.Core.Metadata.Edm.PrimitiveType primitiveType);
static member CreatePrimitive : string * System.Data.Entity.Core.Metadata.Edm.PrimitiveType -> System.Data.Entity.Core.Metadata.Edm.EdmProperty

Parameters

name
String

The name of the property.

primitiveType
PrimitiveType

The type of the property.

Returns

The newly created property.

Attributes

Applies to