Page 1 of 1

Model first Default Constraints?

Posted: Tue 19 Jan 2016 22:22
by OutOfTouch6947
How to create default constraints with model first approach?

Re: Model first Default Constraints?

Posted: Wed 20 Jan 2016 14:44
by MariiaI
Select the necessary entity property and open its Properties (right-click the selected property and select Properties from the shortcut menu), find 'Default Value' and set the necessary value.
If it is not what you mean, please describe your scenario more clearly.

Re: Model first Default Constraints?

Posted: Wed 20 Jan 2016 15:21
by OutOfTouch6947
I did exactly what you stated, that is why I posted this question, when the I generated the database from the model I don't see any default constraints created on the attribute in the table.

Re: Model first Default Constraints?

Posted: Wed 20 Jan 2016 16:21
by OutOfTouch6947
OutOfTouch6947 wrote:I did exactly what you stated, that is why I posted this question, when the I generated the database from the model I don't see any default constraints created on the attribute in the table.
I am mistaken it did create the constraint in the database.