2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
[mono.git] / mcs / class / System.Data / System.Data / ChangeLog
1 2003-03-27  Ville Palo <vi64pa@kolumbus.fi>
2
3         * ConstraintCollection.cs: Little fix.
4         * DataColumn.cs: Added new internal method SetUnique()
5         * UniqueConstraint.cs: some little fixes
6         
7 2003-03-26  Ville Palo <vi64pa@kolumbus.fi>
8
9         * DataRowCollection.cs: Bugfixes, implementation,...
10         
11 2003-03-26  Ville Palo <vi64pa@kolumbus.fi>
12
13         * DataColumn.cs: If DataType if set to something else than short, int
14         or long and AutoIncrement is true, AutoIncrement is must set to false.
15         
16 2003-03-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
17
18         * DataRow.cs:
19         (BeginEdit): fixed array bound problem when a column has been added.
20         (EndEdit): just assign proposed to current as proposed is set to null.
21         This also fixes another array boudn problem.
22
23 2003-03-21  Alan Tam <Tam@SiuLung.com>
24
25         * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
26         EndEdit and AcceptChanges to act correctly according to DataRowState
27         and DataRowVersion.
28         * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
29         attached and detached from the collection.
30
31 2003-03-20  Alan Tam <Tam@SiuLung.com>
32
33         * DataColumn.cs: Store empty string for Expression when null is passed in.
34         Classes generated by XSD.exe passes null by default.
35
36 2003-03-16  Ville Palo <vi64pa@kolumbus.fi>
37
38         * DataColumnCollection.cs: Tiny clean up
39
40 2003-03-16  Ville Palo <vi64pa@kolumbus.fi>
41
42         * DataColumn.cs: little fixes.
43         * DataColumnCollection.cs: Lots of little fixes and improvments.
44         
45 2003-03-12  Alan Tam <Tam@SiuLung.com>
46
47         * DataSet.cs: Fixed a bug that the file written does not close correctly.
48
49 2003-03-08  Alan Tam <Tam@SiuLung.com>
50
51         * DataRelationCollection.cs: Removed the mis-overridden methods
52         * DataRow.cs: Fixed an attribute
53         * DataSet.cs: Fixed the modifiers
54
55 2003-03-06  Aleksey Demakov <avd@openlinksw.com>
56
57         * DataTableCollection.cs: The Contains (string name),
58         IndexOf (string name) methods, and item[string name] indexer
59         now behave more like .NET with respect to case-sensitivity.
60         That is if there is an exactly matching item then this one is used.
61         If there is only one item differing in case then it used.
62         If there are more than one item differing in case then
63         Contains returns false, IndexOf returns -1, and item[]
64         throws an ArgumentException.
65
66 2003-02-28  Ville Palo <vi64pa@kolumbus.fi>
67
68         * ExpressionElement.cs: More implementation. 
69         
70 2003-02-28  Alan Tam <Tam@SiuLung.com>
71         * DataSet.cs: Changed WriteTable so that it now calls the newly written
72         WriteObjectXml to direct the call to the respective XmlConvert method.
73         This fixes the wrong format written to XML files of bool, float,
74         double, DateTime and TimeSpan types.
75
76 2003-02-25  Alan Tam <Tam@SiuLung.com>
77
78         * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
79         * DataRelationCollection.cs: Implemented AddRange and Contains.
80         Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
81         Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
82         Reimplemented most Add methods to eliminate duplicated checks.
83         Centralized RelationName generation procedure in GetNextDefaultRelationName.
84
85 2003-02-25  Alan Tam <Tam@SiuLung.com>
86
87         * DataColumn.cs: Fixed wrong storage representation of Expression
88         (using empty string instead of null) so that ToString() returns nothing.
89         * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
90         auto column naming now works as expected. Reimplemented some Add methods
91         to eliminate code duplication.
92
93 2003-02-19  Ville Palo <vi64pa@kolumbus.fi>
94
95         * DataTable.cs: DataTable.CaseSensitive follows parent 
96         DataSet.CaseSensitive property if DataTable.CaseSensitive has never
97         been changed directly from DataTable
98         
99 2003-02-19  Ville Palo <vi64pa@kolumbus.fi>
100
101         * DataSet.cs: When CaseSensitive property is changed all of the Tables
102         of DataSet have to change too
103         
104 2003-02-19  Daniel Morgan <danmorg@sc.rr.com>
105
106         * InternalDataCollectionBase.cs: revert change to field
107         to fix build
108         
109         * DataViewManager.cs
110         * DataView.cs
111         * DataTable.cs
112         * DataSet.cs: commented use of DesignerAttribute
113         because it broke the build.  According to MSDN,
114         DesignerAttribute does not have a zero-argument constructor
115
116 2003-02-18  Ville Palo <vi64pa@kolumbus.fi>
117
118         * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
119         
120 2003-02-18  Alan Tam <Tam@SiuLung.com>
121
122         * DataRow.cs: Implemented GetParentRow and GetParentRows.
123         * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
124                       OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
125                       RaisePropertyChanging.
126         * DataTable.cs: Implemented NewRowArray.
127         * DataTablePropertyDescriptor: Fixed a modifier.
128         * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
129         * PropertyCollection.cs: Minor fix.
130         * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs 
131         * DataRelation.cs DataRelationCollection.cs DataRow.cs
132         * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
133         * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
134         * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
135         * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
136         * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
137         
138 2003-02-08  Ville Palo <vi64pa@koti.soon.fi>
139
140         * ExpressionElement.cs: More implementation
141         
142 2003-02-05  Alan Tam <Tam@SiuLung.com>
143
144         * DataSet.cs: Added framework for DataSet.Update Implemented missing 
145         methods GetSchemaSerializable, GetSerializationData, 
146         ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
147         for DataSet
148         * DataTable.cs: Implemented missing methods CreateInstance and 
149         GetRowType for DataTable
150         
151 2003-02-03  Ville Palo <vi64pa@koti.soon.fi>
152
153         * DataSet.cs: Implemented private method MapType for 
154         mapping datatypes for XmlSchema
155         
156 2003-02-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
157
158         * DataView.cs: implemented Dispose.
159
160 2003-01-30  Ville Palo <vi64pa@koti.soon.fi>
161
162         * ExpressionElement.cs: Added new file. This file is for parsing
163           and DataData.Select () -methods and DataColumn.Expression -property
164         * DataTable.cs: Implemented Select(string) -method      
165         
166 2003-01-28  Ville Palo <vi64pa@koti.soon.fi>
167
168         * DataSet.cs: One little fix to writing xml
169         
170 2003-01-27  Ville Palo <vi64pa@koti.soon.fi>
171
172         * XmlSchemaMapper.cs: Some fixes.
173         * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
174
175                 
176 2003-01-24  Ville Palo <vi64pa@koti.soon.fi>
177
178         * UniqueConstraint.cs: Do not set columns Unique property true 
179         as a default.
180         * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
181         
182 2003-01-18  Ville Palo <vi64pa@koti.soon.fi>
183
184         * DataTableCollection.cs: Now names new DataTable if it doesn't 
185         already have a name.
186         
187 2003-01-17  Ville Palo <vi64pa@koti.soon.fi>
188
189         * XmlSchemaMapper.cs: Improvments.
190         * XmlConstaints.cs: Added more constants.
191         * DataSet.cs: Improvments of reading and writing xml
192         * DataColumn.cs: Added default values of properties.
193                 
194 2003-01-14  Ville Palo <vi64pa@koti.soon.fi>
195
196         * XmlSchemaMapper.cs: Some improvments
197         
198 2003-01-13  Ville Palo <vi64pa@koti.soon.fi>
199
200         * DataRowCollection.cs: Added IndexOutOfRangeException
201         * DataTableCollection.cs: Added OnCollectionChanging and 
202         OnCollectionChanged events.
203         * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
204         * DataTable.cs: Implemented Copy () and Clone () methods.
205         * XmlDataLoader.cs: some fixes.
206         * XmlSchemaMapper.cs: comments.
207         
208 2003-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
209
210         * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
211
212 2003-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
213
214         * DataColumnPropertyDescriptor.cs: fixed typo.
215         * DataViewManagerListItemTypeDescriptor.cs: added new internal property
216         to get the DataViewManager and removed TablePD class.
217         * DataTablePropertyDescriptor.cs: TablePD class is now this one as
218         suggested by danmorg.
219
220 2003-01-06  Ville Palo <vi64pa@koti.soon.fi>
221
222         * XmlDataLoader.cs: Moved diffgram stuff to new internal class
223         XmlDiffLoader.
224         * XmlDiffLoader.cs: new class for diffgrams. Added handling of 
225         diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
226         
227 2003-01-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
228
229         * DataView.cs: made dataViewManager internal.
230         * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
231         properties of the object, but the values of the columns present in a
232         row.
233         
234         * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
235         which returns a PropertyDescriptorCollection. Created a new class
236         derived from PropertyDescriptor that treats Table as an object whose
237         properties are DataRowView.
238
239 2003-01-04  Ville Palo <vi64pa@koti.soon.fi>
240
241         * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
242         
243 2003-01-04  Ville Palo <vi64pa@koti.soon.fi>
244
245         * DataColumn.cs: ExtendedProperties is by default !null-
246         
247 2003-01-04  Ville Palo <vi64pa@koti.soon.fi>
248
249         * DataColumnCollection.cs: Add (DataColumn Column) -method didn't 
250         set column's ordinal.
251         
252 2003-01-02  Ville Palo <vi64pa@koti.soon.fi>
253
254         * DataSet.cs: 
255         * XmlDataLoader.cs: XmlReader closing fixes.
256         * XmlSchemaReader.cs: Added support for ref=
257         
258 2003-01-01  Ville Palo <vi64pa@koti.soon.fi>
259
260         * DataSet.cs: 
261           - Added XmlReader and XmlWriter Closing.
262           - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
263         * XmlSchemaMapper.cs
264           - Much better way IMHO  to map xmlschema than the old one in 
265             DataSet.cs. Its, more flexible, cleaner, ...
266                         
267 2002-12-29  Ville Palo <vi64pa@koti.soon.fi>
268
269         * XmlDataLoader.cs: Reading diffgrams.
270         
271 2002-12-29  Ville Palo <vi64pa@koti.soon.fi>
272
273         * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
274         * DataTable.cs: Added ChanginDataColumn () for triggering 
275         DataColumnChanging event
276         
277 2002-12-28  Ville Palo <vi64pa@koti.soon.fi>
278
279         * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
280         
281 2002-12-28  Ville Palo <vi64pa@koti.soon.fi>
282
283         * DataSet.cs: Indentations to WriteXml ()
284         
285 2002-12-27  Ville Palo <vi64pa@koti.soon.fi>
286
287         * DataSet.cs:
288         * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
289         class XmlDataLoader.cs
290         
291 2002-12-19  Ville Palo <vi64pa@koti.soon.fi>
292
293         * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
294         
295 2002-12-18  Ville Palo <vi64pa@koti.soon.fi>
296
297         * DataSet.cs: Started to implement ReadXml-methods.
298         
299 2002-12-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
300
301         * DataSet.cs: implemented DefaultViewManager and GetList.
302
303         * DataViewManager.cs: a bit of work on IList and ITypedList needed by
304         DataList in System.Web.
305
306         * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
307         DataViewManager.
308
309 2002-12-16  Ville Palo <vi64pa@koti.soon.fi>
310
311         * DataRow.cs
312         * DataTable.cs: Fixed NullException (rollback -event)
313         * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
314         
315 2002-12-15  Ville Palo <vi64pa@koti.soon.fi>
316
317         * DataRow.cs:
318         * DataRowCollection.cs: Moved event triggering from DataRow to
319         DataRowCollection.
320         
321 2002-12-09  Ville Palo <vi64pa@koti.soon.fi>
322
323         * DataSet.cs: Little fix to WriteTable () -method 
324         and DoReadXmlSchema () -method.
325         
326 2002-12-06  Ville Palo <vi64pa@koti.soon.fi>
327
328         * DataSet.cs: Clean up to reading xmlschema. This looks much better 
329         now (work better too), but it not working correctly yet.
330         
331 2002-12-04  Ville Palo <vi64pa@koti.soon.fi>
332
333         * DataRow.cs: 
334         * DataRowCollection.cs: Added some event handlins stuff.
335         * DataSet.cs: Some fixes.
336         * DataTable.cs: Added event handlers.
337         
338 2002-11-30  Ville Palo <vi64pa@koti.soon.fi>
339
340         * DataRowChangeEventArgs.cs: Implemented Action and Row properties 
341         
342 2002-11-30  Ville Palo <vi64pa@koti.soon.fi>
343
344         * System.Data/DataRow.cs: Added internal property XmlDataID
345         
346 2002-11-29  Ville Palo <vi64pa@koti.soon.fi>
347
348         * DataSystem.Data.DataTableCollection.cs:
349         Removed HashTable. There could be situations where DataTable
350         is added to collection before it hava TableName. So using 
351         HashTable is impossible.
352         
353 2002-11-19  Carlos Guzmán Álvarez <carlosga@telefonica.net>
354
355         * DataRow.cs: an object that is equal to null 
356         should be allowed to be set in this indexer too
357         to be like .NET
358
359 2002-11-06  Daniel Morgan <danmorg@sc.rr.com>
360
361         * DataColumnPropertyDescriptor.cs: added file
362         
363         * System.Data/DataRowView.cs: started implementation
364         
365         * DataTable.cs: stubbed more interfaces.  Implemented
366         IListSource.GetList()
367         
368         * DataView.cs: stubbed more interfaces.  Implemented
369         some properties and methods: GetEnumerator(), 
370         ITypedList.GetItemProperties, Item indexer, CopyTo()
371
372 2002-05-18  Nick Drochak  <ndrochak@gol.com>
373
374         * DataRow.cs: Fix typo.