Commit Graph
7 Commits
Author SHA1 Message Date
Marek Habersack 047b8446d4 [DataAnnotations] Implemented the Validator and CustomValidationAttribute 4.0 classes 2011-03-30 10:19:44 +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 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
Atsushi Eno 2b9876326a initial System.ComponentModel.DataAnnotations checkin.
(DynamicData dependency)


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