Commit Graph
4 Commits
Author SHA1 Message Date
Marek Habersack 84040b65ab 2009-06-18 Marek Habersack <[email protected]>
* MetaColumnTest.cs: added test for SortExpression

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

	* DynamicDataContainerColumnProvider.cs: added setting of
	IsSortable

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

	* Test/DataSource/DynamicDataColumn.cs: added Sortable property.

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

	* TestDataColumn.cs: mark the column as sortable based on value of
	the DynamicDataSortable attribute.

	* Baz.cs: added a sortable column.

svn path=/trunk/mcs/; revision=136386
2009-06-18 09:21:04 +00:00
Marek Habersack efcfa151e4 2009-06-17 Marek Habersack <[email protected]>
* MetaColumnTest.cs: added another data context.
    	Added tests for EntityTypeProperty, HtmlEncode, IsBinaryData,
    	IsCustomProperty, IsFloatingPoint, IsForeignKeyComponent,
    	IsGenerated, IsInteger, IsLongString, IsPrimaryKey, IsReadOnly,
    	IsString, MaxLength, Model, Name, NullDisplayText, Provider,
    	RequiredErrorMessage, Scaffold, Table, TypeCode, UIHint.

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

    	* DynamicDataStringLengthAttribute.cs: added

    	* DynamicDataContainerColumnProvider.cs: implemented
    	EntityTypeProperty, IsCustomProperty, IsGenerated, MaxLength.

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

    	* MetaTable.cs: fixed Scaffold implementation.
    	Added internal ScaffoldAllTables property.

    	* MetaColumn.cs: fixed TypeCode, MaxLength, Scaffold, UIHint
    	implementations.
    	Implemented IsLongString, IsBinaryData, IsReadOnly,
    	NullDisplayText, RequiredErrorMessage

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

    	* System.Web.DynamicData_test.dll.sources: added
    	Common/FooNoScaffold.cs, Common/TestDataContext2.cs,
    	ModelProviders/DynamicDataStringLengthAttribute.cs

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

    	* MetaColumnTest.cs: added

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

    	* TestDataContext.cs: added new tables

    	* BazColumnAttributes.cs, BazDataTypeDefaultTypes.cs,
    	FooWithMetadataType.cs: added

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

    	* MetaColumn.cs: implemented ApplyFormatInEditMode, Attributes,
    	ConvertEmptyStringToNull, DataFormatString, DataTypeAttribute,
    	DefaultValue, Description, DisplayName

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

    	* MetaTable.cs: use MetaModel.GetTypeDescriptor to retrieve
    	associated entity type attributes.

    	* MetaModel.cs: implemented registration of type metadata
    	cache. Metadata is provided by a set of TypeDescriptionProvider
    	instances (if ContextConfig is present for given model provider)
    	or by default type description provider (note that this
    	functionality is not implemented in
    	System.ComponentModel.TypeDescriptor yet!).

svn path=/trunk/mcs/; revision=136272
2009-06-17 00:08:11 +00:00
Marek Habersack 5776009840 2009-06-12 Marek Habersack <[email protected]>
* MetaTableTest.cs: tests use single data model provider now.
	Implemented tests for IsReadOnly, ListActionPath, Model, Name,
	Provider, Scaffold, SortColumn, SortDescending, ToString.
	Fixed ForeignKeyColumnNames test.

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

	* TestDataContainer.cs: GetTables uses an object of the associated
	data type to create table collection.

	* TestDataColumn.cs: foreign key columns are determined using a
	custom attribute instead of a name now. This makes it possible to
	specify which table.column they are associated with.

	* FooDisplayColumnAttribute.cs: changed sortDescending to true in
	class attributes.

	* AssociatedBar.cs, AssociatedFoo.cs, FooEmptySortColumn.cs,
	FooMisnamedSortColumn.cs, FooNoScaffold.cs, FooReadOnly.cs,
	ITestDataContext.cs, TestDataContext.cs: added

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

	* MetaTable.cs: implemented correct detection of foreign key
	columns.
	Implemented IsReadOnly, SortColumn, SortDescending.

svn path=/trunk/mcs/; revision=135997
2009-06-12 13:14:49 +00:00
Marek Habersack c0aae4dbed 2009-06-10 Marek Habersack <[email protected]>
* TestDataColumn.cs: added detection of foreign key columns.

    	* FooWithDefaults.cs: added foreign key columns

    	* FooDisplayName.cs, FooDisplayNameEmptyName.cs,
    	FooSettableDefaults.cs: added

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

    	* MetaTable.cs: fixed DisplayName implementation.
    	Implemented GetPrimaryKeyString, GetQuery.

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

    	* System.Web.DynamicData_test.dll.sources: added
    	Common/FooDisplayName.cs
    	Common/FooDisplayNameEmptyName.cs
    	Common/FooSettableDefaults.cs

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

    	* MetaTableTest.cs: added more table contexts.
    	Added tests for: Attributes, Columns, DataContextPropertyName,
    	DataContextType, DisplayName, EntityType, ForeignKeyColumnNames
    	(doesn't work on .NET), GetPrimaryKeyString, GetQuery,
    	HasPrimaryKey,

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

    	* MetaTableTest.cs: added two more tables for various kinds of
    	tests (in fixture setup).
    	More tests for GetActionPath.
    	Tests for GetPrimaryKeyValues, DisplayColumn, Attributes,
    	GetDisplayString, GetColumn, TryGetColumn

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

    	* Baz.cs, BazNoStrings.cs, BazNoStringsNoPrimary.cs,
    	FooDisplayColumnAttribute.cs, FooEmpty.cs,
    	FooEmptyDisplayColumnAttribute.cs,
    	FooInvalidDisplayColumnAttribute.cs, FooWithToString.cs,
    	TestDataColumn.cs, TestDataContainer.cs, TestDataTable.cs: added

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

    	* MetaTable.cs: implemented more overloads of GetActionPath.
    	Implemented GetPrimaryKeyValues, GetActionPathFromRoutes,
    	Attributes, DisplayColumn, GetDisplayString.

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

    	* MetaTableTest.cs: added two more tables for various kinds of
    	tests (in fixture setup).
    	More tests for GetActionPath.
    	Tests for GetPrimaryKeyValues.

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

    	* MetaTable.cs: implemented more overloads of GetActionPath.
    	Implemented GetPrimaryKeyValues.
    	Implemented GetActionPathFromRoutes.

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

    	* Utils.cs: added two BuildActionName methods to make building
    	action paths for testing more compact.

    	* FooNoPrimaryColumns.cs, FooNoDefaultsWithPrimaryKey.cs: added

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

    	* System.Web.DynamicData_test.dll.sources: added
    	Common/FooNoDefaultsWithPrimaryKey.cs
    	Common/FooNoPrimaryColumns.cs

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

    	* Utils.cs: added.
    	  Moved GetModel here from MetaModelTest.cs
    	  Added RegisterContext methods.

    	* FooWithDefaultsContainer.cs,
    	FooWithDefaultsColumn.cs,FooWithDefaultsTable.cs,
    	FooWithDefaults.cs: added

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

    	* MetaTableTest.cs: added.

svn path=/trunk/mcs/; revision=135844
2009-06-10 13:42:36 +00:00