* MetaTable.cs: implemented Init - calls Init on all the columns
present in this instance.
* MetaModel.cs: constructor initializes FieldTemplateFactory after
it is instantiated.
RegisterContextCore first registers the context type, then creates
tables and finally calls Init on all the tables.
* MetaColumn.cs: added internal Init method - called by MetaModel
after context is registered and all tables are created and
registered.
* MetaChildrenColumn.cs: implemented ChildTable,
ColumnInOtherTable, GetChildrenListPath, GetChildrenPath and added
an internal Init method override. MonoTODO attributes stay until I
write tests for the class.
* FieldTemplateUserControl.cs: implemented ChildrenColumn,
ChildrenPath, Column, ForeignKeyColumn, ForeignKeyPath,
MetadataAttributes, Mode, Row, Table, SetHost
* FieldTemplateFactory.cs: GetFieldTemplateVirtualPath fixes
* DynamicControl.cs: implemented ApplyFormatInEditMode,
ConvertEmptyStringToNull, DataField, DataFormatString, HtmlEncode,
FormattingOptions, NullDisplayText, UIHint, OnInit, Render.
2009-09-18 Marek Habersack <[email protected]>
* TestsBasePage.cs: added an event ItemDataBinding, invoked
whenever an item is data bound.
2009-09-18 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/WebPages/ListView_DynamicControl_10.aspx,
Test/WebPages/ListView_DynamicControl_10.aspx.cs
2009-09-18 Marek Habersack <[email protected]>
* DynamicControlTest.cs: FieldTemplate_1 - fixed fake edit
postback for Mono.
svn path=/trunk/mcs/; revision=142161
* 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
* FieldTemplateFactoryTest.cs: added
* DynamicControlTest.cs: added TearDown method to clean up after
non-default field template tests.
Added tests for GetAttribute, HtmlEncode, FormattingOptions, Mode,
NullDisplayText, SetAttribute, ValidationGroup.
2009-07-14 Marek Habersack <[email protected]>
* AssertExtensions.cs: include full exception trace in the Fail
message
2009-07-14 Marek Habersack <[email protected]>
* FieldTemplateFactory.cs: implemented TemplateFolderVirtualPath
svn path=/trunk/mcs/; revision=137862
* DynamicControlTest.cs: added tests for ApplyFormatInEditMode,
Column, ConvertEmptyStringToNull, CssClass, DataField,
DataFormatString, FieldTemplate, Table, UIHint
2009-07-08 Marek Habersack <[email protected]>
* WebTest.cs: added new public property - TestBaseDir, to be used
by code which needs to access the files in the work dir.
2009-07-08 Marek Habersack <[email protected]>
* TestsSetup.cs: added the BuildPath helper method which converts
unix-style filesystem paths to the os-specific format.
svn path=/trunk/mcs/; revision=137568
* Added some resources to WebPages - a test web page for
DynamicControlTest and the required DynamicData scaffolding.
2009-07-03 Marek Habersack <[email protected]>
* Makefile: added more resources to the test assembly
2009-07-03 Marek Habersack <[email protected]>
* DynamicControlTest.cs: added
2009-07-03 Marek Habersack <[email protected]>
* DynamicDataContainerModelProvider.cs,
DynamicDataContainerTableProvider.cs: are generic classes now.
2009-07-03 Marek Habersack <[email protected]>
* IDynamicDataContainer.cs: became a generic interface.
* DynamicDataSource.cs; some reformatting.
DynamicDataSourceView is a generic class now.
* DynamicDataContainer.cs: IDynamicDataContainer is a generic
interface now.
2009-07-03 Marek Habersack <[email protected]>
* TestsSetup.cs: custom WebTest setup for DynamicData
* TestsBasePage.cs: a base class for all the web pages used by the
tests.
* MiscExtensions.cs: added some helper extensions for fishing out
controls from control trees.
* ITestDataContext.cs: GetTableData gets full set of query
arguments.
2009-07-03 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added. Necessary, because we need to set up
WebTest environment and it is done via an assembly-level custom
attribute.
svn path=/trunk/mcs/; revision=137369
* MetaModel.cs: implemented DynamicDataFolderVirtualPath
* DynamicDataRouteHandler.cs: implemented SetRequestMetaTable,
GetCustomPageVirtualPath, GetScaffoldPageVirtualPath and
guessed at implementation of CreateHandler.
2009-06-27 Marek Habersack <[email protected]>
* MetaModelTest.cs: added test for DynamicDataFolderVirtualPath
* DynamicDataRouteHandlerTest.cs: implemented tests for
CreateHandler (one of them isn't working atm),
GetCustomVirtualPagePath, GetScaffoldVirtualPagePath,
GetRequestMetaTable, SetRequestMetaTable
2009-06-26 Marek Habersack <[email protected]>
* DynamicDataRouteTest.cs: MyDataContext3 is safely registered in
the fixture setup method.
Enabled the GetTableFromRouteData3 and GetRouteData tests - the
work fine now.
Added test for the RouteHandler property.
* DynamicDataRouteHandlerTest.cs: added tests for the constructor
and the Model property.
2009-06-26 Marek Habersack <[email protected]>
* MetaModel.cs: RegisterContextCore preserves already registered
tables.
* DynamicDataRouteHandler.cs: GetRequestContext must not retrieve
route data from the routes collection (if the matching route
happened to be an instance of DynamicDataRoute it would initialize
its RouteHandler's Model property, which is not correct, according
to tests). Instead a new RouteData instance is created each time
we don't find any cached context.
* DynamicDataRoute.cs: the associated route handler is set its
Model property when we initialize for the first time.
GetRouteData checks whether route data returned by base class
relates to a table which exists in the current context. If no such
table exists, null is returned.
svn path=/trunk/mcs/; revision=137013
* RouteCollectionTest.cs, RouteTest.cs: added new tests for
GetVirtualPath
2009-06-25 Marek Habersack <[email protected]>
* PatternParser.cs: parameter name lookups must be
case-insensitive.
Null and empty (string) parameters are skipped when building query
part of the action path.
2009-06-25 Marek Habersack <[email protected]>
* LinqDataSource.cs: make ContextType not throw an exception when
ContextTypeName is not set, but rather return a null in that
case.
2009-06-25 Marek Habersack <[email protected]>
* MetaTableTest.cs: new GetVirtualPath tests.
* DynamicDataRouteTest.cs: added tests for route.Defaults
modifications on class init.
* DynamicDataRouteHandlerTest.cs: added
2009-06-25 Marek Habersack <[email protected]>
* MetaTable.cs: Fixes to make tests succeed.
* MetaModel.cs: added the GetDataFieldAttributes method for
retrieving attributes associated with data type/field.
Fixes to make tests succeed.
* MetaColumn.cs: refactoring - use
MetaModel.GetDataFieldAttributes instead of the local version.
* DynamicDataRouteHandler.cs: implemented GetRequestContext,
GetRequestMetaTable.
* DynamicDataRoute.cs: when the Action and Table properties are
set before one of GetVirtualPath or GetRouteData methods are
called for the first time, a check is made whether the Defaults
collection exists and whether it contains entries for Action and
Table. Initialization code makes sure those entries are inserted
into the dictionary in those cases.
svn path=/trunk/mcs/; revision=136875
* 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
* 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