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
7
votes
0 answers

Custom Scaffolding Extension Visual Studio 2019

I'm attempting to create a Custom Scaffold Extension for .NET Framework and Visual Studio 2019. I do not want to overwrite the default MVC T4 templates. I'm trying to do something like:…
6
votes
2 answers

MVC3/Razor Add Controller "Get-PrimaryKey" is failing to find the Primary Key

I've created an Entity Framework Model based on an existing database. The Entity Framework is using the ADO.NET DbContext Generator. I've also created a MVC3/Razor project that is using the DLL from the first project. When I click on the option…
6
votes
3 answers

How can I do ASP.NET MVC view scaffolding in Rider IDE?

Currently trying Rider (JetBrains IDE for .Net). I used to work on Visual Studio Enterprise for c# asp.net MVC projects, and i'd like to know if there's a way (on Rider) to do like the "Add -> view -> with create/delete/update/list" feature on…
j0w
  • 505
  • 2
  • 12
  • 32
6
votes
1 answer

Scaffolding in .Net Core with Multiple Projects in Solution

I have created an .Net Core MVC6 application targeting net461. I have used a project structure I am very familiar with in which I place the data, model, and service classes in separate class library projects and the Web project references these. …
6
votes
0 answers

SPA ASP.NET Core MVC with scaffolding templates for client side validation

I'm trying to create my first single page application with asp.net core mvc and knockout js (probably, but anything plausible would do). My app is pretty data intensive and that is why I love Scaffolding templates of asp.net mvc as they're not only…
6
votes
1 answer

What is the role of [Bind(Exclude = "AlbumId")] annotation in data validation? What does scaffolding mean?

I follow this tutorial: http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-6 When talking about form validation author says that Bind anntoations is used to: Lists fields to exclude or include when binding parameter or form…
Yoda
  • 17,363
  • 67
  • 204
  • 344
6
votes
3 answers

Cant add new area in Visual Studio 2013 / ASP.NET MVC 5.1

If I right click an MVC website project and choose Add->Area... then type in the area name and hit "Add". I get : "There was an error running the selected code generator: 'Value does not fall within the expected range'" All my colleagues also…
6
votes
1 answer

How to add new Scaffold used in Visual Studio 2013 Scaffolding?

Is there a way to add a new Scaffold or override the Scaffolding functionality used in the new Visual Studio 2013 Scaffolding? The only documentation I can find on the internet is how to override the T4 templates using the CodeTemplates folder. I…
6
votes
1 answer

MVCScaffoliding package throwing MethodInvocationException

I've recently upgraded my VisualStudio 2010 installation with NuGet 2.0 and it seems that this breaks the MvcScaffolding package from Hanselman and Kirkland. Whenever I attempt to build a new controller and views w/ repositories, I get a…
Scott Mayfield
  • 2,254
  • 2
  • 20
  • 28
5
votes
1 answer

Scaffolding and Display/EditorTemplates

Say I have the following models: public class Item { public int Id{ get; set; } public ItemDescription ItemDescription{ get; set; } } public class ItemDescription { public int Id{ get; set; } public int Revision{ get; set; } …
spender
  • 117,338
  • 33
  • 229
  • 351
5
votes
2 answers

Is it possible to scaffold multiple controllers in one command?

Using MvcScaffolding I can call these powershell commands to scaffold the Controllers and Views automagically. scaffold Controller Products scaffold Controller Reviews Is it possible to combine the two commands into one? e.g scaffold Controller…
Fixer
  • 5,985
  • 8
  • 40
  • 58
5
votes
3 answers

The default Identity UI layout requires a partial view '_LoginPartial' error ASP.NET Core 6.0

So. I created a fresh new project with Visual Studio Pro 2019 (v16.11.9) using the model ASP.NET Core with Angular. I set the authentication option to Individual User Accounts. I got a working scaffolded project with Angular 8, ASP.NET Core 3.1…
5
votes
0 answers

Visual Studio 2015 MVC Scaffolding extremely slow

I have an issue - the scaffolding new controllers is extremely slow. When performing this action: Controllers --> "Add" --> "Controller..." --> "MVC 5 Controller with Views and Entity Framework" - the dialog box takes about 10 minutes to load. The…
5
votes
2 answers

How to use referenced assembly for controller scaffolding

I have a class library with some model classes and a DbContext class (all those classes are public). This class library is referenced by an MVC-5 application. Is it possible to use the model classes from that referenced class library for…
Daniel Dušek
  • 13,683
  • 5
  • 36
  • 51
5
votes
1 answer

MVC Scaffolding - Missing Classes from Reference Assemblies

Are there any special rules for what is / isn't shown in the MVC scaffolding model class and data context class dropdowns when adding new MVC or WebApi controllers? We have our data context and models in other assemblies that we reference in the MVC…
1 2
3
24 25