Share via


EdmScalarPropertyAttribute Class

Definition

Attribute for scalar properties in an IEntity. Implied default AttributeUsage properties Inherited=True, AllowMultiple=False, The metadata system expects this and will only look at the first of each of these attributes, even if there are more.

[System.AttributeUsage(System.AttributeTargets.Property)]
public sealed class EdmScalarPropertyAttribute : System.Data.Entity.Core.Objects.DataClasses.EdmPropertyAttribute
type EdmScalarPropertyAttribute = class
    inherit EdmPropertyAttribute
Public NotInheritable Class EdmScalarPropertyAttribute
Inherits EdmPropertyAttribute
Inheritance
EdmScalarPropertyAttribute
Attributes

Constructors

EdmScalarPropertyAttribute()

Properties

EntityKeyProperty

Gets or sets the value that indicates whether the property is part of the entity key.

IsNullable

Gets or sets the value that indicates whether the property can have a null value.

Applies to