2009-07-11 Michael Barker <mike@middlesoft.co.uk>
[mono.git] / mcs / class / System.Web.DynamicData / System.Web.DynamicData / ChangeLog
1 2009-06-27  Marek Habersack  <mhabersack@novell.com>
2
3         * DynamicDataExtensions.cs: implemented ConvertEditedValue
4
5         * MetaModel.cs: implemented DynamicDataFolderVirtualPath
6
7         * DynamicDataRouteHandler.cs: implemented SetRequestMetaTable,
8         GetCustomPageVirtualPath, GetScaffoldPageVirtualPath and
9         guessed at implementation of CreateHandler.
10
11 2009-06-26  Marek Habersack  <mhabersack@novell.com>
12
13         * MetaModel.cs: RegisterContextCore preserves already registered
14         tables.
15
16         * DynamicDataRouteHandler.cs: GetRequestContext must not retrieve
17         route data from the routes collection (if the matching route
18         happened to be an instance of DynamicDataRoute it would initialize
19         its RouteHandler's Model property, which is not correct, according
20         to tests). Instead a new RouteData instance is created each time
21         we don't find any cached context.
22
23         * DynamicDataRoute.cs: the associated route handler is set its
24         Model property when we initialize for the first time.
25         GetRouteData checks whether route data returned by base class
26         relates to a table which exists in the current context. If no such
27         table exists, null is returned.
28
29 2009-06-25  Marek Habersack  <mhabersack@novell.com>
30
31         * MetaTable.cs: Fixes to make tests succeed.
32
33         * MetaModel.cs: added the GetDataFieldAttributes method for
34         retrieving attributes associated with data type/field.
35         Fixes to make tests succeed.
36
37         * MetaColumn.cs: refactoring - use
38         MetaModel.GetDataFieldAttributes instead of the local version.
39
40         * DynamicDataRouteHandler.cs: implemented GetRequestContext,
41         GetRequestMetaTable.
42
43         * DynamicDataRoute.cs: when the Action and Table properties are
44         set before one of GetVirtualPath or GetRouteData methods are
45         called for the first time, a check is made whether the Defaults
46         collection exists and whether it contains entries for Action and
47         Table. Initialization code makes sure those entries are inserted
48         into the dictionary in those cases.
49
50 2009-06-23  Marek Habersack  <mhabersack@novell.com>
51
52         * MetaTable.cs: constructor now takes ContextConfiguration instead
53         of a boolean and uses the config to determine value of the
54         ScaffoldAllTables property. Also, if context config is present,
55         makes sure to register the associated type description provider
56         (if any) with TypeDescriptor.
57
58         * MetaModel.cs: no longer uses local cache for description
59         providers. Uses TypeDescriptor.{Add,Get}Provider now.
60
61         * MetaColumn.cs: fixed Scaffold to match tests - IsGenerated and
62         IsCustomProperty take precedence over Table.ScaffoldAllTables.
63         GetDataFieldAttribute doesn't use AttributeCollection indexer, as
64         the latter would create a default instance of the requested
65         attribute, which is not what we want here.
66
67 2009-06-17  Marek Habersack  <mhabersack@novell.com>
68
69         * MetaTable.cs: fixed Scaffold implementation.
70         Added internal ScaffoldAllTables property.
71
72         * MetaColumn.cs: fixed TypeCode, MaxLength, Scaffold, UIHint
73         implementations.
74         Implemented IsLongString, IsBinaryData, IsReadOnly,
75         NullDisplayText, RequiredErrorMessage
76
77 2009-06-16  Marek Habersack  <mhabersack@novell.com>
78
79         * DynamicDataManager.cs, DynamicDataExtensions.cs: use new
80         DataBoundControl.DataSourceObject instead of
81         InternalGetDataSource.
82
83 2009-06-15  Marek Habersack  <mhabersack@novell.com>
84
85         * MetaColumn.cs: implemented ApplyFormatInEditMode, Attributes,
86         ConvertEmptyStringToNull, DataFormatString, DataTypeAttribute,
87         DefaultValue, Description, DisplayName, IsRequired,
88         IsFloatingPoint, IsInteger, IsString, TypeCode
89
90         * MetaTable.cs: use MetaModel.GetTypeDescriptor to retrieve
91         associated entity type attributes.
92
93         * MetaModel.cs: implemented registration of type metadata
94         cache. Metadata is provided by a set of TypeDescriptionProvider
95         instances (if ContextConfig is present for given model provider)
96         or by default type description provider (note that this
97         functionality is not implemented in
98         System.ComponentModel.TypeDescriptor yet!).
99
100 2009-06-12  Marek Habersack  <mhabersack@novell.com>
101
102         * MetaTable.cs: implemented correct detection of foreign key
103         columns.
104         Implemented IsReadOnly, SortColumn, SortDescending.
105
106 2009-06-10  Marek Habersack  <mhabersack@novell.com>
107
108         * MetaTable.cs: fixed DisplayName implementation.
109         Implemented GetPrimaryKeyString, GetQuery.
110
111 2009-06-09  Marek Habersack  <mhabersack@novell.com>
112
113         * MetaTable.cs: implemented more overloads of GetActionPath.
114         Implemented GetPrimaryKeyValues, GetActionPathFromRoutes,
115         Attributes, DisplayColumn, GetDisplayString.
116
117 2009-06-01  Marek Habersack  <mhabersack@novell.com>
118
119         * MetaModel.cs: GetModel throws InvalidOperationException on
120         missing model.
121         Implemented GetActionPath and GetTable.
122
123 2009-04-29  Marek Habersack  <mhabersack@novell.com>
124
125         * MetaTable.cs: implemented the DataContextType,
126         DataContextPropertyName properties and the ToString method.
127
128         * MetaColumn.cs: implemented the Scaffold, DisplayName,
129         SortExpression, UIHint properties and the ToString method.
130
131         * DynamicField.cs: implemented
132
133         * DynamicDataManager.cs: partially implemented RegisterControl.
134         Added internal AutoFieldGenerator class, used by RegisterControl
135         when dealing with GridView.
136         Implemented some properties.
137
138         * DynamicDataExtensions.cs: implemented GetTable and FindMetaTable
139
140         * DynamicControl.cs: implemented parts of the class.
141
142 2009-04-23  Marek Habersack  <mhabersack@novell.com>
143
144         * ContextConfiguration.cs: implemented all the methods and added a
145         parameterless constructor.
146
147 2008-10-21  Atsushi Enomoto  <atsushi@ximian.com>
148
149         * DynamicDataRouteHandler.cs, DynamicDataRoute.cs, MetaTable.cs:
150           ongoing implementation; resolve to page templates.
151
152 2008-10-17  Atsushi Enomoto  <atsushi@ximian.com>
153
154         * DynamicDataRouteHandler.cs, DynamicDataRoute.cs, MetaTable.cs,
155           MetaModel.cs : ongoing implementation.
156
157 2008-10-16  Atsushi Enomoto  <atsushi@ximian.com>
158
159         * DynamicDataManager.cs, DynamicDataRoute.cs,
160           FieldTemplateFactory.cs, MetaChildrenColumn.cs,
161           MetaColumn.cs, MetaForeignKeyColumn.cs, MetaModel.cs, MetaTable.cs:
162           ongoing implementation.
163
164 2008-10-14  Atsushi Enomoto  <atsushi@ximian.com>
165
166         *.cs : initial checkin. stubs.