Page 1 of 1
MVC4 Scaffolding support?
Posted: Sun 10 Mar 2013 11:41
by edstaffin
Hi,
Does dotConnect support this as well as code-first migrations?
If so, where can I read up on it?
If not, is it coming?
Thanks ... Ed
Re: MVC4 Scaffolding support?
Posted: Tue 12 Mar 2013 09:36
by Shalex
edstaffin wrote:Does dotConnect support this as well as code-first migrations?
Devart Entity Model (*.edml) works with MVC4 Scaffolding in our environment.
The only issue we have encountered is described at
http://social.msdn.microsoft.com/Forums ... 0558e57f1/. It can be solved via Entity Developer interface in the following ways:
1. Add the reference to the System.ComponentModel.DataAnnotations.dll assembly via Model > Settings > Model > Attributes. After this, add the Key attribute to the model and a particular EntityKey property.
2. There is another (simpler) way: set the Validation Framework property of your template to Data Annotations, save the template and regenerate the code.
edstaffin wrote:If so, where can I read up on it?
You can use Devart Entity Model (*.edml) in the same way as ADO.NET Entity Data Model (*.edmx):
http://www.asp.net/mvc/tutorials/hands- ... migrations. If you encounter any difficulties, please
contact us.
Re: MVC4 Scaffolding support?
Posted: Mon 18 Mar 2013 14:49
by edstaffin
Thanks for the info. I'll get started right away!
Ed