System.ComponentModel.DataAnnotations.Schema Namespace
The System.ComponentModel.DataAnnotations.Schema namespace provides support for attribute classes that are used to define metadata for ASP.NET MVC and ASP.NET data controls.
Class | Description | |
---|---|---|
![]() | ColumnAttribute | Represents the database column that a property is mapped to. |
![]() | ComplexTypeAttribute | Denotes that the class is a complex type. Complex types are non-scalar properties of entity types that enable scalar properties to be organized within entities. Complex types do not have keys and cannot be managed by the Entity Framework apart from the parent object. |
![]() | DatabaseGeneratedAttribute | Specifies how the database generates values for a property. |
![]() | ForeignKeyAttribute | Denotes a property used as a foreign key in a relationship. The annotation may be placed on the foreign key property and specify the associated navigation property name, or placed on a navigation property and specify the associated foreign key name. |
![]() | InversePropertyAttribute | Specifies the inverse of a navigation property that represents the other end of the same relationship. |
![]() | NotMappedAttribute | Denotes that a property or class should be excluded from database mapping. |
![]() | TableAttribute | Specifies the database table that a class is mapped to. |
Enumeration | Description | |
---|---|---|
![]() | DatabaseGeneratedOption | Represents the pattern used to generate values for a property in the database. |