Commit Graph
64 Commits
Author SHA1 Message Date
Pablo Ruiz Garcia 47a7aa40fd [API] Fix for bug: https://bugzilla.novell.com/show_bug.cgi?id=648888 2010-10-26 01:31:34 +08:00
David Stone 5a4017e70d Add System.ComponentModel.DisplayAttribute 2010-08-31 19:40:14 +02:00
Marek Habersack a730b9b7c7 Implemented the StringLengthAttribute 2010-08-21 00:45:46 +02:00
Marek Habersack 0be4c2ba14 All ValidationAttribute and RangeAttribute 3.5 and 4.0 tests run without errors now. 2010-08-20 23:50:41 +02:00
Marek Habersack 3e5333e1c3 Implemented the RangeAttribute class. 2010-08-20 02:23:06 +02:00
Marek Habersack 0c33751079 2010-05-26 Marek Habersack <[email protected]>
* ValidationAttribute.cs: cope with null/empty ErrorMessageString
	in FormatErrorMessage

svn path=/trunk/mcs/; revision=157941
2010-05-26 09:51:48 +00:00
Marek Habersack 7083f512a0 2010-05-12 Marek Habersack <[email protected]>
* ValidationException.cs: partially implemented

    	* ValidationAttribute.cs: implemented

    	* RequiredAttribute.cs: implemented. Fixes bug #604100

    	* AssociationAttribute.cs, ConcurrencyCheckAttribute.cs,
    	CustomValidationAttribute.cs, EditableAttribute.cs,
    	EnumDataTypeAttribute.cs, IValidatableObject.cs,
    	ValidationContext.cs, ValidationResult.cs: added

svn path=/trunk/mcs/; revision=157187
2010-05-12 02:42:39 +00:00
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
Marek Habersack d9f9fea847 2009-06-23 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added InternalsVisibleTo for
	System.ComponentModel.DataAnnotations (needs
	ReflectionPropertyDescriptor)

2009-06-23  Marek Habersack  <[email protected]>

	* MetaTable.cs: constructor now takes ContextConfiguration instead
	of a boolean and uses the config to determine value of the
	ScaffoldAllTables property. Also, if context config is present,
	makes sure to register the associated type description provider
	(if any) with TypeDescriptor.

	* MetaModel.cs: no longer uses local cache for description
	providers. Uses TypeDescriptor.{Add,Get}Provider now.

	* MetaColumn.cs: fixed Scaffold to match tests - IsGenerated and
	IsCustomProperty take precedence over Table.ScaffoldAllTables.
	GetDataFieldAttribute doesn't use AttributeCollection indexer, as
	the latter would create a default instance of the requested
	attribute, which is not what we want here.

2009-06-23  Marek Habersack  <[email protected]>

	* ValidationAttribute.cs: error message must not ever be empty.

	* UIHintAttribute.cs: do not throw NIEX from the constructor.

	* DataTypeAttribute.cs: implemented correct DisplayFormat
	intialization for DataType.Time.

	* AssociatedMetadataTypeTypeDescriptor.cs: implemented retrieving
	attributes of the associated metadata type, as well as merging of
	attribute collections between metadata and main type properties.

	* AssociatedMetadataTypePropertyDescriptor.cs: added. Helper class
	which merges attributes from the metadata type (if any) with those
	associated with property from the "main" type.

2009-06-23  Marek Habersack  <[email protected]>

	* System.ComponentModel.DataAnnotations.dll.sources: added
	System.ComponentModel.DataAnnotations/AssociatedMetadataTypePropertyDescriptor.cs

2009-06-23  Marek Habersack  <[email protected]>

	* TypeDescriptor.cs: do not wrap DefaultTypeDescriptionProvider.
	Implemented GetAttributes and GetProperties in
	DefaultTypeDescriptor.

	* AttributeCollection.cs: make sure that attrList is never null.

svn path=/trunk/mcs/; revision=136732
2009-06-23 18:38:38 +00:00
Marek Safar 6f1d5e5874 More work on 4.0 profile
svn path=/trunk/mcs/; revision=135454
2009-06-04 16:56:17 +00:00
Marek Habersack ae9ca89d49 _really_ fix the build
svn path=/trunk/mcs/; revision=133149
2009-04-30 01:28:03 +00:00
Marek Habersack 1934076617 Fix the build
svn path=/trunk/mcs/; revision=133148
2009-04-30 01:17:44 +00:00
Marek Habersack 30140fbbfd 2009-04-29 Marek Habersack <[email protected]>
* MetaTable.cs: implemented the DataContextType,
    	DataContextPropertyName properties and the ToString method.

    	* MetaColumn.cs: implemented the Scaffold, DisplayName,
    	SortExpression, UIHint properties and the ToString method.

    	* DynamicField.cs: implemented

    	* DynamicDataManager.cs: partially implemented RegisterControl.
    	Added internal AutoFieldGenerator class, used by RegisterControl
    	when dealing with GridView.
    	Implemented some properties.

    	* DynamicDataExtensions.cs: implemented GetTable and FindMetaTable

    	* DynamicControl.cs: implemented parts of the class.

    2009-04-29  Marek Habersack  <[email protected]>

    	* DataBoundControl.cs: added InternalGetDataSource method, used by
    	DynamicData

    2009-04-29  Marek Habersack  <[email protected]>

    	* AssemblyInfo.cs: added InternalsVisibleTo for
    	System.Web.DynamicData

    2009-04-29  Marek Habersack  <[email protected]>

    	* Test/System.Web.DynamicData.ModelProviders/TableProviderTest.cs:
    	added

    	* System.Web.DynamicData_test.dll.sources: added
    	System.Web.DynamicData/DynamicDataManagerTest.cs,
    	System.Web.DynamicData/DynamicDataExtensionsTest.cs,
    	System.Web.DynamicData.ModelProviders/TableProviderTest.cs

    	* System.Web.DynamicData.dll.sources: added
    	System.Web.DynamicData.ModelProviders/DLinqAssociationProvider.cs
    	System.Web.DynamicData.ModelProviders/DLinqColumnProvider.cs
    	System.Web.DynamicData.ModelProviders/DLinqDataModelProvider.cs
    	System.Web.DynamicData.ModelProviders/DLinqTableProvider.cs and
    	removed
    	System.Web.DynamicData.ModelProviders/DLinqDataModelProviders.cs

    2009-04-29  Marek Habersack  <[email protected]>

    	* TableProvider.cs: implemented

    	* DLinqDataModelProvider.cs: renamed from
    	DLinqDataModelProviders.cs and moved some classes to separate
    	files.

    	* DLinqTableProvider.cs: moved to here from
    	DLinqDataModelProvider.cs

    	* DLinqColumnProvider.cs: moved to here from
    	DLinqDataModelProvider.cs

    	* DLinqAssociationProvider.cs: added

    2009-04-29  Marek Habersack  <[email protected]>

    	* DataBinder.cs: GetPropertyValue must throw also if propName is
    	empty.

    2009-04-23  Marek Habersack  <[email protected]>

    	* ContextConfiguration.cs: implemented all the methods and added a
    	parameterless constructor.

    2009-04-23  Marek Habersack  <[email protected]>

    	* System.Web.DynamicData_test.dll.sources: added
    	System.Web.DynamicData/ContextConfigurationTest.cs

    	* Makefile: tests need to be linked with
    	System.ComponentModel.DataAnnotations.dll

    2009-04-23  Marek Habersack  <[email protected]>

    	* AssociatedMetadataTypeTypeDescriptor.cs: added - doesn't add any
    	real functionality yet.

    	* AssociatedMetadataTypeTypeDescriptionProvider.cs: implemented
    	all the methods.

    2009-04-23  Marek Habersack  <[email protected]>

    	* System.ComponentModel.DataAnnotations_test.dll.sources: added

    	* System.ComponentModel.DataAnnotations.dll.sources: added
    	System.ComponentModel.DataAnnotations/AssociatedMetadataTypeTypeDescriptor.cs

    	* Makefile: enabled tests

    2009-04-23  Marek Habersack  <[email protected]>

    	* ContextConfigurationTest.cs: added

svn path=/trunk/mcs/; revision=133003
2009-04-29 13:17:39 +00:00
Atsushi Eno 2b9876326a initial System.ComponentModel.DataAnnotations checkin.
(DynamicData dependency)


svn path=/trunk/mcs/; revision=115802
2008-10-14 18:31:56 +00:00