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