Share via


EdmProperty.CreateEnum(String, EnumType) Method

Definition

Creates a new enum property.

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

Parameters

name
String

The name of the property.

enumType
EnumType

The type of the property.

Returns

The newly created property.

Attributes

Applies to