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