Thread: Errata
View Single Post
  #6 (permalink)  
Old September 26th, 2010, 06:59 PM
frez frez is offline
Registered User
 
Join Date: Sep 2010
Posts: 5
Thanks: 0
Thanked 6 Times in 3 Posts
Default

Quote:
Originally Posted by Mossyman View Post
Hi, thats a very usefull errata, many thanks. One problem though on the page 61 tip, when I try to change the display names by adding a [DisplayName] attribute to the Dinner Partial class, when I start to type [DisplayName], it does not appear as an option in the intellisense?
I am using the System.ComponentModel.DataAnnotations reference and the [Required] and [StringLength] attributes work OK. Not sure what I am doing wrong?
You need to add a using System.ComponentModel to the Dinner partial class, then you can add the attribute, e.g. [DisplayName("Event Date")]
The Following User Says Thank You to frez For This Useful Post:
Mossyman (September 27th, 2010)