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