How To Scaffold a View Model in MVC 5
问题 I'm trying to work on a simple application. I have three SQL tables brought in through Entity Framework and had the models created automatically. I want to be able to scaffold out the Create/Details/Edit etc. views automatically in Visual Studio. I can do this automatically when I scaffold from a single model (like Name alone), but can't get anywhere when using a View Model as a source. Here are my models Name public partial class Name { public Name() { this.Addresses = new HashSet<Address>()