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