Thread: Errata
View Single Post
  #5 (permalink)  
Old September 26th, 2010, 06:49 PM
Mossyman Mossyman is offline
Registered User
 
Join Date: Sep 2010
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default [DisplayName] attribute problems?

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?