DataAnnotations are sweet!
The MSDN announcement to CTP5 has a listing of the Data Annotations provided. Here they are formatted for your enjoyment:
- Key
- StringLength
- MaxLength
- ConcurrencyCheck
- Required
- Timestamp
- ComplexType
- Column - Placed on a property to specify the column name, ordinal & data type
- Table - Placed on a class to specify the table name and schema
- InverseProperty - Placed on a navigation property to specify the property that represents the other end of a relationship
- ForeignKey - Placed on a navigation property to specify the property that represents the foreign key of the relationship
- DatabaseGenerated - Placed on a property to specify how the database generates a value for the property (Identity, Computed or None)
- NotMapped - Placed on a property or class to exclude it from the database
No comments:
Post a Comment