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

Why default asp Scaffolding skips some of the model properties while generating 'Create' and 'Edit' views?

I am trying to generate a scaffold controller in my project, which is in VS2015 community edition and based on entity framework 6.1.3. Every time I try to do so, it only generates portion of the model. I mean the properties below. public string…
David
  • 13
  • 7
0
votes
1 answer

Why VS does not offer creating of MVC Controller using Entitity Framework

I am new to .NET Core and I still trying to get all puzzles together. One strange thing for me is. I am using VS2015 CE Update3 When I create new project under Visual C# -> Web -> ASP.NET Core Web Application And on next form when I Change…
0
votes
1 answer

Scaffolding create a new DbSet for each time i use it

I have a problem when I try to Scaffolding my ViewModel. Well... First things first. I was having another problem when I try to create my views, it was this problem: It happens exactly when I try to add a new View using the .Net template for…
0
votes
2 answers

Error: A namespace cannot directly contain members such as fields EntityFramework.dll' could not be found

enter image description hereI want to create model: add > class > ado.net entity, for my db first project and also want to create CRUD operation by asp.netscaffolding, but failed to create a model with necessary code.and thus i failed to create…
0
votes
0 answers

Cascading Dropdownlist in ASP.Net MVC after scaffolding

Im completeley new in mvc I have creating an MVC project using the code first I have these three models: first is Category model which includes the main categories: public class Category { public virtual int Id { get; set; } [Required] …
neda Derakhshesh
  • 1,103
  • 2
  • 20
  • 43
0
votes
0 answers

How to add a repeated foreign key in the same model

I am working in an ASP MVC project, which uses MvcScaffolding a lot, I have a project and a client model, the thing is that the project has to be relationed with client model in two ways (Billing client and Service Client, and both data are from…
0
votes
2 answers

Unable to retrieve metadata - Entity Framework MVC Controller Creation

I get the 'Unable to retrieve metadata' error whenever I try to create a controller for my MVC 3 Application (Razor - C# - Visual Studio 2012). I have done some research on this and other sites in order to fix this. What I have done so far…
Juan M
  • 4,063
  • 4
  • 19
  • 28
0
votes
2 answers

How to create custom scaffold templates which are not using entity framework entities directly in ASP.NET MVC5?

I'm using VS 2015 with EF 6.1.3. with MVC5. I know that MVC5 scaffolding templates are located in C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web\Mvc\Scaffolding\Templates\ But I cant use them since standard…
vipasane
  • 355
  • 2
  • 10
0
votes
1 answer

Visual Studio 2014 Scaffolding AspNetUser table

I want to edit user information in AspNetUser table by using Scaffolding. When I added scaffolded item from AspNetUser table, a controller and views are created. However, I cannot access the any views, but I only get an error, "The resource cannot…
0
votes
0 answers

Errors creating MVC 5 Controller with views using EF. Removes System.Core

When I start a fresh Empty C# MVC .NET 4.6 project with the folders and references for MVC. I add the reference to my data library and proceed to create a new Controller with EF and create Views. Once VS has done its thing, I open up one of the…
0
votes
0 answers

Add Controller not working on ASP.NET MVC 5 on VS 2013

I'm currently working on ASP.NET MVC 5 project on VS 2013 Ultimate. However, Add Controller... option when I right-click on the Controllers and Add View on Views folders are non-existent. I've checked the MvcScaffolding installed and even upgraded…
0
votes
0 answers

How to rename model generated from ADO.NET Entity Model scaffold

I'm creating a database first web api and using ADO.NET entity model to generate my model and DBContext. I'm not trying to create the models off of any tables in the database, but instead, off of stored procedures. When I generate the .edmx file…
0
votes
1 answer

MVC Compile Error:adding pagination...?

I'm currently studying ASP.NET tutorial and I was trying to implement this tutorial to my…
0
votes
2 answers

where do we set a scaffold.css file in my ruby on rails application?

My ruby on rails app is completely functional but I want to style it. Where and how do I set my css file to display properly.
Checkk
  • 91
  • 1
  • 1
  • 8
0
votes
1 answer

Why is my T4 Scaffolding failing without error?

I'm using ASP.NET MVC to build an application. The scaffolding is failing, but is not showing me any output as to why it is failing. PM> get-scaffolder Name Description …