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