Files
mono/mcs/class/System.Web.DynamicData/Test/Common/Baz.cs
T
Marek Habersack 47a0d24870 2009-09-15 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/WebPages/ListView_DynamicControl_09.aspx and
	Test/WebPages/ListView_DynamicControl_09.aspx.cs

2009-09-15  Marek Habersack  <[email protected]>

	* FieldTemplateFactoryTest.cs: implemented tests for
	BuildVirtualPath, GetFieldTemplateVirtualPath and PreprocessMode.

2009-09-15  Marek Habersack  <[email protected]>

	* MetaColumn.cs: DataTypeAttribtue created automatically for
	string columns, must be of type MultilineText for long strings.

	* FieldTemplateFactory.cs: implemented BuildVirtualPath,
	CreateFieldTemplate, GetFieldTemplateVirtualPath, PreprocessMode
	and fixed implementation of TemplateFolderVirtualPath.

2009-09-15  Marek Habersack  <[email protected]>

	* DataTypeAttribute.cs: implemented GetDataTypeName

2009-09-15  Marek Habersack  <[email protected]>

	* ListView.cs: CreateChildControls calls EnsureDataBound only if
	we're not in post-back and if data binding is required.

svn path=/trunk/mcs/; revision=141922
2009-09-14 23:24:54 +00:00

63 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using MonoTests.ModelProviders;
namespace MonoTests.Common
{
class Baz
{
// DO NOT change the order of properties - tests depend on it
// DO NOT change the column types - tests depend on it
public int Column1 { get; set; }
public int PrimaryKeyColumn1 { get; set; }
public string PrimaryKeyColumn2 { get; set; }
public bool PrimaryKeyColumn3 { get; set; }
public string CustomPropertyColumn1 { get; set; }
[UIHint ("UI Hint")]
public string CustomPropertyColumn2 { get; set; }
public int GeneratedColumn1 { get; set; }
[UIHint ("UI Hint")]
public int GeneratedColumn2 { get; set; }
[ReadOnly (true)]
public int ReadOnlyColumn { get; private set; }
[ReadOnly (false)]
public int ReadWriteColumn { get; private set; }
[DisplayFormat (NullDisplayText="Text")]
public DateTime NullDisplayTextColumn { get; set; }
[Required (ErrorMessage = "Custom error message")]
public int ErrorMessageColumn1 { get; set; }
[Required (ErrorMessage = "s")]
public int ErrorMessageColumn2 { get; set; }
[UIHint ("")]
public int EmptyHintColumn { get; set; }
[DynamicDataSortable (true)]
public int SortableColumn1 { get; set; }
[UIHint ("MyCustomUIHintTemplate")]
public string CustomUIHintColumn { get; set; }
public Baz ()
{
Column1 = 123;
PrimaryKeyColumn1 = 456;
PrimaryKeyColumn2 = "primary key value";
PrimaryKeyColumn3 = true;
}
}
}