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

.Net - How to export and install a Custom scaffold vsix extension

I wrote a custom scaffolding extension for my project using this tutorial http://blogs.msdn.com/b/webdev/archive/2014/04/03/creating-a-custom-scaffolder-for-visual-studio.aspx It's my first time building my own vsix extension, the extension runs in…
Shifty
  • 303
  • 2
  • 16
0
votes
0 answers

Using T4 template to create View with custom Html control

I have created view model class like bellow public class GenericFormModel { public string SimpleInput { get; set; } public string InputAddOn { get; set; } public string InputTextArea { get; set; } public DateRange Date { get; set; } …
P John Raj
  • 537
  • 1
  • 4
  • 17
0
votes
1 answer

asp.net scaffolded generate item - select tag without options from database

I try to reinterpretate [this simple tutorial][1] In Book model I remove ScaffoldColumn(false) above public int AuthorID to have select AuthorID in my view. After rebiuld I can see this select in Books/Create but it has no options. In my database I…
0
votes
2 answers

Error on executing T4 scaffolfing from EF6 model to views/controller in MVC 6 / DNX project (.xproj)

There is of course no such option as using customizable scaffolding from EF6 model to views/controller in DNX project's in newest MVC 6. But I've tried to use the PM console command Scaffold (aka Invoke-Scaffolder, from…
0
votes
0 answers

How to generate Radio Buttons With Scaffolding

I googled for it but I couldn't find it out also I couldn't find any resource for it or tutorials , I wanna make it sure if each and every controls can be populated mvc scaffolding or not. I am a beginner in mvc any help is appreciated. I guess it…
0
votes
2 answers

MVC5 with scaffolding; remove time from a datetime field

I am creating an MVC5 project which utilizes scaffolding and has an EDM as a model. I want to use server-side code to remove the time portion of my datetime fields rather than parsing it with JQuery. How do I achieve this?
0
votes
1 answer

Multiple entries with scaffolding

I am using asp.net web forms with c# and use scaffolding to create the views for adding entries to my database. Now to my question: Is there a way to add multiply entries (through scaffolding)? For example: I want it to be possible to add another…
arby1991
  • 3
  • 2
0
votes
2 answers

MVC5 Scaffolding Dropdowns Out the Box

I want to view, edit and create with drop-down list of my lookup relationships. Sometimes this works, sometimes it doesn't. It's a mystery that I'm hoping can be definitely solved here. Here's my POCO's for the lookup public class Color { …
0
votes
1 answer

Unable to retrieve metadata - MVC4 and Entity Framework

I'm building a MVC application and I'm using Entity Framework Code First. I have a Project.Web that containes my MVC files. I also have another project named Project.Data that contains my context as follows : public DataModel() :…
0
votes
3 answers

Why is my MVC ViewModel Empty?

Model: public class Service { public int Id { get; set; } public string Name { get; set; } public double Price { get; set; } } ViewModel: public class FullPrice { public IEnumerable Services { get; set; } } View: @model…
andrey1567
  • 97
  • 1
  • 13
0
votes
0 answers

Slightly more complex "create" form in ASP.NET w/Entity Framework and MVC

Here is a sample of my models. There is a Supply Receipt that holds custom models for Block, Grower, and a collection of SupplyReceiptLine: public class SupplyReceipt { [Key] public int Id { get; set; } [Required] public string…
Markus
  • 689
  • 1
  • 7
  • 14
0
votes
2 answers

Scaffolding Error - Building with Database First

Provided Error No connection string named 'Entities' could be found in the application config file. Explanation and Inquiry I know this question has been asked, but I have found that none of the answers are working for me, and I believe it has…
0
votes
1 answer

Regarding Primary Key/Foreign Key relationship created in Views

I am learning ASP.NET MVC. And I have created basic page which has two tables. Below is the model file Courses.cs. public class Courses { public int ID { get; set; } public string CourseName { get; set; } public string Description { get;…
0
votes
1 answer

EF 5, Stored Procedures and Scaffolding

I have a stored procedure already in the database, I create an Entity Data Model, select the stored procedure, import into entity model is selected. After creation go to model browser, double click on stored procedure under Function Imports and…
0
votes
0 answers

asp mvc 5 using webapi

I have started learning webApi in Mvc5. I tried my first project but unfortunately it doesn't work and I can't understand why. i have done these steps: 1- At first I created a database named Person in sql server 2- Then I added a table named Person…