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