EdmProperty.CreateEnum Method (String, EnumType)

 

Creates a new enum property.

Namespace:   System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static EdmProperty CreateEnum(
	string name,
	EnumType enumType
)

Parameters

name
Type: System.String

The name of the property.

enumType
Type: System.Data.Entity.Core.Metadata.Edm.EnumType

The type of the property.

Return Value

Type: System.Data.Entity.Core.Metadata.Edm.EdmProperty

The newly created property.