by ivan bondy
11. October 2011 07:23
The full list of annotations supported in EF is:
· KeyAttribute – Placed on property to specify key
· StringLengthAttribute – Placed on the property to specify string length
· MaxLengthAttribute – Placed on the property to specify maximum length
· ConcurrencyCheckAttribute - Specifies that a property participates in optimistic concurrency checks.
· RequiredAttribute – Placed on the property to specify required field
· TimestampAttribute – Placed on the property to identify timestamp field used for concurrency resolution
· ComplexTypeAttribute – Identify property as complex type
· ColumnAttribute - Placed on a property to specify the column name, ordinal & data type
· TableAttribute - Placed on a class to specify the table name and schema
· InversePropertyAttribute - Placed on a navigation property to specify the property that represents the other end of a relationship
· ForeignKeyAttribute - Placed on a navigation property to specify the property that represents the foreign key of the relationship
· DatabaseGeneratedAttribute - Placed on a property to specify how the database generates a value for the property (Identity, Computed or None)
· NotMappedAttribute - Placed on a property or class to exclude it from the database
I hope you will find this list helpful. I certainly do as I use it almost everyday.
Cheers,