Questions tagged [asp.net-mvc-scaffolding]

ASP.NET MVC Scaffolding is a scaffolding package for quickly generating a basic outline of your software that you can then edit and customise.

ASP.NET MVC Scaffolding is a scaffolding package for quickly generating a basic outline of your software that you can then edit and customise.

A tutorial is found on Steven Sanderson's blog.

Installation

MVC Scaffolding can most easily be installed through its NuGet package.

Install-Package MvcScaffolding
364 questions
78
votes
6 answers

Can we Scaffold DbContext from selected tables of an existing database

As in previous versions of Entity Framework, is it possible in Entity Framework Core to reverse engineer only the selected tables of an existing database to create model classes out of them. This official ASP.NET site reverse engineers the entire…
65
votes
16 answers

Scaffolding controller doesn't work with visual studio 2013 update 2

PROBLEM: I have updated to Visual Studio 2013 update 2 and now I cannot scaffold controllers. The problem is not project specific: when I try to scaffold a controller, I get the following error in ALL and ANY project: There was an error running…
awrigley
  • 13,481
  • 10
  • 83
  • 129
49
votes
30 answers

Application can't scaffold items

I created an MVC 5 application in VS 2013 Professional and then used EF 6.1 code first with an existing DB on SQL Server Express. When I try to create the views I’m using the “New scaffolded item…” then selecting the “MVC 5 controller with views,…
41
votes
25 answers

"There was an error running the selected code generator" in VS 2013 scaffolding

I'm creating a new view off of a model. The error message I am getting is Error There was an error running the selected code generator: 'Access to the path 'C:\Users\XXXXXXX\AppData\Local\Temp\SOMEGUID\EntityFramework.dll' is denied'. I…
Brian Webb
  • 1,146
  • 1
  • 14
  • 29
34
votes
1 answer

ASP.NET MVCScaffolding is very slow

We try to use ASP.NET MVC Scaffolding ( http://blog.stevensanderson.com/2011/01/13/scaffold-your-aspnet-mvc-3-project-with-the-mvcscaffolding-package , http://mvcscaffolding.codeplex.com/). Great tool, but please any advice why is it so slow? The…
31
votes
11 answers

Visual Studio 2013 Scaffolding Error

I'm using VS 2013 RTM Ultimate, and when I try to add a Controller to my MVC 5 project I get the following error: "There was an error running the selected code generator: 'The Parameter searchFolders does not contain any entries. Provide at least…
21
votes
4 answers

Custom scaffold templates in ASP.NET Core

Now that I figured out how to enable scaffolding in ASP.NET Core MVC (see View scaffold templates in ASP.NET Core), I'd like to create custom template files for Views. I found one place that said the template files are located here: C:\Users\{user…
Rono
  • 3,171
  • 2
  • 33
  • 58
19
votes
11 answers

ASP.NET Core Scaffolding does not work in VS 2017

I have a beginner ASP.NET Core project in Visual Studio 2017, and I am at the scaffolding step of the HelloWorld. The Scaffolding does not work, I tested on a first computer, then at a second one... when I try to generate a controller with views ,…
19
votes
1 answer

Uploading Files into Database with ASP.NET MVC

I want to give a facility on my form for user to upload files and save in Database. How is this done in ASP.NET MVC. What DataType to write in my Model Class. I tried with Byte[], but during the scaffolding the solution could not generate the…
Mangesh Kaslikar
  • 591
  • 3
  • 13
  • 23
18
votes
3 answers

Re-Scaffold views after changing their model

I'm using Visual Studio 2013 and ASP.Net MVC 5. I've created a bunch of views for my models and then I've changed them. I want to run scaffolding on some models and create some views automatically and then change the automatically-generated views.…
Alireza Noori
  • 14,961
  • 30
  • 95
  • 179
15
votes
8 answers

There was an error running the selected code generator: Could not load file or assembly Microsoft.EntityFrameworkCore, version = 2.0.1.0

When I was creating a Controller and a View by MVC Controller with views, using Entity Framework I got an error. The Error is: There was an error running the selected code generator: 'Could not load file or assembly Microsoft.EntityFrameworkCore,…
15
votes
5 answers

Scaffolding controllers with repositories in Mvc5, EF6, VisualStudio 2013

In vs2012 I used to use Steve Sanderson's mvcScaffolding Package with this package I could scaffold Action Methods with unit tests and controllers with repositories and dependency injection. My question is simple. Is there a way to do so in…
15
votes
4 answers

Is MvcScaffolding compatible with VS 2013 RC by command line?

At NuGet when I try to install MvcScaffolding, by typing: Install-Package MvcScaffolding I am getting this error Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE Is it happening because of this new scaffolding engine in Visual Studio…
13
votes
3 answers

How to customize ASP.NET MVC 5 scaffolding in VS 2015?

I am developing an ASP.NET MVC 5 project. (not ASP.NET 5). Recently I switched to VS 2015. Now I decided I would like to create customized scaffolded Views and Controllers for my EF entities. So I searched and found Scott Hanselman's article about…
g.pickardou
  • 32,346
  • 36
  • 123
  • 268
13
votes
1 answer

ASP.NET MVC 5 Custom Scaffolding Option [t4 templates]

Currently , I am developing a framework , I want to add custom scaffolding option in visual studio menu. By default "MVC5 Controller with views, using Entity Framework" option 3 from the dialog box chooses…
1
2 3
24 25