f8241bca8551f1dee9a58c15bd328225ee23d9e0
[mono.git] / mcs / class / System.Data / System.Data / ChangeLog
1 2005-01-31  Atsushi Enomoto  <atsushi@ximian.com>
2
3         * DataView.cs :some interface implementations.
4
5 2005-01-28  Atsushi Enomoto  <atsushi@ximian.com>
6
7         * DataView.cs : Add to table only when the row is not in the table.
8
9 2005-01-28  Atsushi Enomoto  <atsushi@ximian.com>
10
11         * DataView.cs : implemented FindRows() (btw we should not use
12           DataTable since there are detached rows by AddNew().)
13
14 2005-01-28  Atsushi Enomoto  <atsushi@ximian.com>
15
16         * DataView.cs :
17           Code cleanup: privatify some members, remove unused methods.
18           Some event-based invocation methods should not raise NotImplemented.
19
20 2005-01-28  Atsushi Enomoto  <atsushi@ximian.com>
21
22         * DataSet.cs : ReadXml() became closer to MS behavior, being hacky.
23
24 2005-01-28  Atsushi Enomoto  <atsushi@ximian.com>
25
26         * XmlSchemaDataImporter.cs : empty element is not regarded as a column.
27
28 2005-01-28  Atsushi Enomoto  <atsushi@ximian.com>
29
30         * UniqueConstraint.cs : mostly reverted the previous patch + check
31           IsPrimaryKey before validation.
32
33 2005-01-28  Atsushi Enomoto  <atsushi@ximian.com>
34
35         * DataView.cs : Fixed duplicate insertion to Hashtable.
36         * UniqueConstraint.cs : Unique constrained pair of columns could be
37           nullable.
38
39 2005-01-27  Atsushi Enomoto  <atsushi@ximian.com>
40
41         * DataView.cs :
42           Don't do anything for Sort/ApplyDefaultSort/RowFilter/RowStateFilter
43           when the same value is being set.
44           Examined UpdateIndex() and marked FIXME where MS does not invoke it.
45           Removed unused OnColumnChanged().
46           Now store rowViewPool and reuse DataRowView objects.
47           Optimized UpdateIndex() - avoid ArrayList. Avoid Haashtable.Rehash().
48
49 2005-01-27  Atsushi Enomoto  <atsushi@ximian.com>
50
51         * DataViewSettings.cs : no MonoTODO anymore.
52         * DataViewManager.cs : pass itself to new DataView() (new ctor).
53         * DataRowView.cs : GetHashCode() returns its Row's hash.
54         * DataTablePropertyDescriptor.cs : use new ctor().
55         * DataView.cs : added new ctor()s that accept DataViewManager.
56
57 2005-01-27  Atsushi Enomoto  <atsushi@ximian.com>
58
59         * DataView.cs, DataRowView.cs : AddNew() should not add the row to table
60           (it is still detached). So handle those rows differntly.
61           CancelEdit(), EndEdit() and Delete() propagates those events to
62           DataView (and handle row collection).
63           Eliminate "throw new Exception()".
64           Don't catch all the exception thrown in ListChanged event.
65         * DataTable.cs : made RowSorter as internal and use it in DataView.
66           no need to pass DataRow[] to .ctor().
67
68 2005-01-27  Atsushi Enomoto  <atsushi@ximian.com>
69
70         * DataTable.cs : don't create DefaultView unless it is required. It
71           significantly improves performance. (i.e. DataView perf. is sick ;-)
72
73 2005-01-27  Atsushi Enomoto  <atsushi@ximian.com>
74
75         * DataViewSetting.cs,
76           DataViewSettingCollection.cs,
77           DataViewManager.cs : implemented basic members.
78
79 2005-01-26  Atsushi Enomoto  <atsushi@ximian.com>
80
81         * Node.cs, DataColumnPropertyDescriptor.cs, DataTable.cs :
82           Eliminate "throw new Exception".
83
84 2005-01-25  Atsushi Enomoto  <atsushi@ximian.com>
85
86         * DataRow.cs : (set_Item) RowNotInTableExeption check should be done
87           regardless of index existence.
88
89 2005-01-25  Atsushi Enomoto  <atsushi@ximian.com>
90
91         * DataTable.cs : use new IExpression.EvalBoolean() to avoid extraneous
92           boxing.
93
94 2005-01-25  Sureshkumar T  <tsureshkumar@novell.com>
95
96         * DataTable.cs: ImportRow :Do not add to rows collection if the
97         import row is in detached state.
98
99 2005-01-25  Sureshkumar T  <tsureshkumar@novell.com>
100
101         * DataRow.cs: CopyValuesToRow : set the column value with the
102         default version of the given row.
103         * DataTable.cs: ImportRow: Copy values before adding row.
104         * DataSet.cs: AddChangedRow: Add the row to the table after
105         copying values.
106         
107         Fixes bug #67317. Patch by Ankit Jain.
108
109 2005-01-25  Atsushi Enomoto  <atsushi@ximian.com>
110
111         * DataRowView.cs : Fixed IsEdit to reflect correct status of DataRow.
112         * DataRow.cs : Expose editing status internally.
113
114 2005-01-25  Atsushi Enomoto  <atsushi@ximian.com>
115
116         * DataView.cs : missing attributes.
117
118 2005-01-24  Atsushi Enomoto  <atsushi@ximian.com>
119
120         * DataRowView.cs : implemented CreateChildView().
121
122 2005-01-24  Atsushi Enomoto  <atsushi@ximian.com>
123
124         * DataTable.cs, DataView.cs :
125           Optimized DataView to compile only once RowFilter and Sort when 
126           those properties are set. To make it possible, extracted 
127           SortableColumn out of DataTable and added internal DataTable.Select()
128           that accepts precompiled IExpression and SortableColumns[].
129
130 2005-01-24  Atsushi Enomoto  <atsushi@ximian.com>
131
132         * DataColumn.cs : set_MaxLength is not allowed when it is mapped to
133           SimpleContent. (However, it is weird but it never fails when we set
134           ColumnMapping = MappingType.SimpleContent when we fhave MaxLength.)
135
136 2005-01-21  Atsushi Enomoto  <atsushi@ximian.com>
137
138         * DataRow.cs : more Current -> Default fixes. Check if it should throw
139           VersionNotFoundException. Patch by Ankit Jain.
140
141 2005-01-21  Atsushi Enomoto  <atsushi@ximian.com>
142
143         * DataRow.cs : Default selects the right version for the current
144           state of the row. Current is not always available. Also change
145           that for GetParentRow(). Patch by Ankit Jain.
146
147 2005-01-21  Atsushi Enomoto  <atsushi@ximian.com>
148
149         * DataTable.cs : CopyColumn() should copy AutoIncrement after
150           DefaultValue, or it will raise an error in some cases.
151
152 2005-01-20  Atsushi Enomoto  <atsushi@ximian.com>
153
154         * ConstraintCollection.cs : Add() should throw ArgumentException when
155           the argument constraint fails validation.
156           DataTable.cs : set_PrimaryKey should throw ArgumentException when
157           the argument contains constraints which fail validation.
158
159 2005-01-19  Sureshkumar T  <tsureshkumar@novell.com>
160
161         * DataRelationCollection.cs: 
162
163         Method Remove : Donot throw exception if DataRelation argument is
164         null in DataRelationCollection.Remove method.
165
166         Method RemoveAt : Exception should be IndexOutOfRangeException if
167         row index is not in list range.
168
169         Fixes nunit failures DataRelationCollection.Remove and
170         DataRelationCollection.RemoveAt.
171
172 2005-01-19  Sureshkumar T  <tsureshkumar@novell.com>    
173
174         * ConstraintCollection.cs: Donot throw exception if constraints
175         are null in AddRange method. Check for null before using the
176         argument.
177
178         fixes bug #69381.
179
180 2004-01-19  Atsushi Enomoto  <atsushi@ximian.com>
181
182         * XmlDataInferenceLoader.cs,
183           XmlDataReader.cs : Check if the XmlReader (node) represents DataSet
184           or a table, reusing code block in XmlDataInferenceLoader.
185           This fixes bug #60118.
186
187 2004-01-19  Atsushi Enomoto  <atsushi@ximian.com>
188
189         * XmlDiffLoader.cs : Ankit Jain <radical@imt.ac.in> has a conflicting
190           patches and some good catches. Some attributes should be skipped,
191           and loaded value must be typed.
192
193 2004-01-19  Atsushi Enomoto  <atsushi@ximian.com>
194
195         * XmlConstants.cs,
196           XmlDataInferenceLoader.cs, 
197           XmlDataReader.cs : use common const for http://www.w3.org/2000/xmlns/.
198         * XmlDiffLoader.cs : It was not handling attributes. Fixed bug #70961.
199
200 2005-01-18  Sureshkumar T  <tsureshkumar@novell.com>
201
202         Fix for bug #66838. This patch is submitted by "Ankit Jain"
203         <radical@corewars.org> and refactored.
204
205         * DataRow.cs: Allows to set a parent row even if the row is in
206         detached state.
207
208         * DataRelation.cs: method "UpdateConstraints" is added to check
209         and create missing keys when adding a relation. This is refactored
210         approach from DataRelationCollection.Add method.
211
212         * DataRelationCollection.cs: AddCore methods of all relation types
213         are synchronized. A Check for existing constraints is
214         done. Relation is added to the list only if all checks are passed.
215
216 2004-01-18  Atsushi Enomoto  <atsushi@ximian.com>
217
218         * DataColumnCollection.cs : Clear() throws ArgumentException that
219           wraps thrown innerException.
220         * XmlSchemaDataImporter.cs : removed FIXMEs.
221
222 2004-01-12  Atsushi Enomoto  <atsushi@ximian.com>
223
224         * DataSet.cs : When serializing DataTable, BuildSchema() is passed
225           null relation collections.
226           Quick fix for XmlSerializer deserialization. It does not require
227           XML Schema included.
228
229 2004-01-11  Atsushi Enomoto  <atsushi@ximian.com>
230
231         * DataSet.cs,
232           CustomDataClassGenerator.cs :
233           In DataSet class, IXmlSerializable.GetSchema() returns null.
234           In strongly-typed class, it returns schema.
235
236 2004-01-07  Atsushi Enomoto  <atsushi@ximian.com>
237
238         * XmlDataInferenceLoader.cs : test driver class should be excluded.
239
240 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
241
242         * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
243         is never null.
244
245 2004-11-10  Atsushi Enomoto  <atsushi@ximian.com>
246
247         * CustomDataClassGenerator.cs : generated foreign key constraint
248           construction code was creating empty child columns and thus it
249           was invalid. This fixes bug #69276 (patch by Martin Voelkle).
250
251 2004-11-02  Atsushi Enomoto  <atsushi@ximian.com>
252
253         * CustomDataClassGenerator.cs : custom DataTable ctor should call
254           InitializeFields(), and those DataColumns created by that method
255           should take data type. This should fix bug #68972.
256
257 2004-10-15  Atsushi Enomoto  <atsushi@ximian.com>
258
259         * DataSet.cs : Also clear UnhandledAttributes ArrayList before 
260           generating next attribute column schema. This fixes bug #68432.
261
262 2004-10-14 Umadevi S <sumadevi@novell.com>
263         * DataTable.cs : Corrected the Clone method to use  Activator.CreateInstance so that the
264         correct subclass is returned. This fixes bug #67631
265                                                                                         
266 2004-10-14 Umadevi S <sumadevi@novell.com>
267         * DataSet.cs : Corrected the Clone method to use  Activator.CreateInstance so that the  
268         correct subclass is returned. This fixes bug #67627
269
270 2004-10-13  Atsushi Enomoto  <atsushi@ximian.com>
271
272         * DataSet.cs : clear UnhandledAttributes ArrayList before generating
273           next element column schema. This fixes bug #68256.
274
275 2004-10-12  Atsushi Enomoto  <atsushi@ximian.com>
276
277         * DataSet.cs : now xs:schema contains xmlns="".
278           This fixes bug #68008.
279
280 2004-10-12  Atsushi Enomoto  <atsushi@ximian.com>
281
282         * DataSet.cs : DBNull attribute column should not be written as
283           empty attribute. This fixes bug #68007.
284
285 2004-10-12  Atsushi Enomoto  <atsushi@ximian.com>
286
287         * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
288           DataColumn.ReadOnly was not handled. This fixes bug #68005.
289           Attribute defaultValue was not handled too.
290
291 2004-10-07  Atsushi Enomoto  <atsushi@ximian.com>
292
293         * DataSet.cs :
294           - When AllowDBNull is false on attribute DataColumn, its schema
295             should contain use="required". This fixes bug #66792.
296           - If MaxLength is set on attribute DataColumn, the mapped schema
297             type should contain maxLength facet. This fixes bug #66793.
298
299 2004-10-04  Atsushi Enomoto  <atsushi@ximian.com>
300
301         * DataSet.cs : For a row, when a relation is not nested, then it is
302           still output target since it won't be written as a child of its
303           parent. It fixes bug #66379.
304
305 2004-10-03  Atsushi Enomoto  <atsushi@ximian.com>
306
307         * DataSet.cs : Attribute constraint field XPath must be written as
308           @blah. This fixes bug #66366.
309
310 2004-09-28 Umadevi S <sumadevi@novell.com>
311         * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
312
313 2004-09-24  Sureshkumar T  <tsureshkumar@novell.com>
314
315         * DataSet.cs : Don't check constraints for dataset clear
316         * DataRowCollection.cs : check for EnforceConstraints flag 
317         before checking foriegn key constraints in Clear method
318         * DataTable.cs : Redundant checking removed in Clear method as it is
319         checked in DataRowCollection.Clear method. 
320
321
322 2004-09-19  Sureshkumar T <tsureshkumar@novell.com>
323         * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
324                        hence, adding a row cache is necessary if the original row happens to be current.
325                        fixed bug #63097
326
327 2004-08-23  Martin Baulig  <martin@ximian.com>
328
329         * XmlDataInferenceLoader.cs (Driver): Make this class internal,
330         not public.
331
332 2004-08-18 Umadevi S <sumadevi@novell.com>
333         * DataView.cs - Completed most of the event handling. 
334         Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
335         Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
336         * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
337
338 2004-08-06  Atsushi Enomoto  <atsushi@ximian.com>
339
340         * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
341
342 2004-08-05  Atsushi Enomoto  <atsushi@ximian.com>
343
344         * XmlConstants.cs : Added constants for "msprop" support.
345         * DataSet.cs : ExtendedProperties should be written in the schema.
346           This fixes bug #61233.
347
348 2004-07-27  Atsushi Enomoto  <atsushi@ximian.com>
349
350         * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
351           used. There were also some culture dependency problems to write int.
352
353 2004-06-27  Atsushi Enomoto  <atsushi@ximian.com>
354
355         * XmlDataInferenceLoader.cs : It was not always filling relation
356           child table information correctly. This fixes bug #60742.
357
358 2004-06-23 Umadevi S <sumadevi@novell.com>
359         * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
360
361 2004-06-22  Atsushi Enomoto  <atsushi@ximian.com>
362
363         * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
364           schema is inside the document element (as created in XmlWriteMode
365           .WriteSchema), it should read schema from that non-document element.
366           This fixes one case reported in bug #60470.
367
368 2004-06-20  Atsushi Enomoto  <atsushi@ximian.com>
369
370         * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
371           inference target. For bug #60470. (MS does not support schema
372           document inference and results in unconsistent dataset structure.)
373
374 2004-06-20  Atsushi Enomoto  <atsushi@ximian.com>
375
376         * DataTableCollection.cs : reset the table's DataSet to null when
377           removing a table from this collection.
378         * DataTable.cs : When Namespace is not specified explicitly, its
379           Namespace property reflects DataSet's Namespace if exist.
380           This fixes bug #60469.
381
382 2004-06-18  Gert Driesen <drieseng@users.sourceforge.net>
383
384         * DBConcurrentcyException.cs: CRLF to LF
385         * DataViewSetting.cs: CRLF to LF
386
387 2004-06-18  Gert Driesen <drieseng@users.sourceforge.net>
388
389         * DataViewSetting.cs: renamed fields to match MS.NET
390
391 2004-06-18  Gert Driesen <drieseng@users.sourceforge.net>
392
393         * DBConcurrencyException.cs: fixed serialization compatibility with
394         MS.NET
395
396 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
397
398         * ChangeLog : Fix for misspelled words.
399
400 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
401
402         * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
403         
404 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
405
406         * DataTable.cs :
407           - Table stores default values for columns in special default values row. 
408           It is allocated once (in NewRow).
409           - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
410           - OnRemoveColumn has nothing to perform by now.
411
412 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
413
414         * DataRow.cs : 
415           - Changed access of original, current and proposed indexes to internal.
416           - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
417           - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
418           - Use DataContainer.CopyValue and default values row for faster set of default values in row.
419           - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
420           Care about Null and DBNull values is now in DataContainer.
421           - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
422           - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
423           - Fix in CopyState : clone column errors.
424           - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
425
426 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
427
428         * DataColumnCollection.cs : 
429           - Fix : Add() now delegates to Add(DataColumn).
430           - autoIncrement list holds DataColumn objects, and not just column names.
431
432 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
433
434         * DataColumn.cs : 
435           - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
436           - DefaultValue fixes. Default value from now on is also stored in special record in 
437           DataTable, so we're able to set default value for the column faster (typed).
438         
439         
440 2004-06-15  Atsushi Enomoto  <atsushi@ximian.com>
441
442         * DataSet.cs : children of non-root rows were not properly written.
443           Fixed bug #53959.
444
445 2004-06-10 Umadevi S <sumadevi@novell.com>
446         * DataRelation.cs - Constructor
447         - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
448
449 2004-06-06  Atsushi Enomoto  <atsushi@ximian.com>
450
451         * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
452
453 2004-06-04  Gert Driesen <drieseng@users.sourceforge.net>
454
455         * Constraint.cs: marked methods internal to fix public API
456         * ConstraintCollection.cs: to fix public API, use 
457         DataTable.fInitInProgress to check whether initialization 
458         of DataTable is in progress
459         * DataColumn.cs: added stubs for missing methods
460         * DataRowBuilder.cs: marked Table property internal to
461         fix public API
462         * DataSet.cs: removed extra empty destructor, marked 
463         OnMergeFailed internal to fix public API
464         * DataTable.cs: use fInitInProgress field to hold init
465         status, to match MS.NET
466         * DataView.cs: added missing attributes on IsOpen
467
468 2004-06-03  Atsushi Enomoto  <atsushi@ximian.com>
469
470         * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
471           in XmlNamespaceManager.
472
473 2004-06-03  Atsushi Enomoto  <atsushi@ximian.com>
474
475         * DataSet.cs : complex table content child was not properly added
476           when it is the only one child in the parent table. Fixed bug #53959.
477
478 2004-06-02  Gert Driesen <drieseng@users.sourceforge.net>
479        * DataTableTypeConverter.cs: added
480        * DataView.cs: added missing attribute on Table property
481        * DataViewManager.cs: moved attribute to correct property
482        * UniqueConstraint.cs: removed extra ReadOnly attribute from
483         IsPrimaryKey property
484
485 2004-06-01  Atsushi Enomoto  <atsushi@ximian.com>
486
487         * DataRow.cs : ColumnsChanged event is not required in .ctor().
488
489 2004-06-01  Atsushi Enomoto  <atsushi@ximian.com>
490
491         * XmlDataReader.cs : type change is required before setting value
492           string to row item.
493
494 2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
495
496         * DataSet.cs : Loop-break of the last fix was incorrect.
497
498 2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
499
500         * DataSet.cs : When a row has no parent row but the table has parent
501           relation(s), that row had been always ignored.
502
503 2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
504
505         * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
506           rejected same-named tables in different hierarchy. Thanks to Boris.
507
508 2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
509
510         * XmlDiffLoader.cs : Added some Skip() that is required not to go to
511           infinite loop. Thanks to Boris for this fix.
512
513 2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
514
515         * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
516           Thanks to Boris for this fix.
517
518 2004-05-30  Atsushi Enomoto  <atsushi@ximian.com>
519
520         * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
521           for ReadXml(). Thanks to Boris.
522
523 2004-05-27  Boris Kirzner  <borisk@mainsoft.com>
524         * DataRow.cs : 
525                 - CheckReadOnlyStatus : use typed (and faster comparing).
526                 - EndEdit : bug fix - do not dispose record if it holds original version.
527                 - SetValuesFromDataRecord : Take care about autoincrement columns.
528                 
529
530 2004-05-27  Atsushi Enomoto  <atsushi@ximian.com>
531
532         * MergeManager.cs : don't output debug message to Console.
533
534 2004-05-27  Atsushi Enomoto  <atsushi@ximian.com>
535
536         * XmlDataInferenceLoader.cs : Namespace are not imported to the table
537           structure. Thanks to Boris Kirzner for the fix.
538
539 2004-05-27  Umadevi S <sumadevi@novell.com>
540          * DataRelationCollection.cs - fixed nunit test errors
541
542 2004-05-27  Umadevi S <sumadevi@novell.com>
543          * DataTableCollection.cs - fixed nunit test errors
544
545 2004-05-21  Atsushi Enomoto  <atsushi@ximian.com>
546
547         * DataColumnCollection.cs : NullReferenceException was thrown when
548           the table was not found.
549         * DataRowCollection.cs :
550           Find() just returns null for null value under MS.NET 1.1.
551           RemoveAt() should also avoid to call AcceptChanges() like Remove().
552         * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
553           directly under MS.NET (for nunit test).
554
555 2004-05-21  Atsushi Enomoto  <atsushi@ximian.com>
556
557         * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf() 
558           caused problem on qualified name to get schema Field name.
559
560 2004-05-21  Atsushi Enomoto  <atsushi@ximian.com>
561
562         * XmlDataReader.cs : Now data reader is namespace aware in all places.
563           When table's namespace is different, it entered to infinite loop.
564
565 2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
566         * MergeManager.cs : AdjustSchema now updates by reference new created table,
567         so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
568         Code styling.
569         
570 2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
571
572         * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
573         * DataColumnCollection.cs : fixed parantethes.
574         * DataRow.cs : 
575                 - AcceptChanges : do nothing if row state is unchanged.
576                 - GetChildRows, GetParentRows  : bug fix (use correct index).
577         * DataRowCollection.cs : bug fix (compare all row's values).
578         * DataTable.cs : bug fix (use correct row version).
579         
580 2004-05-20  Atsushi Enomoto  <atsushi@ximian.com>
581
582         * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
583           When content type is Mixed, text column is not required (it is
584           required only when the complex type has no particle). 
585           "Repeated element" column is also created (considering maxOccurs=0 
586           and complex content extension).
587
588 2004-05-20  Atsushi Enomoto  <atsushi@ximian.com>
589
590         * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled 
591           properly.
592
593 2004-05-20  Atsushi Enomoto  <atsushi@ximian.com>
594
595         * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
596           Fixed relation inference to consider attribute XPath.
597
598 2004-05-19  Atsushi Enomoto  <atsushi@ximian.com>
599
600         * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
601           always fails.
602
603 2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
604
605         * DataColumn.cs - removed default member attribute.
606
607 2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
608
609         * DataColumn.cs,
610           DataColumnChangeEventArgs.cs,
611           DataColumnCollection.cs,
612           DataRow.cs,
613           DataRowCollection.cs,
614           DataTable.cs,
615           Index.cs : Data storage in the row is redesigned. Now data is stored in 
616           typed containers inside DataColumn. Row holds its versions as indexes inside
617           each of data container, accessed through the row that holds it.
618
619 2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
620
621         * UniqueConstraint.cs - added comment.
622         
623 2004-05-19  Atsushi Enomoto  <atsushi@ximian.com>
624
625         * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
626           DataSet.
627
628 2004-05-17  Atsushi Enomoto  <atsushi@ximian.com>
629
630         * DataSet.cs,
631           XmlDataInferenceLoader.cs,
632           XmlDataReader.cs,
633           XmlSchemaDataImporter.cs : XmlDecode every local name to read and
634           XmlEncode every local name to write. This should fix bug #58268.
635
636 2004-05-17  Atsushi Enomoto  <atsushi@ximian.com>
637
638         * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
639           Supported repeated elements. Removed MonoTODOs.
640         * XmlDataInferenceLoader.cs : Design change to support ignored
641           namespace and repeated elements.
642         * XmlSchemaDataImporter.cs : Added mapping support classes.
643
644 2004-05-15  Atsushi Enomoto  <atsushi@ximian.com>
645
646         * CustomDataClassGenerator.cs :
647           Added property parent "[foo]Row" and children "Get[foo]Row" support
648           for custom DataRow classes.
649           Fixed DataColumn property accessibility (public --> internal).
650
651 2004-05-14  Atsushi Enomoto  <atsushi@ximian.com>
652
653         * CustomDataClassGenerator.cs :
654           - Put classes inside custom DataSet class.
655           - Added automatic DataRelation creation support.
656           - Added Constraints creation support. That is done separate from
657             relations, since they might be independently created.
658           - Added non-MS public DataRelation fields.
659           - Removed extraneous "DataRelation type generation" code.
660           - Fixed custom_dataset.Initialize() not to create "c" field that
661             was created more than once.
662           - Implemented AddxxxRow() that takes parameters for every column.
663
664 2004-05-14  Atsushi Enomoto  <atsushi@ximian.com>
665
666         * XmlSchemaDataImporter.cs : When primary key is used more than once,
667           DataRelation borked because of empty parent column name.
668
669 2004-05-14  Atsushi Enomoto  <atsushi@ximian.com>
670
671         * XmlSchemaDataImporter.cs : When Creating constraints with related
672           to DataRelation creation, also set PrimaryKey to the parent table.
673
674 2004-05-14  Atsushi Enomoto  <atsushi@ximian.com>
675
676         * XmlSchemaDataImporter.cs : 
677           Design change to add indirect table and relation structures.
678           Support for "relation" annotation for local element.
679           Support for repeatable simple element column (maxOccurs > 1).
680           Fixed handling of Nested property on DataRelation (for globally
681           annotated relation, Nested is false).
682
683 2004-05-13  Atsushi Enomoto  <atsushi@ximian.com>
684
685         * DataRow.cs : Added DataElement property to avoid storing every row-
686           element mapping. It stored even for nodes that should be removed.
687
688 2004-05-13  Umadevi S <sumadevi@novell.com>
689
690         * RelationshipConverter.cs - Stubbed this class
691         * DataRelation.cs - added TypeConveterAttribute
692
693 2004-05-13  Umadevi S  <sumadevi@novell.com>
694
695         * DataColumnCollection.cs - Added ResDescriptionAttribute
696         * DataRelation.cs - Added TypeConverterAttribute
697         * DataRelationCollection.cs - Added DefaultPropertyAttribute
698         * DataRowView.cs - Added GetHashCode method with a TODO tag
699         * DataSet.cs - Added DesignerAttribute
700         * DataView.cs - Added DesignerAttribute
701         * DataViewManager.cs - Added DesignerAttribute
702         * DataViewSetting.cs - Added TypeConverterAttribute
703         
704 2004-05-12  Atsushi Enomoto  <atsushi@ximian.com>
705
706         * DataRow.cs : Added XmlDataElement initialization code.
707
708 2004-05-11  Atsushi Enomoto  <atsushi@ximian.com>
709
710         * XmlDataInferenceLoader.cs :
711           It now requires XmlDocument as input.  Improved identification of
712           DataSet element.  Removed extra lines.
713           Moved boresome design notes to bottom of the source and
714           added standalone runnable driver (not included on build).
715         * DataSet.cs :
716           Update with related to the change above.
717           WriteXml() should call Flush() after writing. This fixes bug #58327.
718         * XmlSchemaDataImporter.cs :
719           Improved indentification of DataSet element.
720
721 2004-05-11  Gert Driesen (drieseng@users.sourceforge.net)
722         * DataTable: marked initStatus enum internal
723
724 2004-05-09  Gert Driesen (drieseng@users.sourceforge.net)
725         * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
726         methods internal
727         * DataRowView.cs: removed extra Error property
728         * DataRow.cs: reduced accessibility of CollectionChanged method 
729         to private
730         * DataColumnPropertyDescriptor.cs: made class internal
731         * DataColumn.cs: removed extra TypeConvertorAttribute
732         * ConstrainCollection.cs: marked PostEndInit method internal
733
734 2004-05-07  Atsushi Enomoto  <atsushi@ximian.com>
735
736         * DataSet.cs : 
737           In WriteXmlSchema(), when complex type contains simple type content
738           attributes must not added to XmlSchemaComplexType directly. It
739           causes schema compilation error.
740           DataRelation should not be output when related columns are hidden.
741
742 2004-05-07  Atsushi Enomoto  <atsushi@ximian.com>
743
744         * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
745           also expected to do ReadXml(), but I will remove that feature and
746           support column reordering).
747         * XmlSchemaDataImporter.cs : Always initialize dataset name.
748           Always set Nested and primary key for parent table.
749         * XmlDataReader.cs : Now it is used.
750           Top level element might not match to dataset name nor any table 
751           name, but still possible to read content tables.
752           Handle empty element correctly in some places.
753           Handle Fragment mode (read up XmlReader to the end).
754         * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
755           XmlDataInferenceLoader and XmlDataReader.
756
757 2004-05-06  Atsushi Enomoto  <atsushi@ximian.com>
758
759         * DataSet.cs :
760           Eliminated CRLF injection.
761           More clear message in Clear().
762           Updates reflecting XmlSchemaDataImporter change.
763           Added duplicate check for XmlSerializerNamespaces in BuildSchema().
764           Don't use xmlns attribute for UnhandledAttributes (its not mandatory
765           but that depends on different behavior from ms.net).
766           Set locale also for DataTable.
767           Add xs:element only when target namespace matches to the
768           element's namespace. Otherwise, add xs:import for external namespace.
769           Put xs:sequence for dataset element's particle _only when_ actual
770           contents exist.
771
772 2004-05-06  Atsushi Enomoto  <atsushi@ximian.com>
773
774         * XmlDataReader.cs : Added. This class will work better when our
775           schema inference and schema read engine gets improved. (It contains
776           standalone testable Driver class.)
777
778 2004-05-06  Atsushi Enomoto  <atsushi@ximian.com>
779
780         * ForeignKeyConstraint.cs : Check step change. Existence then column
781           validity. just for tests.
782         * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
783           fields.
784
785 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
786
787         * DataSet.cs : Ignore empty content only when output type is diffgram.
788
789 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
790
791         * CustomDataClassGenerator.cs : Modified that DataSet contains each
792           DataTable field so that each table property can access them directly.
793           (plus, modified standalone code driver code: shouldn't affect)
794
795 2004-05-05  Boris Kirzner  <borisk@mainsoft.com>
796
797         * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
798           
799 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
800
801         * XmlSchemaDataImporter.cs : 
802           SimpleContent column support.
803           Annotated relation support.
804           Top-level element is counted only when its type is complex.
805           xs:anyType is no longer treated as complex type.
806           dataset existence is mandatory now. 
807           Improved DataType and DefaultValue support.
808           Attribute namespace is properly handled now.
809           Prohibited attribute is now treated as hidden column.
810           Reject list or union simple type.
811
812           Still incomplete 1) to read relationship in some cases, 2) to 
813           determine whether an element is dataset or table, 3) thus to
814           exclude extraneous column, 4) to remove extraneous *_Id column.
815
816 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
817
818         * DataTable.cs :
819           We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
820           serialization .ctor() (thus schema read/inference should be easier).
821           DataRowSorter should consider Table's Locale.
822
823 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
824
825         * DataColumnCollection.cs : We already had AutoIncrementValue(), so
826           use it instead of duplicating logic.
827
828 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
829
830         * ConstraintCollection.cs :
831           Use Table.CaseSensitive and Table.Locale to compare strings.
832           Duplicate constraint name exception does not occur under .NET 1.1.
833
834 2004-05-04  Lluis Sanchez Gual  <lluis@ximian.com>
835
836         * XmlSchemaDataImporter.cs: Added little type check.
837
838 2004-05-04  Lluis Sanchez Gual  <lluis@ximian.com>
839
840         * DataSet.cs: Implemented support for runtime serialization. Fixed support
841           for xml serialization.
842         * XmlDiffLoader.cs: Skip diffgram element when it is empty.
843
844 2004-04-30  Umadevi S  <sumadevi@novell.com>
845         * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
846         * DataTableCollection.cs  : Tested and removed TODO
847         * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs   
848
849 2004-04-29  Atsushi Enomoto  <atsushi@ximian.com>
850
851         * DataRow.cs : My previous patch unintentionally reverted Boris patch.
852
853 2004-04-29  Boris Kirzner <borisk@mainsoft.com>
854
855         * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if 
856         constraint is defined on single column.
857
858 2004-04-29  Atsushi Enomoto  <atsushi@ximian.com>
859
860         * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
861           not ArgumentException (maybe changed after 1.1).
862
863 2004-04-29  Atsushi Enomoto  <atsushi@ximian.com>
864
865         * DataRow.cs : When Column was added and it was AutoIncrement column,
866           it extended the item object array incorrectly.
867           (Plus tiny comment and incorrect indentation fix.)
868
869 2004-04-29  Boris Kirzner <borisk@mainsoft.com>
870
871         * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
872
873 2004-04-29  Boris Kirzner <borisk@mainsoft.com>
874
875         * DataRow.cs : Bug fix in CopyValuesToRow().
876         
877 2004-04-29  Boris Kirzner <borisk@mainsoft.com>
878
879         * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
880           each of the columns should not be unique, but only all the constraint's columns together.
881         
882 2004-04-28  Boris Kirzner <borisk@mainsoft.com>
883         * DataRow.cs :
884           - Perfomance fixes: 
885                 - Added using of list of autoIncrement columns
886                 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
887           - Fix in CheckNullConstraints
888           - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
889           - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
890           - Added onColumnRemoved() method to threat column removal accurately.
891         
892         * DataRowCollection.cs :
893           - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
894           - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
895         
896         * DataTable.cs :
897           - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
898         
899         * DataColumnCollection.cs :
900           - Perfomance fixes :
901                 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
902                 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
903                 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
904         
905         * DataColumn.cs :
906           - Uses autoincrement list of a table
907
908 2004-04-27  Atsushi Enomoto  <atsushi@ximian.com>
909
910         * XmlDataLoader.cs : Even when it should ignore schema, it was 
911           infering schema.
912         * XmlSchemaDataImporter.cs : DataRelation creation support.
913           Improved "DataSet" element handing. When attributes are on the
914           element, it is not a "DataSet" element.
915           Fixed parent key column name.
916           Unique name creation is not required. Just raise an error.
917           Fill facet also for attribute types.
918
919 2004-04-27  Atsushi Enomoto  <atsushi@ximian.com>
920
921         * DataRow.cs : Null check for CheckReadOnlyStatus() and
922           CheckNullConstraints(), with some coding guideline fixes.
923           Type check should be done by Type instance comparison.
924
925 2004-04-27  Atsushi Enomoto  <atsushi@ximian.com>
926
927         * DataColumnCollection.cs : When add a column to the collection, fill
928           auto-increment column.
929
930 2004-04-26  Boris Kirzner <borisk@mainsoft.com>
931
932         * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
933         
934 2004-04-26  Atsushi Enomoto  <atsushi@ximian.com>
935
936         * CustomDataClassGenerator.cs : Added.
937         * TypedDataSetGenerator.cs : Implemented Generate().
938           Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
939         * XmlSchemaDataImporter.cs : Table Locale should be supplied.
940
941 2004-04-25  Boris Kirzner <borisk@mainsoft.com>
942
943         * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
944         
945 2004-04-25  Boris Kirzner <borisk@mainsoft.com>
946
947         * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
948
949 2004-04-23 Umadevi S (sumadevi@novell.com)
950         *  DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
951            - Added error handling to the above methods
952
953 2004-04-22  Atsushi Enomoto  <atsushi@ximian.com>
954
955         * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
956           the support is incomplete yet).
957         * XmlDataLoader.cs : 
958           Reverted ReadModeSchema() argument change. XmlReadMode would be 
959           useful to handle IgnoreSchema.
960           Don't overwrite DataSetName when mode is not such kind.
961           Set Prefix and Namespace as well as DataSetName.
962           AllowDBNull looks set false by default for element column.
963           Set unique constraint as primary key when infering the table schema.
964
965 2004-04-21  Atsushi Enomoto  <atsushi@ximian.com>
966
967         * DataSet.cs : 
968           Never set null string for Prefix and Namespace.
969           In InferXmlSchema() when null XmlReader is passed, just do nothing.
970           In WriteXmlSchema(string), earlier try block.
971           In BuildSchema(), try to add serialization namespaces for each
972           namespaces in DataSet/DataTable/DataColumn.
973           Removed namespace argument from WriteColumnAsElement() and don't
974           overwrite when namespace is "". This fixes bug #57330.
975         * DataColumn.cs : For Namespace and Prefix, never set null.
976
977 2004-04-21  Boris Kirzner <borisk@mainsoft.com>
978
979         * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
980           before creating and adding foreign key constraint and relation. 
981
982 2004-04-21  Boris Kirzner <borisk@mainsoft.com>
983
984         * MergeManager.cs : In AdjustSchema() source table clone should be added
985           and not the table itself. 
986
987 2004-04-21  Boris Kirzner <borisk@mainsoft.com>
988
989         * DataSet.cs : 
990           - CaseSensitive : Additional fix (removed unnesessary assignment).
991           - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
992
993 2004-04-21  Boris Kirzner <borisk@mainsoft.com>
994
995         * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
996           
997 2004-04-20  Boris Kirzner <borisk@mainsoft.com>
998
999         * DataTable.cs : 
1000           - EndLoadData() : perfomance fix in case of null constraint violation
1001             during data load (also in DataRow.cs).
1002           - CaseSensitive : If DataTable belongs to DataSet it should always use
1003             DataSet.CaseSensitive untill explicitly changed.
1004           - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
1005           
1006         * DataRow.cs :
1007           - Pefromance fix in case of null constraint violation
1008             during data load (also in DataTable.cs).
1009           - CollectionChanged() : use correct column number after new DataColumn was added
1010             (differs in case some DataColumn was previosly removed).
1011           - EndEdit() - throw away  proposed values only after CheckChildRows() complete.
1012
1013 2004-04-20  Boris Kirzner <borisk@mainsoft.com>
1014
1015         * DataColumnCollection.cs : Since unique constraint is added now
1016           in DataColumn.SetTable() the additional creation of constraint in 
1017           DataColumnCollection.Add() is redundant and causes exception - fixed.
1018           
1019 2004-04-19  Atsushi Enomoto  <atsushi@ximian.com>
1020
1021         * XmlDataLoader.cs : Added "never add data rows" mode.
1022           Removed unused code. However, it is temporary fixes to unify
1023           ReadXml() and InferXmlSchema().
1024         * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
1025
1026           I'll create another XmlDataLoader since there are many problems
1027           such that 1) it is too waste to read the entire xml into an
1028           XmlDocument, 2) it does not handle attributes correctly, and 3) it
1029           must handle "ignored namespaces".
1030
1031 2004-04-19  Atsushi Enomoto  <atsushi@ximian.com>
1032
1033         * Added XmlSchemaDataImporter.cs (new schema reader).
1034         * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
1035           for ReadXmlSchema().
1036           Let schema reading work to ReadXmlSchema().
1037           Don't return ReadSchema when argument read mode was DiffGram.
1038
1039 2004-04-15 Umadevi S (sumadevi@novell.com)
1040         *  Updated Clone/Copy methods in DataSet along with Testcase
1041         *  ForeignKeyConstraint.cs - special ctor implemented 
1042             Logic : ParentTable in the ctor - Since only name is given (not the DataTable object), we cannot associate any DataTable or DataSet right now.  So, only possible way is to do it when AddRange() is called. The ParentTable is searched in the DataSet  to which the calling DataTable belongs. And make the calling DataTable as ChildTable. In the PostAddRange() method check is addedd to perform the assignment of parent and child data columns once the information becomes available (When AddRange is called).
1043         * Changes in  ConstraintCollection.cs for the above
1044         Add (Constraint) - A check is performed to see if the constraint is ForeignKeyConstraint and whether data columns  are validated.  If no, whether it is called with AddRange(), If no, an Exception is thrown. AddRange() - PostAddRange() is called on the ForeignKeyConstraint object with the "table" as argument. Thanks to Deepak for the patch.
1045         
1046
1047 2004-04-15  Atsushi Enomoto  <atsushi@ximian.com>
1048
1049         * XmlSchemaMapper.cs : set parent key and foreign key info to 
1050           DataRelation when reading refkey constraints.
1051           Supply constraint name for fkey.
1052
1053 2004-04-15  Atsushi Enomoto  <atsushi@ximian.com>
1054
1055         * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
1056           mode is Auto, just ignore the schema if there is already schema info.
1057         * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
1058
1059 2004-04-14  Atsushi Enomoto  <atsushi@ximian.com>
1060
1061         * DataSet.cs :
1062           - In MS output, XML declaration looks to have standalone decl (yes).
1063           - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
1064           - ReadXml(reader, mode)
1065             1) return originally specified mode, instead of (always) Auto. 
1066             2) Check empty reader.
1067             3) Check diffgram schema and content separately.
1068             4) When diffgram exists, remaining (the same-level) contents 
1069                won't be consumed. 
1070             5) Similar fact should be applied, but somewhat different. 
1071                InferSchema and IgnoreSchema just skips, Fragment reads both
1072                schema and content, others just reads schema.
1073           - Removed unused code.
1074         * XmlDataLoader.cs :
1075           - Read() should skip in some ReadMode.
1076           - Don't compare schema element name as case-insensitive (well,
1077             should schemas be checked here?)
1078           - Avoided BuildDocument() not to create confusing DataSet
1079             document element.
1080           - Don't add any tables when reader has single element.
1081         * XmlDiffLoader.cs :
1082           When target table was not found, MS.NET doesn't raise an error.
1083         * XmlSchemaMapper.cs :
1084           When XmlSchema.Read() left xml reader at </xs:schema>, read once.
1085
1086 2004-04-13  Atsushi Enomoto  <atsushi@ximian.com>
1087
1088         * DataSet.cs :
1089           - InferXmlSchema(): Throw explicit NotImplementedException now.
1090           - Don't put XML declaration everywhere. Write just for filename arg.
1091           - xmlns="" should not be written. Maybe WebService problem is 
1092             because default namespace is overwritten. This patch will keep
1093             the WS problem away and actually fixes some unit tests (i.e. use
1094             explicit String.Empty for null namespace in WriteStartElement()).
1095           - MoveToContent() should always be called, not only when 
1096             LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
1097           - Even XmlReadMode is DiffGram, reader might not be "diffgram"
1098             element. As to MSDN, diffgram does not contain schema.
1099
1100 2004-04-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1101
1102         * DataTable.cs: made _initStatus private so that System.Data is CLS
1103         compliant.
1104
1105 2004-04-13 Umadevi S   <sumadevi@novell.com>
1106         *  UniqueConstraint.cs:
1107         *  ConstraintCollection.cs:
1108         *  DataTable.cs:
1109         - Implemented a Constructor for UniqueConstraint.cs
1110         - Used  EndInit on DataTable  to call a delegate which adds the
1111           constraints passed to the most recent call of AddRange().Used
1112           AddRange() on ConstraintCollection to check whether
1113           DataTable.BeginInit has occurred.  If yes, save the argument
1114           constraint collection passed, then return.  If no, Check whether the
1115           constraints are of type UniqueConstraint and initialized with the
1116           special constructor  If yes Initialized the table property of this
1117           UniqueConstraint object with table assosciated with the current
1118           instance of ConstraintCollection class.
1119
1120 2004-04-07  Marek Safar  <marek.safar@seznam.cz>
1121
1122         * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
1123
1124 2004-04-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1125
1126         * Constraint.cs:
1127         * DataColumnCollection.cs:
1128         * DataRelationCollection.cs:
1129         * DataRowCollection.cs:
1130         * DataTableCollection.cs:
1131         * InternalDataCollectionBase.cs:
1132         * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
1133         Fixes bug #56557.
1134
1135 2004-04-05  Jackson Harper  <jackson@ximian.com>
1136
1137         * DataTable.cs: Add rows to the row list if there is no filter.
1138         
1139 2004-03-31  Juraj Skripsky <juraj@hotfeet.ch>
1140
1141         * DataColumn.cs : Setting Caption to null sets it to the empty string
1142         (ms.net behaviour, testcase is in DataColumnTest).
1143         
1144         * DataRow.cs : Evaluate DataColumn.Expression when such a column's
1145         value is requested.
1146
1147 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
1148
1149         * DataColumn.cs: In Expression setter, set the expression member even if 
1150           it is an empty string.
1151         * DataSet.cs: Support serialization of byte[] columns.
1152         * XmlDataLoader.cs: Support deserialization  of Guid columns. 
1153           Set MappingType.Attribute to columns infered from attributes.
1154
1155 2004-03-29  Juraj Skripsky <juraj@hotfeet.ch>
1156
1157         * ExpressionElements.cs : remove
1158         * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
1159         Integration of new Mono.Data.SqlExpressions classes used in
1160         DataTable.{Select, Compute}.
1161         Fixes bug #55503 and lots of failures in DataTableTest.cs.
1162
1163 2004-03-28  Juraj Skripsky <juraj@hotfeet.ch>
1164
1165         * Index.cs: Simple fix in ComparePartialRowNonUnique.
1166         This fixes bugs #56129 and #56014.
1167
1168 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
1169
1170         * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
1171           stream after writing the dataset. This fixes bug #52581.
1172           Also added several writer.Close into finally blocks, so writers are properly
1173           closed in case of an exception.
1174
1175 2004-03-12  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1176
1177         * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
1178         * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
1179         * ColumnTypeConverter.cs: Added stub
1180         * DefaultValueTypeConverter: Added stub
1181         * ConstraintConverter.cs: Added stub
1182
1183 2004-03-04 Eran Domb <erand@mainsoft.com>
1184
1185         * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
1186         in MS.NET documentation (missing DataSet element etc).
1187
1188 2004-03-04 Eran Domb <erand@mainsoft.com>
1189
1190         * Node.cs : Added.
1191         * Index.cs : Rollback last changes.
1192         
1193 2004-03-03  Atsushi Enomoto <atsushi@ximian.com>
1194
1195         * Index.cs : justa build fix.
1196
1197 2004-03-03 Eran Domb <erand@mainsoft.com>
1198         
1199         * Index.cs : Added.
1200         * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
1201         DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
1202         This changes made for performance improvement.
1203
1204 2004-02-08 Eran Domb <erand@mainsoft.com>
1205
1206         * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
1207
1208 2004-02-08 Eran Domb <erand@mainsoft.com>
1209
1210         * DataSet.cs: Fix some bugs in ReadXml().
1211
1212 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1213
1214         * DataSet.cs: Added missing method that broke the build.
1215
1216 2004-02-04 Eran Domb <erand@mainsoft.com>
1217
1218         * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
1219         better performance.
1220         * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
1221         when all column are attributes (elements count is 0), we still want to add the relations. No relations
1222         can be on simple contents.
1223         (AddUniqueConstraints) Check that the column of the constraint are not hidden.
1224         (AddForeignKeys) Check that the relation has constraints attach to it.
1225         * XmlConstants.cs : Added constant.
1226
1227 2004-02-04 Eran Domb <erand@mainsoft.com>
1228         
1229         * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
1230         DoWriteXmlSchema calls BuildSchema ().
1231
1232 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1233
1234         * DataRow.cs: Added SetOriginalValue(), which is used to set the original
1235           value of a column.
1236         * DataRowCollection.cs: In InsertAt(), perform the correct checks and
1237           attach the row.
1238         * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
1239           also be added to the dataset.
1240           In WriteTable(), do not write unchanged rows when writing the original
1241           version of the table.
1242           Added WriteIndividualTableContent(), for writing the contents of a single
1243           table.
1244           Changed BuildSchema and related methods, so it can generate a schema for
1245           any set of tables, not just the tables of the dataset (needed for 
1246           single datatable serialization).
1247         * DataTable.cs: Implemented serialization constructor and GetObjectData method.
1248           Also implemented some ReadXmlSchema methods.
1249         * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
1250           instead of loading the full dataset in an XmlDocument. It is faster and
1251           saves memory. Also fixed several problems when generating the changes.
1252         * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
1253           table serialization).
1254
1255 2004-02-02 Eran Domb <erand@mainsoft.com>
1256
1257         * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
1258         Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
1259         * DataTable.cs (NewRow): Create only one DataRowBuilder.
1260         Initiate new row with row id -1.
1261         * DataRow.cs : Add RowId property.
1262         * DataRowBuilder.cs : Add _rowId member.
1263         * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
1264
1265 2004-01-26 Eran Domb <erand@mainsoft.com>
1266
1267         * XmlConstants.cs : Added some constants.
1268         * DataColumn.cs : Added a method to retrive AutoIncrement value.
1269         * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
1270         parent table column.
1271         * XmlDiffLoader.cs : Convert the value comming from the xml.
1272         * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
1273          (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
1274          (ReadXmlSchemaElement) : Set the locale of the dataset.
1275          (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
1276          (GetColumnType) : New method to get the column type from the attribute value.
1277          (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
1278          and add the constraint to the table.
1279          (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
1280          the table.
1281         * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
1282          Writing more information to the schema for interoperability with ms.net.
1283          Improve diffgarm writing mode.
1284          
1285
1286 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
1287
1288         * TypedDataSetGenerator.cs : Implemented GenerateIdName().
1289
1290 2004-01-21 Eran Domb <erand@mainsoft.com>
1291
1292         * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
1293         Do not set the child column to be AutoIncrement.
1294         Create the new column for the relation as MappingType.Hidden so they will not be serialized
1295         when writing the dataset to xml.
1296
1297 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
1298
1299         * Added missing TypedDataSetGenerator.cs.
1300
1301 2004-01-08 Eran Domb <erand@mainsoft.com>
1302
1303         * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
1304         * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram, 
1305         InferSchema, ReadSchema and IgnoreSchema.
1306         * XmlDataLoader.cs : All modes use the same logic.
1307         * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
1308
1309 2004-01-06 Eran Domb <erand@mainsoft.com>
1310
1311         * DataRelationCollection.cs : Use IndexOf in indexer.
1312         * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
1313         * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
1314         * XmlDiffLoader.cs : Reading nested tables.
1315         * XmlSchemaMapper.cs : Reading the relation.
1316         * XmlConstants.cs : Adding some constants.
1317
1318 2004-01-05  Jackson Harper <jackson@ximian.com>
1319
1320         * DataView.cs: Set readonly property of property descriptor. This
1321         fixes bug #52598.
1322         
1323 2004-01-01  Sanjay Gupta <gsanjay@novell.com>
1324
1325         * DataRelationCollection.cs : Fixed incorrect generation of default 
1326           Relation name.
1327         * DataSet.cs : Added missing functionality in WriteXml().
1328         * XmlConstants.cs : Added new constants.
1329  
1330 2003-12-27  Atsushi Enomoto <atsushi@ximian.com>
1331
1332         * DataSet.cs : Fixed incorrect WriteXml() signature.
1333
1334 2003-12-18  Jackson Harper <jackson@ximian.com>
1335
1336         * DataView.cs: Implement AddNew, Delete, and OnListChanged.
1337         
1338 2003-12-17  Atsushi Enomoto <atsushi@ximian.com>
1339
1340         * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
1341           they take shape of xml. This fixed bug #52240
1342
1343 2003-12-16  Tim Coleman <tim@timcoleman.com>
1344         * KeyRestrictionBehavior.cs:
1345                 New stubs added for .NET 1.2
1346         * DataTable.cs:
1347                 Changes for 1.2
1348
1349 2003-12-08 Eran Domb <erand@mainsoft.com>
1350         * DataColumn.cs (Expression) : Validate the expression.
1351         
1352         * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
1353         (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
1354         
1355         * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
1356         (RejectChanges) : Detach row when state was Added.
1357         (CollectionChanged) : Fix a bug.
1358         
1359         * ExpressionElement (ValidateExpression) : Fix a bug.
1360         
1361         * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
1362         a parent row in the parent table.
1363         (_validateColumns) : Fix bugs.
1364         
1365         * MergeManager.cs (AdjustSchema) : Fix a bug.
1366         
1367         * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
1368         between the tables.
1369
1370 2003-11-30 Eran Domb <erand@mainsoft.com>
1371         * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
1372         (Add) : Find if the new column name is the same as the one found in IndexOf.
1373         (IndexOf) : New method.
1374         (Contains) : Use new IndexOf.
1375         (IndexOf) : Use new IndexOf.
1376         
1377         * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
1378         (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
1379         
1380         * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
1381         (Delete) : Detach row if the RowState was Added.
1382         (GetChildRows) : Get the array form the ChildTable.
1383         (GetParentRows) : Get the array from the ParenTable.
1384         
1385         * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
1386         
1387         * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
1388         
1389         * DataTable.cs (PrimaryKey) : Fix bugs.
1390         (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
1391         
1392         * DataTableCollection.cs (Add) : Fix a bug.
1393         
1394         * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
1395         (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
1396         Some code style changes (tab instead of whit spaces, alignment, etc...).
1397         
1398         * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
1399         
1400         * MergeManager.cs (AdjustSchema) : Fix a bug.
1401         
1402         
1403
1404 2003-11-26  Miguel de Icaza  <miguel@ximian.com>
1405
1406         * DataSet.cs: Add a few more missing methods, code style updated
1407         to Mono style.
1408
1409 2003-11-26  Tim Coleman <tim@timcoleman.com>
1410         
1411         * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
1412         * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
1413         * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
1414         * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
1415         * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
1416         * ResultSetSensitivity.cs StatementCompletedEventArgs.cs 
1417         * StatementCompletedEventHandler.cs UpdateOptions.cs:
1418                 New classes added for NET_2_0
1419         * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
1420         * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
1421                 Modifications to add new NET_2_0 functions
1422
1423 2003-11-25  Tim Coleman <tim@timcoleman.com>
1424         * IDataSources.cs:
1425                 New 1.2 class added
1426
1427 2003-11-21  Pedro Martínez Juliá  <yoros@wanadoo.es>
1428
1429         * DataRow.cs: Detached row can be accesible (new rows from data
1430         table are detached). Closes but #51263.
1431
1432 2003-11-19  Eran Domb  <erand@mainsoft.com>
1433         * DataRow.cs : Throw exceptions if Row is Detached. 
1434         (EndEdit) : Check that we are not in middle of ChangeEvent.
1435         (AcceptChanges) : Detach the row.
1436         
1437         * DataRelation.cs : throw correct exception.
1438         *UniqueConstraint.cs : throw correct exception.
1439         
1440
1441 2003-11-09  Pedro Martínez Juliá  <yoros@wanadoo.es>
1442
1443         * DataRow.cs: Use RemoveInternal instead of Remove because the last
1444         one uses Delete and AcceptChanges.
1445
1446         * DataRowCollection.cs: When removing, Delete and AcceptChanges
1447         method from the row are called. Added an internal method that will
1448         be used by DataRow to "physically" remove the row from the list.
1449
1450 2003-11-09  Pedro Martínez Juliá  <yoros@wanadoo.es>
1451
1452         * DataRowCollection.cs: To follow the specification: Remove and
1453         RemoveAt should remove the row. But needed to call DeletingDataRow
1454         to prepare the deleting.
1455
1456         * DataRow.cs: Don't call DeletingDataRow when it is called by the
1457         method Table.Rows.Remove.
1458
1459 2003-11-09  Pedro Martínez Juliá  <yoros@wanadoo.es>
1460
1461         * DataRowCollection.cs: Make the row be deleted by itself. If not,
1462         it fails because we need to call OnRowDeleting and OnRowDeleted. It
1463         is full implemented inside DataRow.
1464
1465 2003-11-05  Eran Domb  <erand@mainsoft.com>
1466         * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
1467
1468 2003-11-04  Eran Domb  <erand@mainsoft.com>
1469         * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
1470         on all Relations.
1471         (GetChildRows) : Adding some checks.
1472         (GetParentRows) : Adding some checks. Fix a bug in implementation.
1473         (SetParentRow) : Added implementation.
1474         
1475         * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
1476         * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
1477         * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
1478         * MergeManager.cs : Check that the target table is not null.
1479
1480 2003-10-27  Eran Domb  <erand@mainsoft.com>
1481         * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value 
1482         can be converted to the column type.
1483         
1484         * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
1485         
1486         * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
1487         (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
1488         
1489         * DataRowCollection.cs (Add) : Fixing a bug. 
1490         (Clear) : Before clearing the array check that there is no violation of FK constraint.
1491         
1492         * DataSet.cs (Prefix) : If value is null chage it to empty string.
1493         (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
1494         
1495         * ExpressionElement : Adding support for IN expresion.
1496         
1497         * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
1498         (Select) : Adding support for DataViewwRowState.
1499         
1500         * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
1501         
1502         * MergeManager.cs (MergeRow) : Fix bugs.
1503         
1504 2003-10-27  Eran Domb  <erand@mainsoft.com>
1505         * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
1506         check null values when ending loading data.
1507         
1508         * DataSet.cs (RejectChanges) : Imlementation.
1509         (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null, 
1510         change it to empty string.
1511         
1512         * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
1513         
1514 2003-10-22  Eran Domb  <erand@mainsoft.com>
1515         * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
1516         
1517         * ConstraintCollection.cs (RamoveAt): Change implemntation.
1518         
1519         * DataTableCollection (CanRemove): Removing cast to Constraint.
1520
1521 2003-10-22  Eran Domb  <erand@mainsoft.com>
1522         * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
1523         (Clear): The collection was cleared without removing the relation from the parent and child tables.
1524         
1525         * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
1526         (HasChanges, Reset): Imlementation.
1527         
1528         * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
1529         This is because the we do not no when to turn off the flag.
1530         (Locale): Changing implementation to behave like ADO.NET.
1531         (AcceptChanges): Fix bug.
1532         (Clear): Check that this table is not referenced from a foreign key constraint.
1533         (Copy): Do not try to access a deleted row.
1534         (CopyProperties): Copy the PrimaryKey.
1535         (GetChanges, ImportRow): Implementation.
1536         (LoadDataRow): Adding implementation if the table has PrimaryKey.
1537         (ToString): Changing implementation to behave like ADO.NET.
1538         
1539         * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
1540         
1541         * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
1542         (HasErrors): Implementation.
1543         (Delete): Added checking for child rows of the deleted row.
1544         (EndEdit): Added checking for child row and firing events.
1545         (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
1546         (GetColumnsInError): Added a check for null values in column error.
1547         (HasVersion): Added special treatment for special RowState.
1548         (CollectionChanged): More checks to avoid NullReferenceException.
1549         
1550         * DataRowCollection.cs (Remove): Fix a bug.
1551
1552
1553 2003-10-01  Duncan Mak  <duncan@ximian.com>
1554
1555         More patches from Eran Domb <erand@mainsoft.com>.
1556
1557         * MergeManager.cs: New file.
1558
1559         * DataRelationCollection.cs (AddCore): Check that a
1560         UniqueConstraint is already exists. It loops over the Relations
1561         instead of the Constraints.
1562         (Add, AddCore): The relation was added twice.
1563
1564         * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.      
1565
1566 2003-09-30  Duncan Mak  <duncan@ximian.com>        
1567
1568         Patches from Eran Domb <erand@mainsoft.com>.
1569
1570         * DataRelation.cs (constructor): When the name of the relation is
1571         null, it should return an empty, not "Relation".
1572         
1573         * DataRow.cs (AcceptChanges): Added special case for
1574         RowState.Detached.
1575         (CancelEdit): Set editing flag to false.
1576         (IsNull): Check that the value is DBNull.
1577
1578         * DataRowCollection.cs (Add): There was no check that the table of
1579         the collection is owned by a DataSet.
1580
1581         * DataSet.cs (OnMergeFailed): Added.    
1582
1583         * UniqueConstraint.cs (AssertConstraint): There was no check that
1584         values in the row are not null, where it is a primary key
1585         column. Also check that the row has a proposed version, if not,
1586         get the current version when we compare the rows.
1587
1588 2003-09-25  Duncan Mak  <duncan@ximian.com>
1589
1590         Patches from Eran Domb <erand@mainsoft.com>.
1591
1592         * DataColumn.cs (Unique): Implemented.
1593         
1594         * DataTable.cs:
1595         * ConstraintCollection.cs:
1596         * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
1597         an Exception thrown. Details:
1598         http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
1599         
1600         * DataRowCollection.cs (Add): There is no checking that there is
1601         no violation of the unique constrains.
1602
1603         * UniqueConstraint.cs (AssertConstraint): There is no checking on
1604         all columns in the constraint.
1605
1606         * DataTableCollection (Add): Correctly throw an Exception, more
1607         details here:
1608         http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
1609         (Remove, RemoveAt): Implemented.
1610
1611 2003-07-31  Duncan Mak  <duncan@ximian.com>
1612
1613         * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
1614
1615 2003-07-25  Ravi Pratap  <ravi@ximian.com>
1616
1617         * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
1618         method on a delegate is disallowed - fix this.
1619
1620 2003-07-22  Lluis Sanchez Gual  <lluis@ximian.com>
1621
1622         * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
1623           xml serialization. Modified method of writing schema. Now it creates
1624           a XmlSchema object and serializes it using XmlSerializer.
1625         * XmlConstants.cs: Added constants for data type names.
1626         * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
1627           type specified in the column.
1628
1629 2003-04-20  Alan Tam <Tam@SiuLung.com>
1630
1631         * DataRelationCollection.cs: Fix a bug that prevent relations
1632         from being added via DataSet.
1633
1634 2003-04-12  Ville Palo <vi64pa@kolumbus.fi>
1635
1636         * UniqueConstraint.cs: one tiny fix.
1637         
1638 2003-04-05  Ville Palo <vi64pa@kolumbus.fi>
1639
1640         * DataTable.cs: Remove UniqueConstraints when adding new ones
1641         
1642 2003-04-04  Ville Palo <vi64pa@kolumbus.fi>
1643
1644         * DataColumnCollection.cs: Little 'case sensitive' fix
1645         
1646 2003-04-04  Ville Palo <vi64pa@kolumbus.fi>
1647
1648         * DataRow.cs: AutoIncrement handling to Constructor
1649         * DataRowCollection.cs: This doesnt need anymore AutoIncrements
1650         
1651 2003-03-27  Ville Palo <vi64pa@kolumbus.fi>
1652
1653         * DataTable.cs: Some fixes to PrimaryKey etc...
1654         * UniqueConstraint.cs: Little clean up
1655         
1656 2003-03-27  Ville Palo <vi64pa@kolumbus.fi>
1657
1658         * DataTable.cs: Tiny fix to ToString () -method
1659         
1660 2003-03-27  Ville Palo <vi64pa@kolumbus.fi>
1661
1662         * ConstraintCollection.cs: Little fix.
1663         * DataColumn.cs: Added new internal method SetUnique()
1664         * UniqueConstraint.cs: some little fixes
1665         
1666 2003-03-26  Ville Palo <vi64pa@kolumbus.fi>
1667
1668         * DataRowCollection.cs: Bugfixes, implementation,...
1669         
1670 2003-03-26  Ville Palo <vi64pa@kolumbus.fi>
1671
1672         * DataColumn.cs: If DataType if set to something else than short, int
1673         or long and AutoIncrement is true, AutoIncrement is must set to false.
1674         
1675 2003-03-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1676
1677         * DataRow.cs:
1678         (BeginEdit): fixed array bound problem when a column has been added.
1679         (EndEdit): just assign proposed to current as proposed is set to null.
1680         This also fixes another array boudn problem.
1681
1682 2003-03-21  Alan Tam <Tam@SiuLung.com>
1683
1684         * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
1685         EndEdit and AcceptChanges to act correctly according to DataRowState
1686         and DataRowVersion.
1687         * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
1688         attached and detached from the collection.
1689
1690 2003-03-20  Alan Tam <Tam@SiuLung.com>
1691
1692         * DataColumn.cs: Store empty string for Expression when null is passed in.
1693         Classes generated by XSD.exe passes null by default.
1694
1695 2003-03-16  Ville Palo <vi64pa@kolumbus.fi>
1696
1697         * DataColumnCollection.cs: Tiny clean up
1698
1699 2003-03-16  Ville Palo <vi64pa@kolumbus.fi>
1700
1701         * DataColumn.cs: little fixes.
1702         * DataColumnCollection.cs: Lots of little fixes and improvments.
1703         
1704 2003-03-12  Alan Tam <Tam@SiuLung.com>
1705
1706         * DataSet.cs: Fixed a bug that the file written does not close correctly.
1707
1708 2003-03-08  Alan Tam <Tam@SiuLung.com>
1709
1710         * DataRelationCollection.cs: Removed the mis-overridden methods
1711         * DataRow.cs: Fixed an attribute
1712         * DataSet.cs: Fixed the modifiers
1713
1714 2003-03-06  Aleksey Demakov <avd@openlinksw.com>
1715
1716         * DataTableCollection.cs: The Contains (string name),
1717         IndexOf (string name) methods, and item[string name] indexer
1718         now behave more like .NET with respect to case-sensitivity.
1719         That is if there is an exactly matching item then this one is used.
1720         If there is only one item differing in case then it used.
1721         If there are more than one item differing in case then
1722         Contains returns false, IndexOf returns -1, and item[]
1723         throws an ArgumentException.
1724
1725 2003-02-28  Ville Palo <vi64pa@kolumbus.fi>
1726
1727         * ExpressionElement.cs: More implementation. 
1728         
1729 2003-02-28  Alan Tam <Tam@SiuLung.com>
1730         * DataSet.cs: Changed WriteTable so that it now calls the newly written
1731         WriteObjectXml to direct the call to the respective XmlConvert method.
1732         This fixes the wrong format written to XML files of bool, float,
1733         double, DateTime and TimeSpan types.
1734
1735 2003-02-25  Alan Tam <Tam@SiuLung.com>
1736
1737         * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
1738         * DataRelationCollection.cs: Implemented AddRange and Contains.
1739         Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
1740         Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
1741         Reimplemented most Add methods to eliminate duplicated checks.
1742         Centralized RelationName generation procedure in GetNextDefaultRelationName.
1743
1744 2003-02-25  Alan Tam <Tam@SiuLung.com>
1745
1746         * DataColumn.cs: Fixed wrong storage representation of Expression
1747         (using empty string instead of null) so that ToString() returns nothing.
1748         * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
1749         auto column naming now works as expected. Reimplemented some Add methods
1750         to eliminate code duplication.
1751
1752 2003-02-19  Ville Palo <vi64pa@kolumbus.fi>
1753
1754         * DataTable.cs: DataTable.CaseSensitive follows parent 
1755         DataSet.CaseSensitive property if DataTable.CaseSensitive has never
1756         been changed directly from DataTable
1757         
1758 2003-02-19  Ville Palo <vi64pa@kolumbus.fi>
1759
1760         * DataSet.cs: When CaseSensitive property is changed all of the Tables
1761         of DataSet have to change too
1762         
1763 2003-02-19  Daniel Morgan <danmorg@sc.rr.com>
1764
1765         * InternalDataCollectionBase.cs: revert change to field
1766         to fix build
1767         
1768         * DataViewManager.cs
1769         * DataView.cs
1770         * DataTable.cs
1771         * DataSet.cs: commented use of DesignerAttribute
1772         because it broke the build.  According to MSDN,
1773         DesignerAttribute does not have a zero-argument constructor
1774
1775 2003-02-18  Ville Palo <vi64pa@kolumbus.fi>
1776
1777         * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
1778         
1779 2003-02-18  Alan Tam <Tam@SiuLung.com>
1780
1781         * DataRow.cs: Implemented GetParentRow and GetParentRows.
1782         * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
1783                       OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
1784                       RaisePropertyChanging.
1785         * DataTable.cs: Implemented NewRowArray.
1786         * DataTablePropertyDescriptor: Fixed a modifier.
1787         * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
1788         * PropertyCollection.cs: Minor fix.
1789         * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs 
1790         * DataRelation.cs DataRelationCollection.cs DataRow.cs
1791         * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
1792         * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
1793         * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
1794         * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
1795         * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
1796         
1797 2003-02-08  Ville Palo <vi64pa@koti.soon.fi>
1798
1799         * ExpressionElement.cs: More implementation
1800         
1801 2003-02-05  Alan Tam <Tam@SiuLung.com>
1802
1803         * DataSet.cs: Added framework for DataSet.Update Implemented missing 
1804         methods GetSchemaSerializable, GetSerializationData, 
1805         ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
1806         for DataSet
1807         * DataTable.cs: Implemented missing methods CreateInstance and 
1808         GetRowType for DataTable
1809         
1810 2003-02-03  Ville Palo <vi64pa@koti.soon.fi>
1811
1812         * DataSet.cs: Implemented private method MapType for 
1813         mapping datatypes for XmlSchema
1814         
1815 2003-02-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1816
1817         * DataView.cs: implemented Dispose.
1818
1819 2003-01-30  Ville Palo <vi64pa@koti.soon.fi>
1820
1821         * ExpressionElement.cs: Added new file. This file is for parsing
1822           and DataData.Select () -methods and DataColumn.Expression -property
1823         * DataTable.cs: Implemented Select(string) -method      
1824         
1825 2003-01-28  Ville Palo <vi64pa@koti.soon.fi>
1826
1827         * DataSet.cs: One little fix to writing xml
1828         
1829 2003-01-27  Ville Palo <vi64pa@koti.soon.fi>
1830
1831         * XmlSchemaMapper.cs: Some fixes.
1832         * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
1833
1834                 
1835 2003-01-24  Ville Palo <vi64pa@koti.soon.fi>
1836
1837         * UniqueConstraint.cs: Do not set columns Unique property true 
1838         as a default.
1839         * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
1840         
1841 2003-01-18  Ville Palo <vi64pa@koti.soon.fi>
1842
1843         * DataTableCollection.cs: Now names new DataTable if it doesn't 
1844         already have a name.
1845         
1846 2003-01-17  Ville Palo <vi64pa@koti.soon.fi>
1847
1848         * XmlSchemaMapper.cs: Improvments.
1849         * XmlConstaints.cs: Added more constants.
1850         * DataSet.cs: Improvments of reading and writing xml
1851         * DataColumn.cs: Added default values of properties.
1852                 
1853 2003-01-14  Ville Palo <vi64pa@koti.soon.fi>
1854
1855         * XmlSchemaMapper.cs: Some improvments
1856         
1857 2003-01-13  Ville Palo <vi64pa@koti.soon.fi>
1858
1859         * DataRowCollection.cs: Added IndexOutOfRangeException
1860         * DataTableCollection.cs: Added OnCollectionChanging and 
1861         OnCollectionChanged events.
1862         * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
1863         * DataTable.cs: Implemented Copy () and Clone () methods.
1864         * XmlDataLoader.cs: some fixes.
1865         * XmlSchemaMapper.cs: comments.
1866         
1867 2003-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1868
1869         * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
1870
1871 2003-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1872
1873         * DataColumnPropertyDescriptor.cs: fixed typo.
1874         * DataViewManagerListItemTypeDescriptor.cs: added new internal property
1875         to get the DataViewManager and removed TablePD class.
1876         * DataTablePropertyDescriptor.cs: TablePD class is now this one as
1877         suggested by danmorg.
1878
1879 2003-01-06  Ville Palo <vi64pa@koti.soon.fi>
1880
1881         * XmlDataLoader.cs: Moved diffgram stuff to new internal class
1882         XmlDiffLoader.
1883         * XmlDiffLoader.cs: new class for diffgrams. Added handling of 
1884         diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
1885         
1886 2003-01-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1887
1888         * DataView.cs: made dataViewManager internal.
1889         * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
1890         properties of the object, but the values of the columns present in a
1891         row.
1892         
1893         * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
1894         which returns a PropertyDescriptorCollection. Created a new class
1895         derived from PropertyDescriptor that treats Table as an object whose
1896         properties are DataRowView.
1897
1898 2003-01-04  Ville Palo <vi64pa@koti.soon.fi>
1899
1900         * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
1901         
1902 2003-01-04  Ville Palo <vi64pa@koti.soon.fi>
1903
1904         * DataColumn.cs: ExtendedProperties is by default !null-
1905         
1906 2003-01-04  Ville Palo <vi64pa@koti.soon.fi>
1907
1908         * DataColumnCollection.cs: Add (DataColumn Column) -method didn't 
1909         set column's ordinal.
1910         
1911 2003-01-02  Ville Palo <vi64pa@koti.soon.fi>
1912
1913         * DataSet.cs: 
1914         * XmlDataLoader.cs: XmlReader closing fixes.
1915         * XmlSchemaReader.cs: Added support for ref=
1916         
1917 2003-01-01  Ville Palo <vi64pa@koti.soon.fi>
1918
1919         * DataSet.cs: 
1920           - Added XmlReader and XmlWriter Closing.
1921           - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
1922         * XmlSchemaMapper.cs
1923           - Much better way IMHO  to map xmlschema than the old one in 
1924             DataSet.cs. Its, more flexible, cleaner, ...
1925                         
1926 2002-12-29  Ville Palo <vi64pa@koti.soon.fi>
1927
1928         * XmlDataLoader.cs: Reading diffgrams.
1929         
1930 2002-12-29  Ville Palo <vi64pa@koti.soon.fi>
1931
1932         * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
1933         * DataTable.cs: Added ChanginDataColumn () for triggering 
1934         DataColumnChanging event
1935         
1936 2002-12-28  Ville Palo <vi64pa@koti.soon.fi>
1937
1938         * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
1939         
1940 2002-12-28  Ville Palo <vi64pa@koti.soon.fi>
1941
1942         * DataSet.cs: Indentations to WriteXml ()
1943         
1944 2002-12-27  Ville Palo <vi64pa@koti.soon.fi>
1945
1946         * DataSet.cs:
1947         * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
1948         class XmlDataLoader.cs
1949         
1950 2002-12-19  Ville Palo <vi64pa@koti.soon.fi>
1951
1952         * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
1953         
1954 2002-12-18  Ville Palo <vi64pa@koti.soon.fi>
1955
1956         * DataSet.cs: Started to implement ReadXml-methods.
1957         
1958 2002-12-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1959
1960         * DataSet.cs: implemented DefaultViewManager and GetList.
1961
1962         * DataViewManager.cs: a bit of work on IList and ITypedList needed by
1963         DataList in System.Web.
1964
1965         * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
1966         DataViewManager.
1967
1968 2002-12-16  Ville Palo <vi64pa@koti.soon.fi>
1969
1970         * DataRow.cs
1971         * DataTable.cs: Fixed NullException (rollback -event)
1972         * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
1973         
1974 2002-12-15  Ville Palo <vi64pa@koti.soon.fi>
1975
1976         * DataRow.cs:
1977         * DataRowCollection.cs: Moved event triggering from DataRow to
1978         DataRowCollection.
1979         
1980 2002-12-09  Ville Palo <vi64pa@koti.soon.fi>
1981
1982         * DataSet.cs: Little fix to WriteTable () -method 
1983         and DoReadXmlSchema () -method.
1984         
1985 2002-12-06  Ville Palo <vi64pa@koti.soon.fi>
1986
1987         * DataSet.cs: Clean up to reading xmlschema. This looks much better 
1988         now (work better too), but it not working correctly yet.
1989         
1990 2002-12-04  Ville Palo <vi64pa@koti.soon.fi>
1991
1992         * DataRow.cs: 
1993         * DataRowCollection.cs: Added some event handlins stuff.
1994         * DataSet.cs: Some fixes.
1995         * DataTable.cs: Added event handlers.
1996         
1997 2002-11-30  Ville Palo <vi64pa@koti.soon.fi>
1998
1999         * DataRowChangeEventArgs.cs: Implemented Action and Row properties 
2000         
2001 2002-11-30  Ville Palo <vi64pa@koti.soon.fi>
2002
2003         * System.Data/DataRow.cs: Added internal property XmlDataID
2004         
2005 2002-11-29  Ville Palo <vi64pa@koti.soon.fi>
2006
2007         * DataSystem.Data.DataTableCollection.cs:
2008         Removed HashTable. There could be situations where DataTable
2009         is added to collection before it hava TableName. So using 
2010         HashTable is impossible.
2011         
2012 2002-11-19  Carlos Guzmán Álvarez <carlosga@telefonica.net>
2013
2014         * DataRow.cs: an object that is equal to null 
2015         should be allowed to be set in this indexer too
2016         to be like .NET
2017
2018 2002-11-06  Daniel Morgan <danmorg@sc.rr.com>
2019
2020         * DataColumnPropertyDescriptor.cs: added file
2021         
2022         * System.Data/DataRowView.cs: started implementation
2023         
2024         * DataTable.cs: stubbed more interfaces.  Implemented
2025         IListSource.GetList()
2026         
2027         * DataView.cs: stubbed more interfaces.  Implemented
2028         some properties and methods: GetEnumerator(), 
2029         ITypedList.GetItemProperties, Item indexer, CopyTo()
2030
2031 2002-05-18  Nick Drochak  <ndrochak@gol.com>
2032
2033         * DataRow.cs: Fix typo.