Model first Default Constraints?

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
OutOfTouch6947
Posts: 79
Joined: Tue 02 Jun 2015 18:22

Model first Default Constraints?

Post by OutOfTouch6947 » Tue 19 Jan 2016 22:22

How to create default constraints with model first approach?

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Model first Default Constraints?

Post by MariiaI » Wed 20 Jan 2016 14:44

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.

OutOfTouch6947
Posts: 79
Joined: Tue 02 Jun 2015 18:22

Re: Model first Default Constraints?

Post by OutOfTouch6947 » Wed 20 Jan 2016 15:21

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.

OutOfTouch6947
Posts: 79
Joined: Tue 02 Jun 2015 18:22

Re: Model first Default Constraints?

Post by OutOfTouch6947 » Wed 20 Jan 2016 16:21

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.

Post Reply