System.ComponentModel.DataAnnotations.Schema Namespace

.NET Framework 4.6 and 4.5

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
Public class ColumnAttribute Represents the database column that a property is mapped to.
Public class 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.
Public class Supported by Portable Class Library DatabaseGeneratedAttribute Specifies how the database generates values for a property.
Public class 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.
Public class InversePropertyAttribute Specifies the inverse of a navigation property that represents the other end of the same relationship.
Public class NotMappedAttribute Denotes that a property or class should be excluded from database mapping.
Public class TableAttribute Specifies the database table that a class is mapped to.

  Enumeration Description
Public enumeration Supported by Portable Class Library DatabaseGeneratedOption Represents the pattern used to generate values for a property in the database.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft