Redigera

Dela via


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.

Classes

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.

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.

Enums

DatabaseGeneratedOption

Represents the pattern used to generate values for a property in the database.