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

How to alter the scaffolding output folder?

I can't seem to determine if the -Folder option was removed from the MvcScaffolding package for ASP.NET MVC. These two links indicate that it was used for altering the output folder for the items created by the…
Derek
  • 952
  • 3
  • 13
  • 34
1
vote
0 answers

MVC Scaffolding - context.Save() is trying to update Foreign Key table

I have been searching as to why my problem is happening and I'm stumped. Not sure if it's how I did my data annotations or what... tried several things, now just hoping it's something one of you smarties can spot. We are using EF5, MVC4 Razor and…
1
vote
3 answers

How to change project and folder where MvcScaffolding generates controllers, views and repositories

Is there any possibilities to change default projects and folders where MvcScaffolding generates repositories, views and controllers?
1
vote
0 answers

MVCScaffolding, Entity Framework Model First, many-to-many scaffolding

I am using Entity Framework Model First. There are 2 entities in my Model.. User Role I want to use MVC scaffolding (using VS 2012 or 2010) for this relationship. From some posts in 20111 many-many was not supported. is it still not supported? If…
1
vote
1 answer

How to use a .ps1 t4scaffolding template to Add Projects to the current solution?

Environment: Visual studio 2012, MvcScaffolding I'm new to MvcScaffolding and Powershell but what I'm trying to accomplish is to add a new Project to the solution of the current project. So basically the user has 1 solution, and 1 project in that…
1
vote
0 answers

Backbone, Ember or Knockout scaffolder for webapi and ASPNET MVC 4 with jquery grids

Is there a scaffolder that works with Backbone, Ember or Knockout or any other framework to scaffold webapi/aspnet mvc 4 project that uses Entity Framework 5 and is able to scaffold the view with jquery grids? Better, would be a not SPA scaffolder,…
1
vote
1 answer

asp.net dynamic data scaffold using a NoSQL DB

Is there any way to use ASP.NET Dynamic Data WebApp or Scaffold using a NoSQL DB (CouchDB) I have a Class library of Objects - marked as a ContextModel. I think i have to generate an EDMX file from my object Model - but I'm not sure how. Thanks
1
vote
0 answers

Searching in Ajax Grid Scaffolder

I am using Ajax Grid Scaffolder for inline editing of grid in asp.net mvc3. It does not provide searching option by default. Is there any other package which helps the same way as Ajax Grid Scaffolder but with searching option or the only way is to…
Farhan
  • 11
  • 2
1
vote
0 answers

IDE Exception when trying to create a new controller in ASP.NET MVC3

I created an "Area" for a bit of functionality in my MVC3 project and then changed my mind. I didn't see a way to remove the "Areas" from my project, So I just deleted the "Areas" folder. Now when I try to create a new controller, I get this…
0
votes
2 answers

MVC3 ajaxgrid scaffolding error, Cannot implicitly convert type 'System.Linq.IQueryable' to 'System.Data.Objects.ObjectQuery'

I'm using MVC3 ajaxgrid scaffolding with EF4.1 code first and i've this error: Cannot implicitly convert type 'System.Linq.IQueryable' to 'System.Data.Objects.ObjectQuery' The code with the error in, is autogenerated: public ActionResult…
Francesco Cristallo
  • 2,856
  • 5
  • 28
  • 57
0
votes
1 answer

EF Code First: model type is not pluralized in the repository

I have a State model class: public class State { public int Id { get; set; } public string Name { get; set; } public int CountryId { get; set; } public virtual Country Country { get; set; } } And I am trying to create a…
sashaeve
  • 9,387
  • 10
  • 48
  • 61
0
votes
1 answer

Any code generator using T4 and Powershell for MFC?

I was impressed with MVC Scaffolding. I understand its limitation but I think it's a great attempt using t4 and powershell to automate repeated coding. I wonder if there is anything like that for MFC or C++. I guess I can still use MVC Scaffolding…
Tae-Sung Shin
  • 20,215
  • 33
  • 138
  • 240
0
votes
1 answer

MvcScaffolding creates disposable resources that are not disposed

Using MvcScaffolding with EF4.1, I see that the first generated line of a Controller generally is the following field definition: public class FooController : Controller { private BarContext context = new BarContext(); //..... where…
spender
  • 117,338
  • 33
  • 229
  • 351
0
votes
0 answers

Error:- scaffolding + exception has been thrown by the target of an invocation

Below mentioned error I got when I was trying to scaffolding the code in my asp.net MVC 4.7.2 web application There was an error running the selected code generator: ‘Exception has been thrown by the target of an invocation.’ So many suggestion…
0
votes
0 answers

scaffolding Login and Logout results in redirection to logout page when logging in

I created a new razor pages project with Individual Accounts. I scaffolded Login and Logout pages. I ran it, I registered a new user, then I logged out and again logged in. I expected to be directed to homepage after login but I was redirected to…
tzviya
  • 537
  • 1
  • 4
  • 14