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