Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Page History: Data Annotation - .NET Framework

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: Wed, Aug 17, 2011, 1:19 PM


The following attributes require the System.ComponentModel or System.ComponentModel.DataAnnotations namespaces.

AttributeDescription
RequiredMarks a field as required a non-null, non-zero-length value
StringLength(maxLength)Specifies the maximum allowable length for a string field
DisplayName("label")Designates the text to be displayed via the Html.LabelFor helper

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.