System.ComponentModel.DataAnnotations.Schema namespace

Provides support for attribute classes used to define metadata for ASP.NET MVC and ASP.NET data controls.

class

class Description
ColumnAttribute Represents the database column to which the attribute will be mapped.
ComplexTypeAttribute Indicates that the class is a complex type. The complex type is a non-scalar attribute of the entity type, and the entity type allows scalar attributes to be organized within the entity. Complex types have no keys, and the Entity Framework cannot manage complex types without leaving the parent object.
DatabaseGeneratedAttribute Specify how the database generates attribute values.
ForeignKeyAttribute Represents an attribute used as a foreign key in a relationship.
InversePropertyAttribute Specify the reverse attribute that represents the navigation attribute at the other end of the same relationship.
NotMappedAttribute Indicates that the attribute or class should be excluded from the database mapping.
TableAttribute Specify the database table to which the class will be mapped.

enumerate

class Description
DatabaseGeneratedOption Represents the pattern used to generate values ​​for the attributes in the database.

Guess you like

Origin blog.csdn.net/WuLex/article/details/111977189