Files
Marek Habersack 0878d95699 2009-07-14 Marek Habersack <[email protected]>
* FieldTemplateFactoryTest.cs: added

    	* DynamicControlTest.cs: added TearDown method to clean up after
    	non-default field template tests.
    	Added tests for GetAttribute, HtmlEncode, FormattingOptions, Mode,
    	NullDisplayText, SetAttribute, ValidationGroup.

    2009-07-14  Marek Habersack  <[email protected]>

    	* AssertExtensions.cs: include full exception trace in the Fail
    	message

    2009-07-14  Marek Habersack  <[email protected]>

    	* FieldTemplateFactory.cs: implemented TemplateFolderVirtualPath

svn path=/trunk/mcs/; revision=137862
2009-07-14 13:57:54 +00:00

25 lines
626 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Drawing;
using System.Linq;
using System.Web;
using System.Web.DynamicData;
namespace MonoTests.DataObjects
{
public class Employee
{
public string FirstName { get; set; }
[UIHint ("CustomFieldTemplate")]
[DisplayFormat (ConvertEmptyStringToNull=true, NullDisplayText="No value for this column")]
public string LastName { get; set; }
[DisplayFormat (ApplyFormatInEditMode=true, DataFormatString="Boolean value: {0}")]
public bool Active { get; set; }
public Color FavoriteColor { get; set; }
}
}