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

Visual Studio 2017 MVC Scaffolding - Add Custom Directory

I'm trying to customize the MvcControllerWithContextScaffolder (.NET Core 1.1.1), to adhere to the Repository-pattern and I've been succesful in doing so, by placing the Repository-class/interface within the controller-file itself. However, I would…
Jeppe
  • 1,830
  • 3
  • 24
  • 33
1
vote
1 answer

Show image saved on database in asp.net MVC

I have saved an image in MSSQL server database using the IMAGE format. It shows as bytes from the database, I want to convert that byte stream to image in HTML and display that. I have followed this tutorial. It shows as Image even though tutorial…
1
vote
1 answer

Get RelatedEntities from ModelMetaData in .Net Core 1.1

I have tried to get the Related Entities in .Net Core in a scaffolding context. I am building a Details page in MVC that is being scaffolded. I need the Properties and Navigations. All the relevant properties are being shown, however, only the…
harmonickey
  • 1,299
  • 2
  • 21
  • 35
1
vote
0 answers

Customizing Scaffolding view Templates in Visual Studio 2017

I have followed the steps of creating a custom CShtml Tempalte with MVC 5 in Visual Studio 2013,that is well-worked, but how can i do that in Visual Studio 2017 and an asp.net-core-mvc project?
1
vote
1 answer

Scaffolding missing in dotnetcore 1.1 application VS2017

I noticed after creating a new project in Visual Studio 2017 of the type "ASP.NET Core Web Application (.NET Framework)", there is no scaffolding (when you right click) menu item available (like in the older versions of MVC). Is scaffolding not…
1
vote
0 answers

Asp net core MVC View creating view default encoding VS 2017

maybe trivial question but i couldnt find an answer... When i am creating view via scaffolding this created view is saved with encoding "Central European (windows) - Codepage 1250" instead of "Unicode (UTF - 8 with signature) - Codepage 65001". I…
1
vote
0 answers

Cannot resolve alias 'Scaffold' because it refers to term 'Invoke-Scaffolder',

im trying to run this simple scaffolding command using Scafoold Controller Car in order to do my scaffolding framework up and running. but it give me the below error all the time. Appreciate if you guys can help me to solve this. Cannot resolve…
1
vote
1 answer

Ready to use admin views for ASP.NET MVC project?

I have a an ASP.NET MVC5 project using Entity Framework. I have all the regular membership entities (AspNetUser, AspNetRole, ...). In the RoR or Django world we can add admin views extremely easily and I wonder if the ASP.NET MVC eco-system has…
1
vote
1 answer

View scaffolding fails in Visual Studio 2015 for ASP.NETCore MVC

I have Visual Studio 2015 Community Edition Update 3 running on Windows 8.1. I also have the latest .NET Core 1.1 installed. I couldn't scaffold a new Controller so found this thread on github, this one on SO and after adding these 2…
1
vote
0 answers

Using asp.net scaffolding to modify existing method

I'm using ASP.NET Web Forms scaffolding which is available here. I know how to scaffold custom class in my project or adding method to existing class. I wonder is it possible to modify existing method (e.g. add lines at the end of it).
1
vote
2 answers

GroupBy with MVC Scaffolding

Background I am currently working on an MVC project, in which I am looking to display a list of films and times in which they will be programmed to play. In order to achieve this, I have a basic table for this…
1
vote
3 answers

Listbox for MVC 6 EF 7 Property not Populating

I've been trying for a while now to get a list box to populate and I can't seem to figure it out. I've studied entity framework 7 documentation pretty extensively but I'm still new to it. There aren't a lot of tutorials out there for MVC6/EF7 yet so…
Jon
  • 9,156
  • 9
  • 56
  • 73
1
vote
0 answers

Scaffolding controller is not creating Dropdown list for related entities with MVC 5

I use Scaffolding to create the first version of controllers in my MVC 5 projects, but I'm not able to create the relashionship between 2 entities and get the expected results. public partial class Call { [Key] …
Patrick
  • 2,995
  • 14
  • 64
  • 125
1
vote
1 answer

Scaffolding migration up/down shows Empty

I want to create a new datatable in my database. I ran Add-Migration items, it shows empty for both up() and down() namespace myapp.Migrations { using System; using System.Data.Entity.Migrations; public partial class items : DbMigration { …
1
vote
1 answer

add scaffolded item wizard cannot resolve data model class

everyone. I'm trying to create new Scaffolded item for simple ASP.NET Wep API application which should be based on domain object class and DbContext derivative in separate assembly. The assembly is in the solution, target app has a reference to it…