EdmProperty.CreateEnum(String, EnumType) 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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework