Wrox Programmer Forums
BOOK: Professional ASP.NET MVC 2
This is the forum to discuss the Wrox book Professional ASP.NET MVC 2 by Jon Galloway, Scott Hanselman, Phil Haack, Scott Guthrie, Rob Conery; ISBN: Professional ASP.NET MVC 2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 5th, 2010, 07:15 PM
Registered User
Join Date: Nov 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default DinnerFormViewModel

Hello I'm working my way through NerdDinner and I really don't understand this part when creating the views for DinnerFormViewModel.

The book shows images of using m.Dinner.Title but then in the code that should be used it shows just useing m.Title which no longer exists when inheriting from DinnerFormViewModel.

Using m.Dinner. for everything works ok but the editing no longer works as I assume the fields are now named wrong? I fixed this issue by adding Title, Country, Address etc. properties to the view model and then going back to using just m.title. Is this how it is supposed to be done? I am very confused!

Any help would be appreciated
Old November 5th, 2010, 08:50 PM
Friend of Wrox
Join Date: Oct 2010
Posts: 106
Thanks: 1
Thanked 17 Times in 17 Posts

see Errata

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.