It's worth mentioning that some validation rules must be applied to the DB schema for consistency by adding a new migration. e.g. add-migration AddingNewRules
Mainly, the following two attributes affect the schema:
1- [Required] will alter the relevant column and make it not null
2- [StringLength(60)] will alter the type of the column and make it nvarchar(60)
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 443a7c53-cc16-7ed5-5950-46a6f195f19c
Version Independent ID: 12fe9329-2cef-4056-4986-18ed7ae5c397
It's worth mentioning that some validation rules must be applied to the DB schema for consistency by adding a new migration. e.g. add-migration AddingNewRules
Mainly, the following two attributes affect the schema: 1- [Required] will alter the relevant column and make it not null 2- [StringLength(60)] will alter the type of the column and make it nvarchar(60)
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.