13 Commits
Author SHA1 Message Date
Marek Safar c2169c0121 [System.Core][System.ComponentModel.DataAnnotations] Update strings 2017-04-13 17:04:40 +02:00
Marek Safar 79fa40e7f2 Remove referencesource submodule and move sources to mcs/class/referencesource
This simplified PR workflow and makes branching easier
2016-05-03 13:34:32 +02:00
Marek Safar ab47527e0f [bcl] Redo referencesource resource string integration to not depend on mcs 2016-03-04 13:44:16 +01:00
Marek Safar 8acf24a38c Bump reference sources 2015-12-07 09:21:41 +01:00
Marek Safar 2a02d63b50 [System.ComponentModel.DataAnnotations] Remove unused types 2015-05-12 14:39:05 +02:00
Marek Safar c7405e6ca0 [System.ComponentModel.DataAnnotations] Replace with .net implementation 2014-11-24 20:34:18 +01:00
Marek Safar 563a83943e [System.ComponentModel.DataAnnotations] Add UrlAttribute type. 2014-05-15 19:44:20 +02:00
Marek Safar 6cc18cd797 Implement FilterUIHintAttribute 2013-02-11 13:33:17 +01:00
David Stone 5a4017e70d Add System.ComponentModel.DisplayAttribute 2010-08-31 19:40:14 +02: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
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