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