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
0
votes
1 answer

How to use MVC5 scaffolding for with complex types in view model

I'm using ASP.NET MVC5 to create an app. My view model class is complex, as it has some attributes that are lists of objects. I tried to create a 'create' view for the following model using MVC scaffolding, but it just kind of ignored the object…
tjp69
  • 1,068
  • 9
  • 13
0
votes
2 answers

How to get model type in Microsoft.AspNet.Scaffolding List.cs.t4?

Such as the title,How to get model type in Microsoft.AspNet.Scaffolding List.cs.t4? get model type fullName also OK.
Liwq
  • 11
  • 6
0
votes
1 answer

Cascading dropdownlist in ASP.Net MVC Scaffolding

Is it possible to use cascading dropdownlist in ASP.Net MVC scaffolding? If yes, how? I have here some of the codes that will show the dropdownlist using scaffolding: MyController.cs // GET: /ManualEntries/Create public ActionResult Create() { …
0
votes
0 answers

Entity Framework and Scaffolded Item C#

I´m making an Web Api using entity Frameworks and Scaffolded Item, this scaffolded Item crate the methods GET,PUT,POST,DELETE but the problem is how i can create a new custom method o get data from custom query in my controller. Somebody help me…
0
votes
1 answer

MVC 5 Scaffolding

I am using the mvc5 database first approach on a project. The project is huge, 170 tables or so in the database. I was wondering, is there a way to automate the scaffolding of the "MVC 5 Controller with views, using entity Framework" per model? I am…
0
votes
1 answer

"Add Scaffolded Item" Disappears After Visual Studio 2013 Update 2

I have been having issues with Visual Studio 2013 lately and one of them being how MVC 5 is handled in the IDE. I'm fine with them moving the adding of areas and controllers to a new submenu, but after Update 2, that context-menu item disappeared. …
clockwiseq
  • 4,189
  • 9
  • 38
  • 61
0
votes
0 answers

MVC Scaffolding: Compatible with nhibernate?

Is the core mvc scaffolding stack something that can sit on top of my nhibernate objects, or can it only sit on EF?
Jonesome Reinstate Monica
  • 6,618
  • 11
  • 65
  • 112
0
votes
2 answers

How do I get the public properties of an Object if I have the type name in a string in C#?

I have a long list of Objects in C# that I would like to script a series of "unit test stubs" for via MvcScaffolding. I would like to be able to load an object's metadata and loop through the object's public properties. However, in the context I do…
Alex C
  • 16,624
  • 18
  • 66
  • 98
0
votes
1 answer

How to update just some of properties in Edit action

Preface: I'm working on a project using MVC 5. We've built up our database from which our model is created. Then, we've added the Controllers and Views using Scaffolding. However in the Views we've omitted some of the properties (they should not be…
Mohsen Kamrani
  • 7,177
  • 5
  • 42
  • 66
0
votes
1 answer

Add Scaffold and Area Option in Visual Studio 2013 Express

In my Visual Studio 2013 Express for Web, I don't see the Add Scaffold and Area options illustrated in http://www.itorian.com/2013/10/area-in-mvc-5-with-example-step-by-step.html. Does this option exist in VS 2013 Express? Do I need to install…
0
votes
1 answer

Web API Entity Framework error - Item with idenity already exists in the metadata collection

I am experimenting with a Web API 2 project in Visual Studio 2012. I used the code first from existing DB option with EF6 to select one table and one view. I then tried to create a controller for the simple table using the profile for Web API 2…
0
votes
1 answer

customizing a scaffold controller-MVC5 Controller with views,using Entity Framework

I am using using Visual Studio 2013 and I have created code Templates and copied all the templates from C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Web\Mvc\Scaffolding\Templates I want to customize the…
user3311298
  • 335
  • 5
  • 12
0
votes
1 answer

How do I set up a Navigation Property in my Code First between a Table and View?

I have a simple context that contains 1 Table from a DB and 1 View from the same DB. The Table has a field, OrderNumber, that is the PK of the View. The View simply has details that I want to include and as such is a 1:1 with the table. I am…
0
votes
2 answers

MVC 4 with EF6 on Visual Studio 2013 Scaffolding Error

I have just started using Visual Studio 2013 with EF6 and I have created a demo application with MVC 4. I tried to scaffold a controller but i keep getting an error. I have installed MVCScaffolding from the Package Manager Console and everything…
0
votes
1 answer

Use MvcScaffolding with Entity Framework 5

I would like use MvcScaffolding with EF 5 (because I use MySQL and there are not stable version of mysql connector for EF 6) but when I install MvcScaffolding with nuget, EntityFramework 6.0.2 is installed automatically How can I use MvcScaffolding…