MVC4 Scaffolding support?

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
edstaffin
Posts: 43
Joined: Mon 13 Oct 2008 13:23

MVC4 Scaffolding support?

Post by edstaffin » Sun 10 Mar 2013 11:41

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

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: MVC4 Scaffolding support?

Post by Shalex » Tue 12 Mar 2013 09:36

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.

edstaffin
Posts: 43
Joined: Mon 13 Oct 2008 13:23

Re: MVC4 Scaffolding support?

Post by edstaffin » Mon 18 Mar 2013 14:49

Thanks for the info. I'll get started right away!
Ed

Post Reply