MVC4 Scaffolding support?

MVC4 Scaffolding support?

Postby 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
edstaffin
 
Posts: 43
Joined: Mon 13 Oct 2008 13:23

Re: MVC4 Scaffolding support?

Postby 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/en-US/adodotnetentityframework/thread/2cef7375-e832-4f98-9084-4bf0558e57f1/. 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-on-labs/aspnet-mvc-4-entity-framework-scaffolding-and-migrations. If you encounter any difficulties, please contact us.
Shalex
Devart Team
 
Posts: 7616
Joined: Thu 14 Aug 2008 12:44

Re: MVC4 Scaffolding support?

Postby edstaffin » Mon 18 Mar 2013 14:49

Thanks for the info. I'll get started right away!
Ed
edstaffin
 
Posts: 43
Joined: Mon 13 Oct 2008 13:23


Return to dotConnect for Oracle