EdmProperty.CreatePrimitive(String, PrimitiveType) 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 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
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