Adding dynamic data (for archiving data) to an ASP.NET MVC 3 site

I am doing my first ASP.NET MVC 3 project here, and since I need to support stored procedures, I decided to use Entity Framework 4.1 with a database approach, for example. with all the goodness of EDMX.

Since I absolutely need support for the stored procedure, I cannot use the code in the first place (as much as I would like).

All of the cool new MVC building materials seem to be based on the first code (which I can't use - see above) - or is there a method / parameter that affects it, so that it will use an ObjectContext instead of of DbContext ??.

So, how do I create the Quickie part of my MVC 3 application to tint some lookup tables - using the first approach to the EF 4.1 database? Can I use dynamic data? How to add this to an existing MVC 3 (.NET 4) project? It doesn't seem to find the β€œadd new item” entry for dynamic data ..... and all the practical videos that I find are for MVC 1 or 2 and .NET 3.5 - are they still applied?

+4
source share
3 answers

Please see this comment on here . I think you should customize the T4 template for your company. And Steve also has a good article in here .

+2
source

As a result, it turned out to be impossible to use the built-in scaffoling for ASP.NET MVC 3 without too much additional work, so I returned to ASP.NET Webforms for this small project of mine.

0
source

Hope you tried this:

 Scaffold Controller Participant -force -repository -DbContextType "DBEntities" 

where DBEntities is the name of the model class generated by the entity framework.

0
source

All Articles