Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 1. Secrets of Real World ASP.NET... > Understanding Model Metadata

1.2. Understanding Model Metadata

The heart of Dynamic Data is the metadata defined in the model. There are many attributes available to apply to the model to change how a data field is rendered to the user. The following highlights some of the more common attributes used. Note that the attributes are found in the System.ComponentModel and System.ComponentModel.DataAnnotations namespaces.

using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;

[MetadataType(typeof(ContactMetadata))]


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint