Wed Feb 24 15:47:16 CET 2010 Paolo Molaro <lupus@ximian.com>
[mono.git] / mcs / class / System.Data / System.Data / ChangeLog
1 2010-02-10  Marek Habersack  <mhabersack@novell.com>
2
3         * XmlSchemaDataImporter.cs: the <connections> element might be
4         empty - make sure FirstChild of the element is not null before
5         attempting to use it. Fixes bug #578587
6
7 2009-10-30  Veerapuram Varadhan  <vvaradhan@novell.com>
8
9         * DataTable.cs: Reuse old utility methods for raising DataTable 
10         clearing/cleared events.
11         * DataRowCollection.cs (Clear): Raise DataTable clearing/cleared 
12         events only for non 1.x profiles.  Fixes broken 1.x build.
13         
14 2009-10-30  Veerapuram Varadhan  <vvaradhan@novell.com>
15
16         ** Fixes 448296
17         * DataTable.cs (Clear): Do not raise TableClearing/Cleared events as 
18         they will be raised from DataRowCollection.Clear().  New utility methods 
19         for raising TableClearing/TableCleared events from outside DataTable.  
20         Don't manually reset indexes as ResetIndexes is called from 
21         DataRowCollection.Clear
22         * DataRowCollection.cs (Clear): Raise TableClearing/Cleared events accordingly.
23         
24 2009-10-29  Veerapuram Varadhan  <vvaradhan@novell.com>
25
26         ** Fixes 332875 - based on analysis by Ben Martin <ben@trustorm.com.au>
27         * XmlSchemaDataImporter.cs (AddParentKeyColumn): If a table already has a 
28         PrimaryKey column defined, when called again, fill the PKCol data into the 
29         passed DataColumn and return.
30         
31 2009-10-29  Veerapuram Varadhan  <vvaradhan@novell.com>
32
33         ** Fixes #550960 - Patch by Stefano <stefano.sapienti@apsystems.it>
34         * DataTable.cs (BinarySerialize): Use datatype from DataColumn 
35         instead of value of the column.
36         
37 2009-10-14  Jonathan Pryor  <jpryor@novell.com>
38
39         * XmlSchemaDataImporter.cs: Remove DbProviderFactories dependency in
40           the MonoTouch profile.
41
42 2009-10-13  Veerapuram Varadhan  <vvaradhan@novell.com>
43
44         ** Fixes #537229
45         * XmlDiffLoader (LoadColumnAttributes/Children): Decode column names in 
46         case if they are encoded.
47         
48 2009-09-26  Veerapuram Varadhan  <vvaradhan@novell.com>
49
50         ** Fixes part of #427769 - Patch by John Lenz <jlenz2@math.uiuc.edu>
51         * DataSet.cs: XML serialization improvements to be compatible with MS impl.
52         
53 2009-09-15  Veerapuram Varadhan  <vvaradhan@novell.com>
54         
55         ** Fixes #536194 - Patch by Andrew Kurochk <aaki.viper@gmail.com>
56         * MergeManager.cs (Merge*): Do nothing when source and target 
57         datasets are same.
58         
59 2009-09-10  Veerapuram Varadhan  <vvaradhan@novell.com>
60
61         ** Fixes #510176
62         * DataView.cs (OnRowChanged/OnRowDeleted): Raise appropriate events iff 
63         view is affected. This silence of the numerous Add/Change events that were
64         getting raised from DataView.
65         (ToTable): Use appropriate index to generated DataTable in case of 
66         RowFilter / Sort conditions.
67         
68         * DataRow.cs (AcceptChanges/RejectChanges): Raise appropriate Changing events
69         
70 2009-09-03  Ivan N. Zlatev  <contact@i-nz.net>
71
72         * DataColumnPropertyDescriptor.cs, DataView.cs: Not browsable if Hidden.
73         [Fixes the second part of bug #536547]
74
75 2009-08-25  Veerapuram Varadhan  <vvaradhan@novell.com>
76
77         ** Fixes #521951
78         * DataViewManager.cs (CollectionToListChangeEventArgs) : Use a corresponding 
79         DataTable/DataRelation obj instead of only DataRelation.
80         
81 2009-07-30  Veerapuram Varadhan  <vvaradhan@novell.com>
82
83         * CustomDataClassGenerator.cs (MakeSafeName): Throw NRE instead of 
84         ArgumentNullException - fixes failing tests.
85         
86 2009-07-23  Veerapuram Varadhan  <vvaradhan@novell.com>
87
88         * XmlSchemaDataImporter.cs (HandleDataSourceAnnotation): Don't rely 
89         on the order of elements.
90         
91 2009-07-23  Veerapuram Varadhan  <vvaradhan@novell.com>
92
93         * XmlSchemaDataImporter.cs: String.IsNullOrEmpty changes
94         
95 2009-07-23  Veerapuram Varadhan  <vvaradhan@novell.com>
96
97         * XmlSchemaDataImporter.cs: Added null checks.
98         
99 2009-07-22  Veerapuram Varadhan  <vvaradhan@novell.com>
100
101         * XmlSchemaDataImporter.cs:
102         CustomDataClassGenerator.cs: Silence off CWLs.
103         
104 2009-07-22  Veerapuram Varadhan  <vvaradhan@novell.com>
105         
106         * CustomDataClassGenerator.cs (CreateCommandCollectionInitializeMethod):
107         Fix generation of DbCommand[] instead of DbCommand()[].  Fix IndexRef to 
108         ref proper index.
109         Avoid using SourceColumnNullMapping property in the constructor 
110         of DbParameter while creating the code.
111         
112 2009-07-18  Veerapuram Varadhan  <vvaradhan@novell.com>
113
114         * CustomDataClassGenerator.cs (CreateDbSourceMethods): Handle cases of Scalar 
115         and NoData QueryTypes.
116         
117 2009-07-17  Veerapuram Varadhan  <vvaradhan@novell.com>
118         
119         * TableAdapterSchemaInfo.cs: Wrap DbCommand within DbCommandInfo and 
120         define MethodInfo to hold method properties common to both Get and Fill.
121         
122         * CustomDataClassGenerator.cs (CreateDbSourceMethods): Handle cases of Fill 
123         and Get appropriately.
124         
125 2009-07-16  Veerapuram Varadhan  <vvaradhan@novell.com>
126
127         * CustomDataClassGenerator.cs (CreateDbSourceMethods):  Handle 
128         methods of type "Fill".
129         
130         * XmlSchemaDataImporter.cs (ProcessDbParameters): Handle empty strings 
131         while setting parameter properties.
132         
133 2009-07-15  Veerapuram Varadhan  <vvaradhan@novell.com>
134
135         ** Part of fix for #325464
136         * CustomDataClassGenerator.cs: Add implementation to generate 
137         TableAdapter code.
138         
139         * DataSet.cs (TableAdapterSchemaData): New internal property that 
140         holds TableAdapter details to generate code from.
141         
142         * XmlConstants.cs: Add Msdatasource constant to handle 
143         <...:xml-msdatasource> elements.
144         
145         * XmlSchemaDataImporter.cs: Implement handling of <TableAdapter ...>
146         * TableAdapterSchemaInfo.cs: New 
147         
148 2009-05-16  Veerapuram Varadhan  <vvaradhan@novell.com>
149
150         ** Fixes #325464 - ToolItems.xsd
151         * CustomDataClassGenerator.cs (CreateDataSetTableMembers): Prefix a "_" to 
152         member names when it is same as that of the dataset.  Fixes the CS0542 error
153         during compilation of the generated source.
154         
155 2009-03-25  Ivan N. Zlatev  <contact@i-nz.net>
156
157         * DataView.cs: Fire ListChanged when the RowFilter changes.
158         [Fixes bug #479405]
159
160 2009-02-24  Veerapuram Varadhan  <vvaradhan@novell.com>
161
162         * *Fixes #377146 - in a better way
163         * XmlDataReader.cs (ReadElementElement): For reference types that
164         implement IXmlSerializable, call the corresponding ReadXml.
165         * DataSet.cs (WriteColumnAsElement): For reference types that implement 
166         IXmlSerializable, call the corresponding WriteXml.
167         
168 2009-02-24  Veerapuram Varadhan  <vvaradhan@novell.com>
169
170         * Fixes #476523
171         * DbType.cs: Add DateTime2 and DateTimeOffset - 3.5 additions
172         Patch by Jay Wren <jrwren@xmtp.net>
173         
174 2009-01-05  Raja R Harinath  <harinath@hurrynot.org>
175
176         * DataRelationCollection.cs (BinarySerialize): New.  Carved out of ...
177         * DataSet.cs (BinarySerialize): ... this.
178
179 2009-01-04  Raja R Harinath  <harinath@hurrynot.org>
180
181         * DataRelationCollection.cs: Sequester NET_2_0 and NET_1_1
182         specific code into separate parts.
183
184         * DataTableCollection.cs (BinarySerialize_Schema): New.
185         (BinarySerialize_Data): Likewise.  Carved out of ...
186         * DataSet.cs (BinarySerialize): ... this.
187
188 2009-01-04  Raja R Harinath  <harinath@hurrynot.org>
189
190         * DataTableCollection.cs: Sequester NET_2_0 and NET_1_1 specific
191         code into separate parts.
192
193 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
194
195         * DataViewManager.cs: Implement all MonoTODO. Fixes the WinForms 
196         DataBinding unit tests.
197
198 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
199
200         * DataViewManager.cs: Hookup to the table/relations changed events and 
201         raise ListChanged events accordingly.
202
203 2008-12-30  Gert Driesen  <drieseng@users.sourceforge.net>
204
205         * DBConcurrencyException.cs: Marked .ctor taking DataRow [] as
206         internal so we can use it on the 1.0 profile (internally). Implemented
207         RowCount.
208
209 2008-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
210
211         * SqlDbType: Added Date and Time (2.0 only).
212
213 2008-11-18  Raja R Harinath  <harinath@hurrynot.org>
214
215         Fix #420862
216         * XmlConstants.cs (QnUnsignedShort): Rename from QnUsigned short
217         and fix the value too.
218         * XmlSchemaWriter.cs (XmlQualifiedName): Update to changes.
219
220 2008-09-27  Raja R Harinath  <harinath@hurrynot.org>
221
222         * DataView.cs: Convert into a partial class and sequester
223         interface-implementations and NET_2_0 pieces into separate parts.
224
225 2008-09-16  brandin claar  <brandin.claar@gmail.com>
226             Raja R Harinath  <harinath@hurrynot.org>
227
228         * DataTable.cs (BinarySerialize): Handle empty DataTables.
229         (DeserializeRecords): Likewise.
230         (BinaryDeserializeTable): Allow DefaultValue to be set to any value.
231
232 2008-09-12  Raja R Harinath  <harinath@hurrynot.org>
233
234         * DataTable.cs (NewRowAdded): Make into partial method.
235         (DataTableClearing, DataTableCleared): New partial methods.
236         (Clear): Use them.
237
238         * DataTable.cs: Sequester ISupportInitializationNotification
239         pieces into separate part.
240         (DataTableInitialized): Turn into a 'partial method' to avoid #ifs.
241
242         * DataTable.cs (AssertNotNullConstraints): Hoist out a more useful
243         loop-invariant by inverting loops.
244         (RowExists): Outdent.  Rewrite for slightly better clarity.
245         (BeginLoadData): Outdent.
246         (GetChanges): Outdent.  Replace GetEnumerator/while with foreach.
247
248         * DataTable.cs: Convert to a partial class, sequester NET_2_0
249         specific and IXmlSerializable specific pieces into separate parts.
250
251 2008-09-07  Raja R Harinath  <harinath@hurrynot.org>
252
253         * DataSet.cs: Convert to a partial class and sequester NET_2_0
254         pieces into a separate part.
255
256         * DataRowView.cs: Convert to a partial class, and sequester
257         NET_2_0 parts into a separate part.  Use partial classes instead
258         of ugly #region directives.
259         (Item): Remove redundant attributes.  Cleanup slightly.
260
261 2008-09-05  Raja R Harinath  <harinath@hurrynot.org>
262
263         * DataRowCollection.cs (RemoveInternal): Update RowIDs of rows
264         after the deleted row.
265         (IndexOf): Avoid loop to search for a row, since we already know
266         where a row is: its RowID.
267         (Remove): Use IndexOf rather than List.Contains.
268
269         * DataRowCollection.cs (InsertRow): Delegate setting of RowId
270         to the row itself.  Use 'row.AttachAt' instead of 'row.AttachRow'.
271         (AddInternal): Likewise.  Also delegate handling of
272         ChangeCurrentAndOriginal to AttachAt.
273         * DataRow.cs (AttachAt): Rename from AttachRow.  Set rowId from
274         passed-in id.  Handle ChangeCurrentAndOriginal and ChangeOriginal
275         actions.
276
277         * DataRow.cs (_hasParentCollection): Remove.  Implied by _rowId >= 0.
278         (HasParentCollection): Remove.
279         * DataRowCollection.cs (AddInternal, InsertAt): Update to changes.
280
281         * DataTable.cs (NewRowArray): Special case size == 0 to avoid
282         creating a lot of garbage.
283
284         * DataRow.cs (Detach): Rename from DetachRow.  Make private.
285         Simplify code to be more uniform.  Move common prefix code here ...
286         (AcceptChanges) [Deleted]: ... from here ...
287         (Delete) [Added]: ... and here ...
288         (RejectChanges) [Added]: ... and here.
289
290 2008-09-04  Raja R Harinath  <harinath@hurrynot.org>
291
292         * DataRow.cs (CheckChildRows) <1-arg variant>: Remove excessive
293         indentation.
294         (CheckChildRows) <3-arg variant>: Likewise.  Move/split loop
295         inside a switch.
296         (EndEdit): Out-dent some code.
297         (IsNullColumns): Simplify slightly.
298
299         * DataRelationCollection.cs (CanRemove): Simplify slightly.
300
301         * DataRelation.cs (CheckStateForProperty): Use the childColumn to
302         get the child table.
303
304         * DataColumn.cs (AllowDBNull.set): Rearrange code to be more readable.
305         (AutoIncrement.set): Likewise.
306         (Caption): Likewise.
307         (SetDefaultValue): Likewise.
308
309 2008-08-28  Raja R Harinath  <harinath@hurrynot.org>
310
311         * Constraint.cs (SetExtendedProperties): New internal method.
312         Move here from ...
313         (ExtendedProperties.set): ... here.  Kill a #ifdef.
314         * DataTable.cs (DeserializeConstraints): Update to changes.
315
316 2008-08-27  Raja R Harinath  <harinath@hurrynot.org>
317
318         * ConstraintCollection.cs (Item) <string variant>: Don't incur
319         additional check for index that's returned by 'IndexOf'.
320         (_createNewConstraintName): Improve readability of code.
321         (_isDuplicateConstraintName): Perform cheaper test first.
322
323         * ConstraintCollection.cs: Reduce some #ifdef by using partial
324         classes.  Move 'sealed' and '[Serializable]' to appropriate
325         partial class declarations.
326         * DataRowCollection.cs: Likewise.
327
328 2008-08-13  Marek Habersack  <mhabersack@novell.com>
329
330         * DataRow.cs: do not check whether a column is read-only when
331         importing a record.
332
333 2008-08-08  Raja R Harinath  <harinath@hurrynot.org>
334
335         * DataColumn.cs: Update to changes in DataCollection.
336
337 2008-07-29  Veerapuram Varadhan  <vvaradhan@novell.com>
338
339         Fixes ##377146
340         * XmlDataReader.cs (ReadElementElement): Handle custom reference types sanely.
341
342 2008-07-20  Gert Driesen  <drieseng@users.sourceforge.net>
343
344         * DataColumnCollection.cs (IndexOf): Include name of column - for which
345         there are multiple matches in a different case - in the exception
346         message.
347         * DataRow.cs (this [int]): On 2.0 profile, throw ArgumentException if
348         value is null and datatype of column is a value type. On 1.0 profile,
349         only allow null value if datatype of column is string. Do not replace
350         value with DBNull.Value if value is null.
351
352 2008-07-04  Gert Driesen  <drieseng@users.sourceforge.net>
353
354         * DataRow.cs: Use indexer of DataColumnCollection instead of IndexOf.
355         Cosmetic changes to exception message.
356         * DataColumnCollection.cs: Fixed off by one error in index check. Added
357         null check in name indexer. In Clear, also reset columnNameCount and
358         defaultColumnIndex.
359
360 2008-07-03  Gert Driesen  <drieseng@users.sourceforge.net>
361
362         * DataRow.cs: Added missing null checks. Cosmetic changes to exception
363         messages.
364
365 2008-07-03  Marek Habersack  <mhabersack@novell.com>
366
367         * DataRow.cs (this []): Use DBNull instead of throwing an exception
368         
369 2008-07-01  Rodrigo Kumpera  <rkumpera@novell.com>
370
371         * DataTable.cs: Kill some foreach loops.
372         
373         * DataRow.cs: Same.
374
375 2008-07-01  Marek Safar  <marek.safar@gmail.com>
376
377         * DataColumnCollection.cs: Made few simple optimizations.
378
379 2008-06-28  Zoltan Varga  <vargaz@gmail.com>
380
381         * DataTable.cs (NewRowArray): Avoid using reflection if possible.
382
383 2008-06-19  Atsushi Enomoto  <atsushi@ximian.com>
384
385         * DataRelation.cs : keep createConstraints flag for cloning in
386           DataSet.Merge(). Use different flag for initialization instead.
387         * MergeManager.cs : When cloning DataRelation, createConstraints
388           flag should depend on the source.
389         * XmlSchemaDataImporter.cs : create constraints when creating
390           DataRelation.
391
392 2008-06-18  Atsushi Enomoto  <atsushi@ximian.com>
393
394         * DataSet.cs : when InferSchema mode, ReadXml() should do "merging
395           inference".
396         * XmlDataInferenceLoader.cs : fixed primary key processing in
397           merging inference mode. Reuse existing one, instead of rejecting
398           such a table.
399
400 2008-06-17  Atsushi Enomoto  <atsushi@ximian.com>
401
402         * XmlSchemaWriter.cs, DataSet.cs, XmlTableWriter.cs, DataTable.cs,
403           XmlDataInferenceLoader.cs, XmlSchemaDataImporter.cs:
404           fix xsd output on msdata:Locale and msdata.UseCurrentCulture.
405           Output explicit Locale only when it is explicitly specified.
406           On the other hand, ReadXml/ReadXmlSchema fills Locale as en-US
407           by default (on .NET).
408           Some code unification in DataTable.WriteXmlSchema() overloads.
409
410 2008-06-16  Atsushi Enomoto  <atsushi@ximian.com>
411
412         * DataColumn.cs : replaced Activator.CreateInstance() with
413           returning explicit Null member for each SqlXxx type.
414
415 2008-06-13  Atsushi Enomoto  <atsushi@ximian.com>
416
417         * DataColumn.cs
418           DefaultValue can be non-DBNull. For SqlXxx type, it becomes
419           SqlXxx.Null. Also, changing DataType may change DefaultValue
420           to be consistent with the new type (say, having int DefaultValue
421           for new string DataType is wrong).
422
423         * XmlSchemaWriter.cs
424           This should be fixed to take non-DBNull default value into
425           consideration.
426
427 2008-06-12  Atsushi Enomoto  <atsushi@ximian.com>
428
429         * DataSet.cs, DataTable.cs, XmlSchemaDataImporter.cs : constraints
430           on missing tables are ignored when reading a DataTable schema.
431           Fixes part of DataTableTest.ReadXmlSchema() test.
432
433 2008-05-30  Marek Habersack  <mhabersack@novell.com>
434
435         * Constraint.cs: do not use synthetized event accessors (to avoid
436         locks).
437
438 2008-05-29  Marek Habersack  <mhabersack@novell.com>
439
440         * DataColumn.cs: do not use synthetic methods for events - this
441         avoids unnecessary locking, especially for internal events.
442
443 2008-04-21  Gert Driesen  <drieseng@users.sourceforge.net>
444
445         * DataRowView.cs: Modified argument names to match MS. Use 
446         String.Empty instead of "". Code formatting.
447
448 2008-04-16  Veerapuram Varadhan <vvaradhan@novell.com>
449
450         * XmlDataInferenceLoader.cs (ReadXml): Make sure the name of
451         reference key column(s) in child tables are unique.
452
453         * XmlSchemaWriter.cs (WriteSchema, WriteDataSetElement,
454         WriteTableType, WriteChildRelations): Handle the scenario wherein
455         we have a relation and only one table.  This can occur when we
456         have an XML with same parent/child table names. 
457         
458 2008-03-31  Veerapuram Varadhan <vvaradhan@novell.com>
459
460         * DataView.cs: Reverting rev#98474 changes - as it broke quite a
461         few test profiles.
462         
463 2008-03-23  Gert Driesen  <drieseng@users.sourceforge.net>
464
465         * DataSet.cs: Corcompare fix.
466         * IDataRecord.cs: Corcompare fix.
467
468 2008-03-22  Gert Driesen  <drieseng@users.sourceforge.net>
469
470         * DataViewSettingCollection.cs: Corcompare fixes and code formatting.
471         * SyntaxErrorException.cs: Corcompare fixes and code formatting.
472         * EvaluateException.cs: Corcompare fixes and code formatting.
473         * StrongTypingException.cs: Coecompare fixes and code formatting.
474         * ReadOnlyException.cs: Corcompare fixes and code formatting.
475         * DataTableCollection.cs: Corcompare fixes and code formatting.
476         * MissingPrimaryKeyException.cs: Corcompare fixes and code formatting.
477         * DeletedRowInaccesibleException.cs: Corcompare fixes and code
478         formatting.
479         * DataSet.cs: Corcompare fixes and code formatting.
480         * DuplicateNameException.cs: Corcompare fixes and code formatting.
481         * DataView.cs: Corcompare fixes and code formatting.
482         * VersionNotFoundException.cs: Corcompare fixes and code formatting.
483         * MergeFailedEventArgs.cs: Corcomare fixes and code formatting.
484         * InvalidExpressionException.cs: Corcompare fixes and code formatting.
485         * DBConcurrencyException.cs: Corcompare fixes and code formatting.
486         * DataRowView.cs: Corcompare fixes and code formatting.
487         * DataViewManager.cs: Corcompare fixes and code formatting.
488         * ConstraintException.cs: Corcompare fixes and code formatting.
489         * InvalidConstraintException.cs: Corcompare fixes and code formatting.
490         * IDataRecord.cs: Corcompare fixes.
491         * RowNotInTableException.cs: Corcompare fixes and code formatting.
492         * TypeDataSetGeneratorException.cs: Corcompare fixes and code
493         formatting.
494         * InRowChangingEventException.cs: Corcompare fixes and code formatting.
495         * NoNullAllowedException.cs: Corcompare fixes and code formatting.
496         * DataException.cs: Corcompare fixes and code formatting.
497
498 2008-03-17  Veerapuram Varadhan <vvaradhan@novell.com>
499         
500         ** Fixes part1 of #357947
501         * DataView.cs: (OnRowDeleted): Don't call update, instead delete the row 
502         directly from Index.  Peformance fix submitted by Hubert FONGARNAND 
503         <informatique.internet@fiducial.fr>.
504
505 2008-02-04 Arina Itkes <arinai@mainsoft.com>
506         
507         * DataTable.cs: Fix for IXmlSerializable.ReadXml.
508
509 2008-01-28 Arina Itkes <arinai@mainsoft.com>
510         
511         * DataTable.cs: Fix for IXmlSerializable.WriteXml.
512
513 2007-10-21  Gert Driesen  <drieseng@users.sourceforge.net>
514
515         * DataColumn.cs: Fixed ParamName of ArgumentNullException. Modified
516         exception message for invalid DateTimeMode value to match MS. Code
517         formatting.
518
519 2007-10-19  Nagappan <anagappan@novell.com> 
520
521         * DataRelation.cs: Removed bogus TODO.
522
523 2007-09-27  Nagappan A <anagappan@novell.com> 
524
525         * DataRelationCollection.cs: Added LAME spec comment as there is no
526           relevant event. Removed MonoTODO too.
527
528 2007-09-26  Nagappan A <anagappan@novell.com> 
529
530         * DataView.cs (ToTable): Added params keyword.
531         
532         * DataTable.cs: Added XmlSchemaProvider attribute.
533
534 2007-09-25  Konstantin Triger <kostat@mainsoft.com>
535
536         * DataSet.cs: correct WriteAttributeString while writing xml with
537                 XmlWriteMode.WriteSchema.
538
539 2007-09-25  Nagappan A  <anagappan@novell.com>
540
541         * DataTable.cs: Code alignment.
542
543 2007-08-14  Vladimir Krasnov <vladimirk@mainsoft.com>
544
545         * DataColumnCollection.cs: refactoring, fixed columnNameCount comparer
546         to remove culture sensitive ToLower() calls
547
548 2007-07-22  Nagappan A  <anagappan@novell.com>
549
550         * DataRow.cs: Added internal set property for Table in 2.0
551         profile.
552
553         * DataColumn.cs: Added internal set property for Table in 2.0
554         profile.
555
556 2007-07-01  Gert Driesen  <drieseng@users.sourceforge.net>
557
558         * DataRowCollection.cs: Only override Count on 2.0 profile.
559         * RelatedDataView.cs: Fixed line endings.
560         * XmlDataInferenceLoader.cs: Fixed line endings.
561
562 2007-06-30  Gert Driesen  <drieseng@users.sourceforge.net>
563
564         * DataTableCollection.cs: CopyTo is 2.0 only. Removed extra tabs,
565         and changed spaces to tabs.
566
567 2007-06-06  Nagappan A  <anagappan@novell.com>
568
569         * DataTable.cs (Select): Removed ununsed variable.
570
571 2007-05-30  Nagappan A  <anagappan@novell.com>
572
573         * DataColumnCollection.cs (CopyTo): Method specific to 2.0
574         profile.
575
576         * DataRowCollection.cs (Count): Property is overridden in 2.0
577         profile.
578
579         * TypedDataSetGenerator.cs: Class is obsolete in 2.0 profile.
580
581         * DataRelationCollection.cs (CopyTo): Method specific to 2.0
582         profile.
583
584 2007-05-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
585
586         * CustomDataClassGenerator.cs: Misc fixes in order to emit correct VB code.
587         CreateDataSetDefaultCtor: we're creating a delegate, not an object, so use a DelegateCreateExpression.
588         CreateDataSetSchemaChanged: we're comparing value types, use the correct equality operator.
589         CreateTableGetEnumerator: explicity state that the method is an implementation of IEnumerable.GetEnumerator.
590         CreateTableEventStarter: we're invoking a delegate, so use a DelegateInvokeExpression.
591         Several changes to not generate members with names that only differ by case.
592
593 2007-05-18  Chris Toshok  <toshok@ximian.com>
594
595         * DataColumnCollection.cs (Add ()): handle the default name case
596         in Add(DataColumn).
597         (Add (string)): same - let Add(DataColumn) handle the default name
598         setting.
599         (Add (DataColumn)): in the 1.1 case, we need to add the column's
600         PropertyChanged handler *before* possibly setting the column name
601         to the default so we emit the right events (Changed/Added).  In
602         the 2.0 case, we add the event handler after the name is set, and
603         therefore only emit the Added event.
604
605 2007-05-07  Adar Wesley <adarw@mainsoft.com>
606
607         * ConstraintCollection.cs: added CopyTo method with strongly typed Constraint[] 
608         parameter.
609
610         * DataTable.cs: added implementation of IXmlSerializable. Added missing
611         method ReadXmlSerializable.
612
613 2007-04-19  Chris Toshok  <toshok@ximian.com>
614
615         * DataColumnCollection.cs (Add): the Element in our
616         CollectionChangedEventArgs should be the column, not the
617         collection.  Also, add an event handler for the column's
618         PropertyChanged event so we can propagate metadata changes.
619         (Remove): Analogous change to the CollectionChangedEventArgs as in
620         Add.  Also, unhook the column's PropertyChanged event.
621         (OnCollectionmetaDataChanged): emit our new event.
622         (ColumnPropertyChanged): called when the column's ColumnName
623         property changes.  Emit the proper CollectionChangeEvent.
624
625         * DataView.cs (ColumnCollectionChanged): fix up the comment about
626         CollectionChangeAction.Refresh, and make explicit what generates
627         it.
628         (RegisterEventHandlers): hook up
629         DataColumnCollectoin.CollectionMetaDataChanged.
630         (RegisterEventHandlers): unhook
631         DataColumnCollectoin.CollectionMetaDataChanged.
632
633 2007-02-23  Nagappan A  <anagappan@novell.com>
634
635         * DataRow.cs (Item): Checks whether this DataRow exist in the
636         DataRowCollection, then compute the expression. Fixes bug #
637         80505.
638
639         * DataRowCollection.cs (IndexOf): Modified as internal method for
640         1.0 profile.
641
642         * XmlDataReader.cs (StringToObject): DataTables containing
643         System.Type throw exception on deserializing. Fixes bug # 80596.
644
645         * XmlDataLoader.cs (StringToObject): DataTables containing
646         System.Type throw exception on deserializing. Fixes bug # 80596.
647
648 2007-02-20  Konstantin Triger <kostat@mainsoft.com>
649
650         * XmlSchemaDataImporter.cs: ensure the tables are created in document order.
651
652 2007-02-19  Konstantin Triger <kostat@mainsoft.com>
653
654         * XmlDataReader.cs, XmlDataInferenceLoader.cs, XmlDiffLoader.cs:
655                 ignore attributes from "http://www.w3.org/XML/1998/namespace".
656         * XmlConstants.cs: add constant for "http://www.w3.org/XML/1998/namespace".
657         * XmlDataInferenceLoader.cs: track the added elements index to fix the
658                 added column ordinal.
659
660 2006-12-11  Chris Toshok  <toshok@ximian.com>
661
662         * DataView.cs: GetItemProperties should return an empty collection
663         if we have no data table.  Presently we NRE.
664
665 2006-12-08  Nagappan A  <anagappan@novell.com>
666
667         * DataTable.cs (ReadXml): Removed if condition, as it should not
668         check the exception string.
669
670 2006-12-07  Chris Toshok  <toshok@ximian.com>
671
672         * DataView.cs: add CollectionChangeEventHandler's on the
673         ChildRelations and ParentRelations collections, and emit
674         ListChanged events with PropertyDescriptor.Added/Deleted/Changed
675         in response.
676
677 2006-12-07  Nagappan A  <anagappan@novell.com>
678
679         * DataTable.cs (ReadXml): Integrated the implementation of
680         ReadXml, patch provided by deepak_2603@yahoo.com.
681
682 2006-12-05  Nagappan A  <anagappan@novell.com>
683
684         * DataTable.cs (WriteXmlSchema): Using XmlTextWriter instead of
685         XmlWriter, solved the File Sharing IO Exception.
686
687 2006-11-28      Hubert FONGARNAND, FrAcdAcric Mestayer <informatique.internet@fiducial.fr>
688
689         * DataColumnCollection.cs : Improved Column searching when not
690         using exact column name (case sensitivity). Fixes bug # 80075.
691
692 2006-11-28  Nagappan A  <anagappan@novell.com>
693
694         * XmlSchemaDataImporter.cs: Fixed 2.0 profile compilation
695         warnings. Using AttributeSchemaType instead of AttributeType and
696         ElementSchemaType instead of ElementType.
697
698         * TypedDataSetGenerator.cs: Modified the profile check from
699         !NET_1_1 to !NET_1_0, as this class is obsolete from 1.1 profile.
700
701         * DataRelationCollection.cs (Item): Modified the property Item as
702         abstract and implemented it in DataSetRelationCollection and
703         DataTableRelationCollection classes.
704
705         * DataRowView.cs: Remove bogus MonoTODOs.
706
707         * ForeignKeyConstraint.cs (ForeignKeyConstraint): Implemented
708         2.0 profile's missing constructor.
709
710         * XmlDataLoader.cs (StringToObject): Modify XmlConvert.ToDateTime
711         to use XmlDateTimeSerializationMode, as the default ToDataTime
712         method id obsolete.
713
714         * XmlDataReader.cs (StringToObject): Modify XmlConvert.ToDateTime
715         to use XmlDateTimeSerializationMode, as the default ToDataTime
716         method id obsolete.
717
718         * DataView.cs (IsInitialized): Added browsable attribute. 
719
720         * DataViewSettingCollection.cs (CopyTo): Implemented missing 2.0
721         API.
722
723         * DataRelation.cs (DataRelation): Added 2.0 profile constructor to
724         take parentTableNameSpace and childTableNameSpace as argument.
725         (FinishInit): Update parentTableNameSpace and childTableNameSpace,
726         when the string is not empty in 2.0 profile.
727
728         * DataRowCollection.cs: Implemented Count public property.
729         Added !NET_2_0 for List protected property, as it has been removed
730         in 2.0 prifle.
731         (IndexOf): Implemented new public method.
732         (CopyTo): Implemented new public override method.
733         (GetEnumerator): Implemented new public override method.
734
735         * DataTable.cs (Load): Throw ArgumentNullException, when reader
736         argument is null.
737         (WriteXmlSchema): Throw InvalidOperationException, when table name
738         is empty. When DataSet Namespace is set, append that with '_x003A_'
739         and table name.
740         (IsInitialized): Added browsable attribute.
741
742         * DataSet.cs (Load): Throw ArgumentNullException, when reader
743         argument is null.
744         (IsInitialized): Added browsable attribute.
745         (WriteObjectXml): Modify XmlConvert.ToDateTime to use
746         XmlDateTimeSerializationMode, as the default ToDataTime method id
747         obsolete.
748
749         * XmlSchemaWriter.cs (WriteSchema): Modified UseCurrentCulture to
750         UseCurrentLocale.
751         (WriteDataSetElement): Added minOccurs attribute.
752         (WriteConstraints): Check for tables length, if > 1 then add the
753         relations to XmlSchema.
754
755 2006-11-21  Nagappan A  <anagappan@novell.com>
756
757         * DataView.cs: Added public event Initialized.
758         (IsInitialized): Implemented public function to check whether a
759         dataview is initialized or not.
760
761         * DataSet.cs: Added ISupportInitializeNotification for .NET 2.0
762         profile.
763         (RemotingFormat): Set the default value attribute as
764         SerializationFormat.Xml.
765         (IsInitialized): Implemented public function to check whether a
766         table is initialized or not.
767         (CreateDataReader): Added params keyword in argument.
768         (Load): Implemented all Load overloaded functions.
769         (GetObjectData): Modified to public for .NET 2.0 implementation.
770         (IsBinarySerialized): Implemented the public API to check whether
771         the given stream is binary serialized or not.
772         * DataTable.cs: Added ISupportInitializeNotification for .NET 2.0
773         profile.
774
775 2006-11-15  Nagappan A  <anagappan@novell.com>
776
777         * DataTable.cs (RemotingFormat): Set the default value attribute
778         as SerializationFormat.Xml.
779         (OnTableNewRow, NewRowAdded): Implemented new function to raise an
780         event when a new row is added to the table.
781         (DataTableInitialized, OnTableInitialized): Implemented new
782         function to raise an event when a table is initialized.
783         (IsInitialized): Implemented public function to check whether a
784         table is initialized or not.
785         (OnTableClearing): Raise an event before the table is cleared.
786         (GetObjectData): Modified to public for .NET 2.0 implementation.
787         (Load): Implemented missing API to call the registered delegate
788         function on load exception.
789         (WriteXmlSchema): Implemented overloaded function to write the
790         hierarchy with XML Schema.
791
792 2006-11-15  Konstantin Triger <kostat@mainsoft.com>
793
794         * DataTable.cs: Fixed LoadDataRow scenarios.
795         * DataRowCollection.cs: Added override for AddInternal taking DataRowAction parameter.
796
797 2006-11-14  Konstantin Triger <kostat@mainsoft.com>
798
799         * DataColumn.cs: consider row version wen checking row.IsNull().
800
801 2006-10-18  Nagappan A  <anagappan@novell.com>
802
803         * ForeignKeyConstraint.cs (_validateColumns): Parent and child
804         columns can't be the same column - Exception, bug # 79689
805
806 2006-10-13  Nagappan A  <anagappan@novell.com>
807
808         * DataTable.cs (DeserializeConstraints): Fine tuned the
809         serialization and deserialization of constraints.
810
811         * DataRelationCollection.cs (Contains): Fixes bug
812         #79233. DuplicateNameException when two relations for different
813         DataTables in DataSet are defined
814
815 2006-10-06  Patrick Earl <mono@patearl.net>
816
817         * DataTable.cs, XmlTableWriter.cs, XmlSchemaWriter.cs, DataSet.cs:
818         Implemented DataTable.WriteXml
819
820 2006-09-26  Nagappan A  <anagappan@novell.com>
821
822         * DataTable.cs, DataSet.cs, DataColumn.cs, Constraint.cs,
823         DataRow.cs: Implementation of Binary Serialization /
824         Deserialization.
825
826         * DataTable.cs (RowsExist): Check rows based on version.
827
828         * DataRow.cs: Raise exception same as MS.NET. Thanks to
829         Hubert FONGARNAND <informatique.internet@fiducial.fr> for
830         providing this patch.
831
832 2006-09-07  Vladimir Krasnov <vladimirk@mainsoft.com>
833
834         * DataSet.cs: added 2.0 stubs to solve typed dataset porting issues
835
836 2006-08-30  Nagappan A  <anagappan@novell.com>
837
838         * DataRow.cs (EndEdit): DataRow.EndEdit emits RowChanged too
839         often. Fixes bug # 78885.
840
841 2006-08-14  Konstantin Triger <kostat@mainsoft.com>
842
843         * DataTableCollection.cs, DataRelationCollection.cs, DataRowCollection.cs,
844                 DataColumnCollection.cs: implemented specialized CopyTo() method.
845
846 2006-07-26  Nagappan A  <anagappan@novell.com>
847
848         * DataTable.cs (GetIndex): Fixes memory explode on
849         DataTable.Select - Bug # 77691.
850
851 2006-07-25  Nagappan A  <anagappan@novell.com>
852
853         * DataView.cs (OnRowCollectionChanged): On DataTable.Clear,
854         setting rowCache to empty DataRowView. Fixes bug # 78610.
855
856         * DataTable.cs (AcceptChanges): Raises Reset event. Fixes bug #
857         78610.
858
859 2006-07-20  Senganal T  <tsenganal@novell.com>
860
861         * MergeManager.cs :
862                 - Merge : moved the columntypecheck to AdjustSchema,
863                 Remove the unncessary calls to Table.ResetIndexes.
864                 - AdjustSchema : check for columntypes
865         Thanks to Deepak Kr Valechha for the patch
866
867 2006-07-17  Senganal T  <tsenganal@novell.com>
868
869         * DataView.cs :
870                 - ToTable : Implemented all the overloads
871                 - Equals : Implemented 
872                 - IBindingListView : Implemented the interface
873
874 2006-07-15  Senganal T  <tsenganal@novell.com>
875
876         * DataTableCollection.cs :
877                 - Contain,IndexOf,Remove,Add,Indexer : support for table
878                 namespace. Remove redundant checks in Remove/Add.
879
880 2006-07-14  Senganal T  <tsenganal@novell.com>
881         
882         * DataColumn.cs :
883                 - SetOrdinal : Implemented
884                 - Ordinal : added internal set
885         * DataColumnCollection.cs : 
886                 - Add : Set the column ordinals
887                 - MoveColumn : Changes the position of column in the
888                 collection
889
890 2006-07-14  Senganal T  <tsenganal@novell.com>
891
892         * DataTable.cs :
893                 - Merge - Implement the merge methods
894                 - Clone - Ensure column's DateTimeMode property is also copied
895         * DataColumn.cs :
896                 - DateTimeMode : Implemement
897                 - DataTypeMatches : Added. In 2.0 profile, test DateTime
898                 property when verifying column types.
899         * DataRelation.cs :
900                 - ctr :  For DateTime columns, check DateTimeMode property
901         * ForeignKeyConstraint.cs :
902                 - _validateColumns : For DateTime columns, check DateTimeMode
903                 property
904         * MergeManager : 
905                 - Merge : Added. Overload to merge two tables
906                 - ResolveColumns : Change the method to use a table instead of
907                 a DataSet
908                 - Renamed AdjustSchema to AdjustSchemaRelations
909
910 2006-07-13  Senganal T  <tsenganal@novell.com>
911
912         * DataSet.cs :
913                 - WriteTables : Remove some commented out code
914                 - WriteTable : Fix the logic to skip the table data when the
915                 table has a nested relation.
916                 fixes bug #78842
917
918 2006-07-12  Senganal T  <tsenganal@novell.com>
919
920         * ConstraintCollection.cs : 
921                 - Remove (string): If constraint name is not found, throw exception
922                 - Remove (Constraint): Set the ConstraintCollection of the removed
923                 Constraint to null.
924         Thanks to Deepak Kr Velachha for reporting the bug.
925
926 2006-07-12  Senganal T  <tsenganal@novell.com>
927
928         * XmlDiffLoader.cs : 
929                 - LoadColumnChildren : If schema name is missing, skip the
930                 element.
931         Thanks to Deepak Kr Velachha for identifying the bug.
932
933 2006-07-11  Senganal T  <tsenganal@novell.com>
934         
935         * XmlSchemaWriter.cs :
936                 - WriteTableType : If Relation.Nested is true, then nest the 
937                 table schemas. Correct the xml to add the table element within
938                 the <Sequence> element.
939                 - WriteChildRelations : Correct the Xml element name and
940                 attributes. Close the attribute correctly.
941
942         * XmlSchemaDataImporter.cs :
943                 - GenerateRelationship : When creating the relations, if
944                 ParentColumn exists but Corr ChildCol is null, create a child
945                 Column with the same name and type as the parent column.
946                 - Renamed DataSetDefinesPrimaryKey to DataSetDefinesKey
947                 - DataSetDefinesKey : if either xsd:key or xsd:keyref is
948                 defined for the dataset, do not manually create the relations.
949                 - AddParentKeyColumn : if Columnname already exists, use
950                 colname_0 instead of throwing an exception.
951                 - FillDataColumnRepeatedSimpleElement : Do not set the Unique
952                 value as it creates a constraint by default. The unique value
953                 is automatically set when pk is set.
954                 - CreateChildColumns : Added. Creates a ChildColumn duplicating 
955                 ParentColumn properties.
956
957 2006-06-30  Senganal T  <tsenganal@novell.com>
958
959         * DataRow.cs : 
960                 - SetAdded, SetModified : new methods in 2.0
961
962 2006-06-30  Senganal T  <tsenganal@novell.com>
963         * SerializationFormat.cs, DataSetDateTime.cs, DataTableNewRowEventArgs.cs,
964         DataTableNewRowEventHandler.cs : Added 
965         * SyntaxErrorException.cs EvaluateException.cs StrongTypingException.cs 
966         IsolationLevel.cs ReadOnlyException.cs DataTableCollection.cs 
967         DataRowState.cs MissingPrimaryKeyException.cs DeletedRowInaccessibleException.cs 
968         DuplicateNameException.cs PropertyAttributes.cs StatementType.cs 
969         VersionNotFoundException.cs FillErrorEventHandler.cs DataRowChangeEventHandler.cs 
970         XmlWriteMode.cs InvalidExpressionException.cs StateChangeEventHandler.cs 
971         DbType.cs DataColumnChangeEventHandler.cs KeyRestrictionBehavior.cs 
972         ConnectionState.cs SchemaType.cs MergeFailedEventHandler.cs SqlDbType.cs 
973         DataRowVersion.cs ForeignKeyConstraint.cs DBConcurrencyException.cs 
974         OperationAbortedException.cs MissingSchemaAction.cs DataTableClearEventHandler.cs 
975         DataRowView.cs DataRowAction.cs ConstraintCollection.cs DataTableReader.cs 
976         LoadOption.cs InvalidConstraintException.cs InternalDataCollectionBase.cs 
977         ParameterDirection.cs AcceptRejectRule.cs UpdateRowSource.cs XmlReadMode.cs 
978         TypedDataSetGenerator.cs RowNotInTableException.cs TypeDataSetGeneratorException.cs
979         InRowChangingEventException.cs  MissingMappingAction.cs NoNullAllowedException.cs 
980         CommandBehavior.cs PropertyCollection.cs CommandType.cs 
981         UpdateStatus.cs ConflictOption.cs DataViewRowState.cs  Rule.cs 
982         DataColumnCollection.cs :
983                 2.0 api fixes.
984
985 2006-06-27  Senganal T  <tsenganal@novell.com>
986
987         * DataSet.cs, DataTable.cs : implement CreateDataReader methods 
988         * InternalDataCollectionBase.cs
989                 - ToArray () : helper method
990         * DataTableReader.cs : 
991                 - GetSchemaTable : set the schema info correctly
992                 - GetProvider*, GetChars, GetBytes, GetValues :
993                         Implemented the methods
994                 - GetName : return the name of corresponding schema.
995                 - ValidateSchemaIntact, OnColumnCollectionChanged, 
996                 OnColumnChanged :
997                         Listen and raise expception if schema changes
998
999 2006-06-21  Chris Toshok  <toshok@ximian.com>
1000
1001         * DataView.cs: update the index after we successfully add the new
1002         row.  This keeps the dataview's row view count in sync with the
1003         table.
1004
1005 2006-06-20  Chris Toshok  <toshok@ximian.com>
1006
1007         * DataView.cs: the PropertyDescriptorCollection returned by
1008         ITyepdList.GetItemProperties should include the child relations of
1009         our table, in order to match MS's behavior.
1010
1011         * DataViewManager.cs: ICollection.Count property is always 1.
1012
1013 2006-06-15  Senganal T  <tsenganal@novell.com>
1014
1015         * DataTable.cs :
1016                 - Select : If Sort String is not provided, sort the result
1017                 DataRows in Ascending Order of the Columns used in the filter
1018
1019 2006-06-15  Senganal T  <tsenganal@novell.com>
1020
1021         * DataSet.cs :
1022                 - InternalEnforceConstraints : Check if any null constraints 
1023                 are violated. Throw ConstraintException only after all the errors
1024                 are filled.
1025         * DataTable.cs :
1026                 - EnforceConstraints : Move away the logic to check for 
1027                 NullConstraintViolation.
1028                 - AssertNotNullConstraint : Checks for Null Constraint
1029                 Violation.
1030                 - EndLoadData : Do not throw any exceptions here. All the
1031                 errors have to be found and RowErrors set before throwing the
1032                 exception.
1033         * DataRow.cs :
1034                 - ImportRecrod : Check the values of the row for any null
1035                 values.
1036                 - SetColumnError : If the error for column is already set,
1037                 do not add a new error but edit the existing error. 
1038                 - CheckValue : Set the NullConstraintViolation flag if either
1039                 table is being loaded or if EnforceConstraints is set to
1040                 false.
1041         * Constraint.cs : Do not throw exception when EnforceConstraints is
1042         set to false or table is being loaded.
1043         * UniqueConstraint.cs : Correct the error message. Set ColumnErrors
1044         along with the RowError.
1045
1046 2006-05-31  Gert Driesen  <drieseng@users.sourceforge.net>
1047
1048         * DataTable.cs: Renamed initInProgress to fInitInProgress. BeginInit
1049         and EndInit must only be virtual in 2.0 profile. Set eol-style to CRLF.
1050
1051 2006-05-31  Senganal T  <tsenganal@novell.com>
1052
1053         * XmlDataInferenceLoader.cs :
1054                 - InferTableElement : Repeated element should result in a single
1055                 inferred table.
1056         Patch from Deepak Kr Velachha 
1057
1058 2006-04-21  Senganal T  <tsenganal@novell.com>
1059
1060         * DataRowCollection.cs :
1061                 - Find : If search on the table using PrimaryKey fails and if
1062                 index is not being maintained (during table load), search the 
1063                 entire table.
1064                 - Find (int) : Removed. Deadcode. 
1065                 - Clear :
1066                         - Not necessary to delete each row from the Index.
1067                         Just reset the Indexes after cleaning up the row
1068                         collection.
1069                         - Simplify dependency check for child tables
1070         * DataTable.cs :
1071                 - LoadDataRow : 
1072                         - Do not use DataRowCollection.Find to search for
1073                         existing records as this wud check even newly loaded rows.
1074                         Use Index.Find.
1075                         - Do not add new records to Index. Update Index only
1076                         if an existing record is modified. New records will be
1077                         taken care by EndLoadData.
1078
1079 2006-04-19  Senganal T  <tsenganal@novell.com>
1080
1081         * XmlHelper.cs : A helper class for encoding/decoding schema names.
1082         Caches the Schema names to minimize encoding/decoding operations and
1083         duplicate strings created.
1084         * XmlSchemaWriter : 
1085                 - Use XmlHelper for encoding/decoding schema names.
1086                 - Encode ConstraintNames when writing as xml.
1087         * DataSet.cs
1088         * XmlDataReader.cs
1089         * XmlDataInferenceLoader.cs
1090         * XmlSchemaDataImporter.cs
1091                 - Use XmlHelper for encoding/decoding schema names.
1092         * DataTableCollections : Minor code refactor.
1093         * DataRow.cs : Create XmlElement only if required.
1094
1095 2006-04-07  Senganal T  <tsenganal@novell.com>
1096
1097         * DataSet.cs :
1098                 - InternalEnforceConstraints() : Reset Indexes of all tables
1099                 before validating constraints. Fixes #78010
1100
1101 2006-03-04      Boris Kirzner <borisk@mainsoft.com>
1102         * TypeDataSetGeneratorException.cs: fix .Net Soap serialization compatibility.
1103
1104 2006-03-25  Senganal T  <tsenganal@novell.com>
1105
1106         * DataRow.cs : 
1107                 - RejectChanges : When row is in Deleted state, add the row back to
1108                 Indexes and Validate the row.
1109
1110
1111 2006-03-23  Senganal T  <tsenganal@novell.com>
1112
1113         * DataTable.cs : 
1114                 - LoadDataRow : Add the row to the indexes, when loading a new row.
1115
1116 2006-03-22  Senganal T  <tsenganal@novell.com>
1117
1118         * DataTable.cs :
1119                 - PrimaryKey : Set the IsPrimaryKey attribute before Removing from collection.
1120                 - RemoveUniqueConstraints : Removed. dead code.
1121         * DataColumn.cs :
1122                 - Unique : 
1123                         - If adding/removing constraint fails, retain Unique value
1124                         - Remove redundant code
1125         * UniqueConstraint.cs :
1126                 - SetIsPrimaryKey : Added. Sets the value of IsPrimaryKey.
1127                 - RemoveFromConstraintCollectionCleanup : If constraint is on a single column, then
1128                 set Unique for that column to false.
1129                 - CanRemoveFromCollection : Do not remove constraint, if its a PrimaryKey
1130
1131 2006-03-20  Senganal T  <tsenganal@novell.com>
1132
1133         * DataSet.cs :
1134                 - CopyRelations () : When copying the relation, do not add constraints
1135                 automatically for the relation.
1136                 - OnMergeFailed () : If merge fails and no handler is set for the MergeFailedEvent,
1137                 then throw DataException 
1138         * ConstraintCollection.cs :
1139                 - Add () : Check if a constraint already exists on the Columns that are being 
1140                 constrained.
1141                 - IndexOf () : Do not check for equivalent constraints, check for the exact instance.
1142         * MergeManager.cs (): 
1143                 -  AdjustSchema () : 
1144                         - Handle the MissingSchemaAction.Error case, 
1145                         - Do not create constraints when mergin the DataRelation
1146                         - Follow the semantics for schema merge/validation  when constraints are already present
1147                         in the target DataSet.
1148                 - AdjustPrimaryKeys () :
1149                         - Code cleanup
1150                         - Verify Order of Columns in the PrimaryKey when merging.
1151                 - ResolveColumns : Changed the arument to DataSet. Simplifies code elsewhere.
1152                 - CompareColumnArrays, CompareColumnArrays : Helper funtions.
1153                 
1154 2006-03-09  Senganal T  <tsenganal@novell.com>
1155
1156         * DataRow.cs :
1157                 - RejectChanges () :  Add the row to index, if it was in deleted state and
1158                 Update the index if in Modified State.
1159                 - AcceptChanges () : Do not update the Indexes.
1160                 - EndEdit () : Update the indexes even if BeginLoadData has been called
1161                 on the table. Ideally, indexes should not be maintained during DataLoad,
1162                 but this needs to handled in multiple places correctly. For now, just maintain
1163                 the index to ensure correct operation.
1164         
1165 2006-03-05  Senganal T  <tsenganal@novell.com>
1166
1167         * DataSet.cs :
1168                 - BeginInit (), EndInit () : Implemented methods
1169                 - InitInProgress : Added.
1170         * DataTable.cs
1171                 - EndInit () : Move the adding of columns and constraints
1172                 to FinishInit.
1173                 - FinishInit () : Added. Adds the Constraints and Columns
1174                 to the collection.
1175                 - InitInProgress : Added.
1176         * Constraint.cs
1177                 - FinishInit () : Added. Virtual method
1178                 - InitInProgress : Added. Virtual property
1179         * UniqueConstraint.cs
1180         * ForeignKeyConstraint.cs
1181                 - FinishInit () : Added.
1182                 - InitInProgress : Added.
1183                 - DataColsNotValidated : Removed.
1184         * ConstraintCollection.cs
1185                 - PostAddRange : Removed event
1186                 - PostEndEdit () : Renamed to PostAddRange
1187                 - Add () : Simplified the testing if constraint is initialized
1188                 - AddRange () : Simplified initializing the constraints
1189         * DataTableCollection.cs
1190                 - PostAddRange () : Added. Adds the tables to the collection
1191         * DataColumnColletion.cs
1192                 - PostEndInit () : Renamed to PostAddRange.Also, add column to
1193                 the collection only if not null.
1194  
1195         Added/Implemented methods for design time support. Renamed some methods for consistency
1196         in naming across classes for methods serving the same purpose. 
1197
1198 2006-02-24  Senganal T  <tsenganal@novell.com>
1199
1200         * UniqueConstraint.cs :
1201                 - ChildConstraint : Added. Simplifies verifying if constraints are
1202                 related.
1203                 - CanRemoveFromCollection : Fixed the check to verify if constraints is
1204                 linked to a ForeignKeyConstraint. Fixes #77630
1205         * ForeignKeyConstraint.cs :
1206                 - _validateRemoveParentConstraint : Removed. Not used anymore
1207                 - ParentConstraint : Added. Simplifies verifying if constraints are
1208
1209 2006-02-22  Senganal T  <tsenganal@novell.com>
1210
1211         * DataRow.cs 
1212                 - RejectChanges : Do not remove Row from Indexes when state is Deleted.
1213                 - CheckChildRows : When checking for the ChildRows, use the current value
1214                 and not the original value.
1215
1216 2006-02-18  Atsushi Enomoto  <atsushi@ximian.com>
1217
1218         * CustomDataClassGenerator.cs : Patch by Marek Habersack. xsd now
1219           outputs AutoIncrement, AutoIncrementSeed, AutoIncrementStep and
1220           ReadOnly properties. This fixes bug #77576.
1221
1222 2006-02-17  Chris Toshok  <toshok@ximian.com>
1223
1224         * System.Data/DataSet.cs, System.Data/DataView.cs,
1225         System.Data/ForeignKeyConstraint.cs,
1226         System.Data/DataViewManager.cs, System.Data/DataRow.cs,
1227         System.Data/DataSysDescriptionAttribute.cs,
1228         System.Data/UniqueConstraint.cs, System.Data/DataTable.cs,
1229         System.Data/DataRelation.cs: lots of attribute work, removing
1230         DataSysDescription atributes (and marking the class obsolete) for
1231         2.0.
1232
1233 2006-02-17  Chris Toshok  <toshok@ximian.com>
1234
1235         * DataAdapterException.cs: remove this file.
1236         
1237 2006-02-17  Chris Toshok  <toshok@ximian.com>
1238
1239         * DataTableReader.cs: Switch to the (bool) form of Dispose to
1240         override, as the no-arg form isn't virtual.
1241
1242         * Constraint.cs: #ifdef out more DataSysDescriptions.
1243
1244         * ConstraintException.cs: add ..ctor (string, Exception) for 2.0.
1245
1246 2006-02-17  Chris Toshok  <toshok@ximian.com>
1247
1248         * DataColumn.cs: #ifdef all the DataSysDescriptions !NET_2_0.
1249
1250         * AdapterMappingException.cs: nuke this file.
1251
1252         * IDbAsyncConnection.cs, IDbAsyncCommand.cs, IGetTypedData.cs,
1253         ISetTypedData.cs, IDataReader2.cs, IDataSources.cs,
1254         IDbExecutionContext.cs, IDataRecord2.cs, IDataUpdatableRecord.cs:
1255         remove these 2.0 files.
1256
1257 2006-02-17  Chris Toshok  <toshok@ximian.com>
1258
1259         * ConstraintCollection.cs: in 2.0, class is not serializable and
1260         is sealed.  make all the "virtuals" #if !NET_2_0 as well.
1261
1262         * Constraint.cs: not serializable in 2.0.
1263
1264         * DataColumnCollection.cs: in 2.0, class is not serializable and
1265         is sealed.  make all the "virtuals" #if !NET_2_0 as well.
1266
1267         * DataRelationCollection.cs: not serializable in 2.0.
1268
1269         * DataRelation.cs: not serializable in 2.0.
1270
1271         * DataRowBuilder.cs: class is sealed in 2.0.
1272
1273         * DataRowCollection.cs: in 2.0, class is not serialized and is
1274         sealed.  Also, Add isn't virtual in 2.0 (as the class is sealed).
1275
1276         * DataRow.cs: not serializable in 2.0.
1277
1278         * DataSet.cs: remove some DataSysDescriptions from the 2.0 build,
1279         and s/GetDataReader/CreateDataReader.
1280
1281         * DataTableCollection.cs: in 2.0, class is not serializable and is
1282         sealed.  make all the "virtuals" #if !NET_2_0 as well.
1283
1284         * DataTableReader.cs: remove VisibleFieldCount property.
1285
1286         * DataViewSettingCollection.cs: not serializable in 2.0.
1287
1288         * DataViewSetting.cs: not serializable in 2.0.
1289
1290         * ForeignKeyConstraint.cs: serializable in 2.0.
1291
1292         * OperationAbortedException.cs: class is sealed and serializable.
1293
1294         * PropertyCollection.cs: serializable in 2.0.
1295
1296         * StatementCompletedEventArgs.cs: class is sealed.
1297
1298         * UniqueConstraint.cs: not serializable in 2.0.
1299
1300 2006-02-16  Senganal T  <tsenganal@novell.com>
1301
1302         * XmlSchemaWriter :
1303                 WriteDataSetElement : Add an annotation element if exists.
1304                 WriteDataRelationAnnotation : New. Write a DataRelation as an annotation.
1305                 WriteConstraints : Write ForeignKeyConstraint even when not associated with
1306                         a DataRelation and add a "ConstraintOnly=true" attribute for such constraints.
1307         * XmlConstants.cs : Add a new constant - ConstraintOnly
1308         * XmlSchemaImporter.cs :
1309                 - ConstraintStructure : Add field ,IsConstraintOnly, to distinguish if a foreignkeyconstraint
1310                         is related to relation or not.
1311                 - GenerateRelation : Handle the case when parentkey and childkey contain multiple columnnames.
1312
1313 2006-02-11  Senganal T  <tsenganal@novell.com>
1314         
1315         * UniqueConstraint.cs :
1316                 - PostAddRange : Check PrimaryKey is not already set for the table
1317         * DataTable.cs :
1318                 - PrimaryKey : follow ms.net behavior when BeginInit , EndInit is used.
1319                         - Add new priamry key only when EndInit is called.
1320                         - Incase of an error, retain old primarykey 
1321                 - EndInit :
1322                         - Add Constraints after columns are added.
1323                         - If both PrimaryKey Property and PrimaryKey Constraint are set,
1324                         then the Constraint takes precedence.
1325                 fixes bug #77404
1326
1327 2006-02-03  Senganal T  <tsenganal@novell.com>
1328
1329         * DataTableCollection.cs : 
1330                 - Remove () : Check for invalid TableName
1331                 - Add () : Verify the table doesn't belong to another dataset
1332         * DataView.cs :
1333                 - CompleteLastAdded () : Do not raise ItemAdded Event as it is
1334                         already raised in AddNew().
1335         * DataColumn.cs :
1336                 - Expression : Verify that the Column names in the expression are valid 
1337                 - ResetCollectionInfo : Renamed to ResetColumnInfo
1338         * DataRow.cs :
1339                 - RejectChanges () : Reorganized the code to do the Right thing.
1340                 - Item  : Dont check for detached and deleted rows as these are
1341                         done elsewhere.
1342         * DataRowCollection.cs :
1343                 - Add () : Check for null value
1344         * DataTable.cs :
1345                 - PrimaryKey : Set AllowDBNull=false for all the key columns
1346                 - ImportRow : Import the row only if it is not in Detached state. if in Deleted
1347                         state, perform the validation when AcceptChanges/RejectChanges is called.
1348         * DataColumnCollection.cs :
1349                 - Add : Validate the column expression before adding it to the collection.
1350                 - GetColumnDependency () : New. Get the dependencies on the column 
1351                 - CanRemove : Move checks to GetColumnDependency
1352                 - Clear () : Simplified code. Remove unncessary checks.Also, dont check Expression col.
1353                 - IndexOf - Check argument.
1354                 Overall , appropriate error msg's are thrown if Remove/Clear fails. Removed a few
1355                 redundant checks performed and moved the common code to GetColumnDependency.
1356
1357 2006-01-31  Senganal T  <tsenganal@novell.com>
1358
1359         * DataSet.cs : Modified CopyRelations ()
1360                 - Added code to copy ForeignKeyConstraints. Fixes #77411.
1361         
1362 2006-01-18 Boris Kirzner <borisk@mainsoft.com>
1363         * DataColumn.cs: added PropertyCchangedEvent handling.
1364
1365 2006-01-17  Senganal T  <tsenganal@novell.com>
1366         
1367         * DataRow.cs:
1368                 ItemArray : Modified to raise RowInTableException only if
1369                 the concerned row has been removed from the table.Fixes 
1370                 bug #77267
1371
1372 2006-01-16 Boris Kirzner <borisk@mainsoft.com>
1373         * DataTable.cs: Drop dependend indexes on column removal.
1374
1375 2006-01-16  Atsushi Enomoto  <atsushi@ximian.com>
1376
1377         * CustomDataClassGenerator.cs :
1378           When a DataRelation connects the same table as parent and child,
1379           generate parent row property as BlahRowParent. Fixed bug #77248.
1380
1381 2006-01-10  Senganal T <tsenganal@novell.com>
1382         * DataRowCollection.cs
1383                 - Added ListChangedEvent to notify reset of the collection.
1384         * DataView.cs
1385                 - Subscribes to the ListChangedEvent of DataRowCollection
1386                 Fixes bug #77188
1387
1388 2006-01-09  Senganal T <tsenganal@novell.com>
1389         * RelatedDataView.cs
1390         * DataColumn.cs
1391                 - Resolving a name clash in IExpression
1392
1393 2006-01-06  Senganal T <tsenganal@novell.com>
1394         
1395         * DataColumn.cs
1396         * DataColumnCollection.cs
1397                 - Reset the Parameters of DataColumn to Default Values when 
1398                 column is removed from the Table's Collection
1399
1400 2006-01-03  Senganal T <tsenganal@novell.com>
1401
1402         * DataTable.cs :
1403                 - ParseSortString() : Changed the way the sort string is parsed.
1404                 Using a regex to parse the string.Fixes bug #77104
1405
1406 2005-12-12  Konstantin Triger <kostat@mainsoft.com>
1407
1408         * DataRow.cs: Added index Updates.
1409                 EndEdit() fixed to first update indices and then AssertConstraints
1410                 based on those indices.
1411                 Added Validate() and AssertConstraints() functions.
1412         * DataRowCollection.cs: Removed ValidateDataRowInternal().
1413         * DataTable: Fixed Clear().
1414
1415 2005-12-06  Atsushi Enomoto  <atsushi@ximian.com>
1416
1417         * CustomDataClassGenerator.cs : (InitializeFields) handle AllowDBNull
1418           and DefaultValue as well. Patch by Marek Habersack (bug #76709).
1419
1420 2005-12-01  Miguel de Icaza  <miguel@novell.com>
1421
1422         * DataSet.cs: Apply patch from Robert Jordan, to fix #76817
1423
1424 2005-11-26  Konstantin Triger <kostat@mainsoft.com>
1425
1426         * ConflictOption.cs: TARGET_JVM include.
1427
1428 2005-11-11  Senganal T <tsenganal@novell.com>
1429         
1430         * ConflictOption.cs (new file)
1431                 - Added ConflictOption Enumeration 
1432         * DataTableReader.cs
1433         * IDataRecord2.cs 
1434                 - GetProviderSpecificFieldType : Corrected the method name
1435
1436 2005-11-11  Senganal T <tsenganal@novell.com>
1437
1438         * DataSet.cs : Added the SchemaSerializationMode Property for NET_2_0
1439         compatibility.
1440         * SchemaSerializationMode.cs : Added SchemaSerializationMode Enumeration
1441         for NET_2_0 compatibility.
1442
1443         Fixes bug #76517
1444
1445 2005-10-20  Atsushi Enomoto  <atsushi@ximian.com>
1446
1447         * XmlSchemaWriter.cs : escape names in the schema with XmlConvert.
1448           Fixed bug #76480.
1449
1450 2005-10-14  Sureshkumar T  <tsureshkumar@novell.com>
1451
1452         * DataView.cs: Correct multiple throwing of events. Patch from
1453         Marc Haisenko.
1454         (RowStateFilter): Fire ListChangedEvent.
1455         (ApplyDefaultSort): Fire ListChangedEvent.
1456         (CompleteLastAdded): call UpdateIndex to remove the row from rowCache.
1457         (IBindingList.Find): Implemented.
1458
1459 2005-10-11  Sureshkumar T  <tsureshkumar@novell.com>
1460
1461         * DataView.cs (IBindingList): Implemented methods for IBindingList interface.
1462
1463 2005-09-26  Lluis Sanchez Gual <lluis@novell.com>
1464
1465         * DataSet.cs: In IXmlSerializable.GetSchema, return null again for
1466         untyped datasets. Fixes bug #76101.
1467
1468 2005-09-21 Boris Kirzner <borisk@mainsoft.com>
1469         * DataRow.cs: Fixes for index updating.
1470         * DataTable.cs: 
1471                 - Reset case-sensitive indexes also if their filter contains columns 
1472                 of type string.
1473                 - Use GetIndex instead of FindIndex, so the indexes created in Select()
1474                 are reused. 
1475         * RelatedDataView.cs: implement IExpression.Equals() and GetHashCode().
1476         
1477 2005-09-20  Sureshkumar T  <tsureshkumar@novell.com>
1478
1479         * DataView.cs (Sort): Apply default Sorting Order if Sort property
1480         is reset to null. Sort property handles this. Patch from Marc.
1481
1482         * DataTable.cs (ParseSortString): Patch from  Marc Haisenko for
1483         allowing [ & ] in DataView.Sort string.
1484
1485 2005-09-01 Boris Kirzner <borisk@mainsoft.com>
1486         * System.Data/DataRowCollection.cs: indexes should be updated even if 
1487         EnforceConstraints is false. Check for EnforceConstraints in
1488         ValidateDataRowInternal.
1489
1490 2005-08-08  Gert Driesen  <drieseng@users.sourceforge.net>
1491
1492         * DataView.cs: Changed accessibility of dataTable, rowState and
1493         rowCache field to internal to fix public API. Assigned TypeConverter
1494         to Table property.
1495         * ForeignKeyConstraint.cs: IsConstraintViolated is now internal.
1496         * Constraint.cs: IsConstraintViolated is now internal.
1497         * UniqueConstraint.cs: IsConstraintViolated is now internal.
1498
1499 2005-08-05  Atsushi Enomoto  <atsushi@ximian.com>
1500
1501         * XmlSchemaDataImporter.cs : When "dataset element" has identity
1502           constraints, then first reserve constraints room for them and then
1503           process elements, skipping pkey creation if there is already
1504           reserved one. Fixed bug #75711.
1505
1506 2005-08-05  Atsushi Enomoto  <atsushi@ximian.com>
1507
1508         * XmlDataInferenceLoader.cs : in GetElementMappingType(), don't guess
1509           the same (QNamed) element again when it was already evaluated as
1510           not simple type. Fixed one part of bug #75711.
1511
1512 2005-08-02 Boris Kirzner <borisk@mainsoft.com>
1513         * XmlSchemaDataImporter.cs : Data relations should be processed after the
1514         keys, so no redundant constraints created while relations processing.
1515
1516 2005-07-25 Boris Kirzner <borisk@mainsoft.com>
1517         * FillOptions.cs, ConflictOptions.cs, UpdateOptions.cs: 
1518         added ifdef TARGET_JVM.
1519
1520 2005-07-22  Sureshkumar T  <tsureshkumar@novell.com>
1521
1522         * DataViewSettingCollection.cs, DataTableCollection.cs,
1523         DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
1524         DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
1525         DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
1526         - updated attributes & attribute descriptions to match with
1527         masterinfos.
1528
1529         * DataView.cs: changed protected members
1530         rowstate,rowcache,dataTable to protected internal.
1531         * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint.cs:
1532         changed InConstraintViolated to protected internal.
1533         * ConflictOptions.cs, UpdateOptions.cs, FillOptions.cs: enclosed
1534         with NET_2_0 define.
1535
1536 2005-07-21  Sureshkumar T  <tsureshkumar@novell.com>
1537
1538         * ForeignKeyConstraint.cs: 
1539         - IsConstraintViolated (): no matter what EnforceConstraints is,
1540         this function now honestly validates. It is upto the caller to run
1541         this or not.
1542         - AddToConstraintCollectionSetup (): AssertConstraint according to
1543         EnforceConstraints.
1544         
1545 2005-07-21 Boris Kirzner <borisk@mainsoft.com>
1546         * ForeignKeyConstraint.cs - IsConstraintViolated() should check also for Table.EnforceConstraints.
1547         * DataTable.cs - EnforceConstraints becomes internal so it can be used by ForeignKeyConstraint.
1548
1549 2005-07-19  Sureshkumar T  <tsureshkumar@novell.com>
1550
1551         * DataTable.cs - CopyConstraints (): copy constraints only if it
1552         does not exist.
1553
1554         * DataSet.cs - Copy ():
1555         - use activator.CreateInstance to create a typed dataset.
1556         - copy tables if target does not exist, otherwise, just add rows.
1557         - add relation only if it does not exists.
1558
1559         Typed datasets create the constraints & relations through
1560         constructors. Fixes bug #75211.
1561
1562 2005-07-14  Sureshkumar T  <tsureshkumar@novell.com>
1563
1564         * DataView.cs: Patch from Marc Haisenko to throw descriptive error
1565         message when accessing Item, with invalid index.
1566
1567 2005-07-14  Sureshkumar T  <tsureshkumar@novell.com>
1568
1569         reapplied patch from Marc Haisenko.
1570         * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
1571         is never null.
1572
1573 2005-07-13  Sureshkumar T  <tsureshkumar@novell.com>
1574
1575         * DataRelationCollection.cs: adding a relation with same set of
1576         parent columns & child columns, should not be allowed.
1577
1578 2005-07-08  Sureshkumar T  <tsureshkumar@novell.com>
1579
1580         * DataTableReader.cs: GetSchemaTable: DataType column should be
1581         passed a type of Type.
1582
1583         * DataRow.cs: Load : Fired necessary events.
1584
1585         * DataTable.cs: LoadDataRow (object [], LoadOption): Fired
1586         necessary events.
1587
1588 2005-06-28  Sureshkumar T  <tsureshkumar@novell.com>
1589
1590         * DataRow.cs: Delete (): if row is detached, do nothing.
1591         fixes bug #75388.
1592
1593 2005-06-22  Sureshkumar T  <tsureshkumar@novell.com>
1594
1595         * DataRow.cs: Added method MergeValuesToRow copy merge two rows
1596         according to the merge rules.
1597
1598         * MergeManager.cs: (MergeRow): use MergeValuesToRow
1599         API. CopyValuesToRow simply makes the target row same as source
1600         row. Rather, MergeValuesToRow merges with the target row according
1601         to the merge rules.
1602
1603 2005-06-19  Konstantin Triger <kostat@mainsoft.com>
1604
1605         * DataSet.cs: Fixed ReadXml to work with IXmlSerializable
1606
1607 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
1608
1609         * DataViewManager.cs: fixes exception and creates DataView
1610
1611 2005-06-15  Sureshkumar T  <tsureshkumar@novell.com>
1612
1613         * DataRow.cs: CheckChildRows: cascade parent changes to child rows
1614         only if there is a change in columns of the fk constraint.
1615
1616 2005-06-14  Sureshkumar T  <tsureshkumar@novell.com>
1617
1618         * DataSet.cs: GetChanges: if row is deleted, get parent rows based
1619         on original version. fixes bug #75227.
1620
1621 2005-06-13  Sureshkumar T  <tsureshkumar@novell.com>
1622
1623         * DataRowCollection.cs: Find (keys, version): Added an overload to
1624         find keys matching given DataViewRowState filter. Used in
1625         DataSet.Merge and DataTable.LoadDataRow.
1626
1627         * DataTable.cs: LoadDataRow (values, LoadOption): Use
1628         DataRowCollection.Find (object [], DataViewRowState) overload.
1629
1630         * DataRow.cs:
1631         - CopyValuesToRow: Create target "records" out of loop. Records
1632         should be created once, not for each column. Dispose Unused target
1633         records.
1634
1635         * MergeManager.cs:
1636         - MergeRow: Find rows with matching original records. If not,
1637         select with current values.
1638         - MergeRow: While adding new row, use NewNotInitializedRow.
1639
1640         * ForeignKeyConstraint.cs: IsConstraintViolated: should not check
1641         if EnforceConstraints is false.
1642
1643 2005-06-10  Sureshkumar T  <tsureshkumar@novell.com>
1644
1645         * DataRow.cs: CopyValuesToRow: if orginal == current, don't create
1646         a new current record.
1647
1648         * DataSet.cs: GetChanges :Temporarily disable EnforceConstraints.
1649
1650         * MergeManager.cs: Merge: Temporarily disable
1651         EnforceConstraints. Patch from george.barbarosie@gmail.com (George
1652         Barbarosie).
1653
1654 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
1655
1656         * DataView.cs: fixes GetListName
1657
1658 2005-06-02  Atsushi Enomoto  <atsushi@ximian.com>
1659
1660         * XmlSchemaConstants.cs,
1661           XmlSchemaDataImporter.cs,
1662           XmlSchemaWriter.cs : AutoIncrementStep support. Patch partly by
1663           George Barbarosie. Fixed bug #75121.
1664         * XmlSchemaMapper.cs : it is not used anymore, so just removed.
1665
1666 2005-05-31 Boris Kirzner <borisk@mainsoft.com>
1667         * DataRow.cs : SetParentRow on Detached row with no Default version throws an exception.
1668         
1669 2005-05-29 Konstantin Triger <kostat@mainsoft.com>
1670
1671         * This patch fixes #74813
1672         * DataView.cs: rework the CreateChildView to receive the index into the indexed row array, rowState became protected to be initialized from RelatedDataView
1673         * DataRowView.cs: movo the logic of creating the child view to the DataView
1674         * RelatedDataView.cs: perform correct init.
1675
1676 2005-05-25  Sureshkumar T  <tsureshkumar@novell.com>
1677
1678         * DataTable.cs: Reworked DataTable.LoadDataRow method after
1679         regressions caused by Index redesign.
1680         * DataRow.cs: Load : reworked.
1681
1682 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
1683
1684         * ISafeDataRecord.cs: Added GetDateTimeSafe method, the interface was made derived from IDataRecord
1685
1686 2005-05-22 Konstantin Triger <kostat@mainsoft.com>
1687
1688         * DataTable.cs, DataColumn.cs: in continuation to the previous fix - moving the common logic to 1 function and throwing the correct exception in any flow
1689
1690 2005-05-20  Sureshkumar T  <tsureshkumar@novell.com>
1691
1692         * DataTable.cs: CreateRecord :value should be set to auto
1693         increment value or default value if the given value is null.
1694
1695 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1696
1697         * DataTable.cs: In DataTable.LoadDataRow with LoadOption - reverting the search order back to Original -> Current (by Suresh request)
1698
1699 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1700
1701         * DataRow.cs, DataTable.cs: code under net_2_0 changed to use the new interface
1702         * DataTable.cs: Added CompareRecords, which compares records in column order
1703
1704
1705 2005-05-16  Sureshkumar T  <tsureshkumar@novell.com>
1706
1707         * DataRow.cs:
1708         * DataTable.cs: quick fix to make build 2.0 profile (follow up for
1709         check in 2005-05-16). Merge with previous changes.
1710
1711 2005-05-11  Sureshkumar T  <tsureshkumar@novell.com>
1712
1713         fix for "import row does not import deleted records"
1714
1715         * UniqueConstraint.cs: Make a way to access value even from a
1716         deleted record. deleted records are added to the collection by
1717         ImportRow method.
1718
1719         * DataRow.cs:
1720         - Added restriction-less methods GetValue to fetch a
1721         value even if it is in deleted state.
1722         - If a row is detached, don't try to delete it from indexes.
1723         - sanity check for record_index in CopyValuesToRow method
1724
1725 2005-05-05  Sureshkumar T  <tsureshkumar@novell.com>
1726
1727         * DataTableReader.cs: Implemented Delete handler and move the
1728         current pointer accordingly.
1729
1730 2005-05-04  Sureshkumar T  <tsureshkumar@novell.com>
1731
1732         * DataTableReader.cs: Added event handlers to make reader stable
1733         when the datasource is modified. Thanks to Umadevi for giving the
1734         review comments for this implementation.
1735
1736         * DataTable.cs: Clear (): Raise TableCleared event.
1737
1738         * DataTableClearEventArgs.cs: Args for DataTableClearEventHandler.
1739
1740         * DataTableClearEventHandler.cs: Handler for DataTable.TableClear
1741         event.
1742
1743         * DataRow.cs: AcceptChanges: raise row changing & row changed
1744         events.
1745
1746         * DataRowCollection.cs: Clear : remove rows from indexes
1747
1748 2005-05-02  Atsushi Enomoto  <atsushi@ximian.com>
1749
1750         * XmlSchemaDataImporter.cs : XmlSchemaParicle might be XmlSchemaAny.
1751           This fixes bug #74784.
1752
1753 2005-04-29  Sureshkumar T  <tsureshkumar@novell.com>
1754
1755         * DataTableReader.cs: removed use of _first. throw if given index
1756         is out of range of columns. Copy DataTable [] to local array so
1757         that not to be disturbed.
1758
1759 2005-04-27  Sureshkumar T  <tsureshkumar@novell.com>
1760
1761         * DataTableReader.cs: Implemented most of the TODO.
1762
1763 2005-04-22  Sureshkumar T  <tsureshkumar@novell.com>
1764
1765         * LoadOption.cs: Changed the enums. Keeping old values for
1766         migration.
1767
1768         * DataTable.cs: Implemented methods Load and its overloads. Also
1769         implemented LoadDataRow.
1770
1771         * DataRowCollection.cs: Added a variation of the Find method to
1772         return a row even if it is of state Deleted. This is required for
1773         DataTable.LoadDataRow method.
1774
1775         * DataRow.cs: Implemented internal helper method Load for loading
1776         values from an object array and given an LoadOption (2.0 feature).
1777
1778         * DataRowAction.cs: Added few more enums for .net 2.0. Sorted
1779         alphabetically.
1780
1781 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1782
1783         * UniqueConstraint.cs : IsNull check is relevant for rows having default row version.
1784         * DataTable.cs : The row should be validated when imported
1785         * DataRowCollection.cs : if the row does not contain Proposed neither Current version, it's irrelevant for validation
1786
1787 2005-04-26 Boris Kirzner <borisk@mainsoft.com>
1788
1789         * UniqueConstraint.cs :
1790                 - Add indication whenever the constraint belongs to collection. 
1791                 - Calculation of IsPrimaryKey simplified.
1792                 - If constraint is based on single column, the column becomes unique.
1793                 - Use boolean IsConstraintViolated() instead of AssertConstraint().
1794                 - Use Index.Duplicates to proper exception message formatting.
1795                 - AssertConstraint(DataRow) changed to suite new indexes interface.
1796                 - Added CanRemoveFromCollection method.
1797                 - Contains() method renamed to IsColumnContained().
1798         * RelatedDataView.cs : added new class.
1799         * MergeManager.cs :
1800                 - Reset indexes after merge.
1801                 - Add new tables when row array is merged into dataset.
1802                 - Clean proposed record in MergeRow.
1803                 - Inherit nesting on creating new relations in target data set.
1804                 - Avoid double loop on constraints collection.
1805         * Locale.cs : added new class.
1806         * ISafeDataRecord.cs : added new interface.
1807         * Index.cs : commented out. Index implementation moved to System.Data.Common.
1808         * ForeignKeyConstraint.cs : 
1809                 - No more use of childColumnsExtended since new indexes allow duplicate records.
1810                 - Constraints can not be created on expression columns.
1811                 - Removed unnecessary delegation.
1812                 - Use boolean IsConstraintViolated() instead of AssertConstraint(). 
1813                 - Use proper exception message formatting.
1814                 - Contains() method renamed to IsColumnContained().
1815         * DataViewRowState.cs : use enum members to simplify notation.
1816         * MergeManager.cs : implemented RelationCollectionChanged().
1817         * DataView.cs :  new implementation.
1818         * DataTableCollection.cs : 
1819                 - Added boundary check in indexer.
1820                 - More accurate handling in AddRange().
1821                 - Raise event in Remove().
1822         * DataTable.cs :
1823                 - Hold primary key as constraint.
1824                 - Added accurate handling of DefaultView.
1825                 - Hold DataRowBuilder per table.
1826                 - Proper exception messages if enforce Constraints is violated.
1827                 - If there is no rows, Compute() returns DBNull.
1828                 - Use DataRow properties instead of private members.
1829                 - CopyProperties() fixed.
1830                 - Raise proper events in EndInit().
1831                 - Proper order of violation checks in EndLoadData().
1832                 - Create array of rows using NewRowArray().
1833                 - ImportRow handles rows according to their versions.
1834                 - LoadDataRow make use of records (instead of raw object array).
1835                 - Added and implemented LoadDataRow() that gets IDataRecord as a parameter (used in Fill)
1836                 - Select() uses indexes filtering and sorting ability (instead of "loop-throw-sort" approach).
1837                 - Removed redundant RowSorter and Sortable column classes.
1838                 - ParseSortString() fixed to threat bracketed column names.
1839                 - Table holds collection of property descriptors.
1840         * DataSet.cs :
1841                 - Reset table case sensitive indexes on CaseSensitive change.
1842                 - EnforceConstraints update logic moved to internal method (used by DataTable).
1843                 - InAddChangedRow first add row and than copy values for proper handling of default values.
1844         * DataRowView.cs :
1845                 - Changed private member names to suite name convention.
1846                 - CancelEdit() fixed.
1847                 - CreateChildView() delegates to DataView.
1848                 - IsNew fixed.
1849                 - Proper exception messages in indexers.
1850                 - RowVersion uses DataView.
1851                 - GetProperties() delegates to corresponding table if needed.
1852         * DataRowCollection.cs :
1853                 - Common Add() logic moved to AddInternal() (used also by DataTable).
1854                 - Removed redundant check from Contains().
1855                 - Dalegate Find() calls when possible.
1856                 - Remove() fixed.
1857                 - RomoveAt() delegates to Remove().
1858                 - Optimized constraints check in row validation.
1859         * DataRelationPropertyDescriptor.cs : added new class.
1860         * DataRelationCollection.cs :
1861                 - Indexers fixed.
1862                 - Fixed order of actions in AddCore().
1863                 - RemoveCore() also delegates to base.
1864                 - Add relation to dataset also in AddCore().
1865                 - Remove relation from dataset also in RemoveCore().
1866                 - InTransition hold a data relation so we can properly identify the "in transition" state.
1867                 - Added threat of parent and child table s property descriptors in Add().
1868                 - Common Add() logic moved to AddCore().
1869                 - Clear() fixed.
1870                 - Remove() threats "in transition" state properly.
1871                 - Remove methods delegate to single implementation.
1872         * DataColumnPropertyDescriptior.cs :
1873                 - Added new constructor.
1874                 - Commented out redundant method.
1875         * DataColumnCollection.cs :
1876                 - Boundary check in indexer.
1877                 - RegisterName and UnregisterName become internal (used also by DataColumn).
1878                 - Fixed AddRange().
1879                 - Fixed CanRemove().
1880                 - Rethrow correct exception in Clear();
1881                 - Change in collection resets parent table property descriptors.
1882                 - Added PostEndEdit() helper method (used by DataTable).
1883         * DataColumn.cs :
1884                 - Private member names changed to suite name convention.
1885                 - Created method for CanAutoIncrement() logic.
1886                 - Proper handling of column name update.
1887                 - Proper exception messages on expression update.
1888                 - Proper namespace handling (delegates to table when needed).
1889                 - Removed redundant check in Unique update.
1890                 - Implemented internal Clone().
1891                 - GetParentRalation() and GetChildRelation() become private.
1892         * Constraint.cs :
1893                 - Added abstract methods (implemented in UniqueConstraint and ForeignKeyConstraint).
1894                 - Simplified index update.
1895         * ConstraintCollection.cs :
1896                 - Use Locale instead of CaseSensitive in column names comparison.
1897                 - Removed #ifdef
1898                 - Rethrow correct exception type in Add().
1899                 - Proper update of table primary key in Add().
1900                 - Delegate CanRemove() to constraint.
1901                 - Remove table primary key in Clear();
1902                 - Delegate "can remove" check to constraint in Remove().
1903                 - Removed unnecessary methods and properties.
1904         * DataRow.cs :
1905                 - RowSate becomes calculated property.
1906                 - Use properties instead of private members where possible.
1907                 - Fixed indexer.
1908                 - Fixed order of actions in ItemArray update.
1909                 - Fixed DetachRow().
1910                 - Added ImportRecord() method.
1911                 - Removed redundant SetValuesFromDataRecord().
1912                 - Fixed IndexFromVersion().
1913                 - Added VersionFromIndex() method. Returns row version the passed record index corresponds to.
1914                 - Fixed AcceptChanges().
1915                 - Fixed creating proposed version in BeginEdit();
1916                 - Added record disposal in Delete().
1917                 - Fixed CheckChildRows().
1918                 - EndEdit() fixed. Checks for readonly. Uses straight flow instead of "try and fix if fail" approach.
1919                 - GetChildRows() and GetPrarentRows() rewrited. Use records and indexes for rows lookup.
1920                 - GetColumnError() delegates to another implementation.
1921                 - HasVersion() fixed.
1922                 - RejectCahnges checks on child rows before passing through.
1923                 - SetParentRow() fixed. Create relation collection if needed. Use typed data container value copy.
1924                 - CopyErrors() logic moved to separate method (used also by DataTable).
1925         * ExpressionElement.cs : added new class.
1926         * Res.cs : added new class.
1927
1928 2005-04-20  Jordi Mas i Hernandez <jordi@ximian.com>
1929
1930         * DataViewManager.cs: implements TypedList.GetListName used in SWF
1931
1932 2005-04-19  Atsushi Enomoto  <atsushi@ximian.com>
1933
1934         * DataRowView.cs : indexer should access to DataRow with proper
1935           DataRowVersion. Fixed bug #74650.
1936
1937 2005-04-18  Sureshkumar T  <tsureshkumar@novell.com>
1938
1939         * DataRow.cs: if there are no mapping fields, fill with default
1940           value.
1941
1942 2005-04-17  Atsushi Enomoto  <atsushi@ximian.com>
1943
1944         * DataView.cs : Delete() should not try to remove row twice.
1945           Fixed bug #74631.
1946
1947 2005-04-13  Atsushi Enomoto  <atsushi@ximian.com>
1948
1949         * DataTable.cs : Use GetRowType() for the base of the returning array 
1950           type of Select(). Fix by Gerhard Rittweger.
1951         * CustomDataClassGenerator.cs : Fixed slightly harmless wrong code.
1952
1953 2005-04-13  Atsushi Enomoto  <atsushi@ximian.com>
1954
1955         * CustomDataClassGenerator.cs : custom relation was not added to
1956           Relations property. The second entry of bug #69276 was fixed.
1957           Patch by Daniel Rodriguez.
1958
1959 2005-04-07  Lluis Sanchez Gual <lluis@novell.com>
1960
1961         * DataRowCollection.cs: Fix the signature of the Add method
1962         for NET_2_0.
1963
1964 2005-03-16  Atsushi Enomoto  <atsushi@ximian.com>
1965
1966         * DataRow.cs : on importing row, it was copying data from incorrect
1967           DataRow. This fixes bug #73288.
1968
1969 2005-03-07  Jackson Harper  <jackson@ximian.com>
1970
1971         * DataViewManagerListItemTypeDescriptor.cs: Implement missing
1972         features. These are needed for System.Windows.Forms databinding.
1973
1974 2005-02-25  Atsushi Enomoto  <atsushi@ximian.com>
1975
1976         * DataColumn.cs : setting negative value on MaxLength of SimpleContent
1977           column is still valid.
1978
1979 2005-02-15  Atsushi Enomoto  <atsushi@ximian.com>
1980
1981         * XmlSchemaWriter.cs : new file for outputting XmlSchema.
1982         * DataSet.cs : removed rewritten code in XmlSchemaWriter.
1983         * XmlConstants.cs : added UseCurrentCulture constant.
1984         * DataTable.cs :
1985           Use new Xml Schema writer.
1986           Use XmlSchemaDataImporter as we use in DataSet.
1987
1988 2005-02-10  Atsushi Enomoto  <atsushi@ximian.com>
1989
1990         * DataView.cs, DataRowView.cs : Fixed bug #72421. CreateChildView()
1991           should target only child rows.
1992
1993 2005-02-03  Atsushi Enomoto  <atsushi@ximian.com>
1994
1995         * DataViewManager.cs: misuse of ReadStartElement(string).
1996         * DataRowView.cs : removed some MonoTODO.
1997
1998 2005-02-02  Sureshkumar T  <tsureshkumar@novell.com>
1999             Ankit Jain     <radical@corewars.org>
2000
2001         * DataColumn.cs: throw exception if the column is part of a
2002         relationship, when chaning the data type. Added methods
2003         "GetParentRelation ()" and "GetChildRelation ()" get the relation
2004         which contains the current column
2005         * DataRelation.cs: Added method "Contains (DataColumn)" to check
2006         whether the relation contains the given column.
2007
2008         fixes nunit failure: DataRelationTest.InvalidConstraintException2.
2009
2010 2005-02-02  Sureshkumar T  <tsureshkumar@novell.com>
2011
2012         * DataColumnCollection.cs: implemented todo item "check for
2013         constraints" when removing columns from table.
2014         * DataRowCollection.cs: Clear (): don't have to throw child key
2015         constraint exception when the child table does not have any
2016         rows. safe to remove parent rows.
2017         * UniqueConstraint.cs: added method "Contains (DataColumn)" to
2018         check whether a column is part of UniqueConstraint.
2019         * ForeignKeyConstraint.cs: added method "Contains (DataColumn,
2020         lookInParent)" to check whether a column is part of foreignkey.
2021
2022         fixes nunit failure: DataTableTest.ClearTest ()
2023
2024 2005-02-02  Sureshkumar T  <tsureshkumar@novell.com>
2025
2026         * ForeignKeyConstraint.cs: validating columns: move checking
2027         "tables are of same dataset" before "checking column types".
2028
2029         fixes nunit failure: ForeignKeyConstraint.CtorExceptions.
2030         
2031 2005-02-02  Atsushi Enomoto  <atsushi@ximian.com>
2032
2033         * DataViewManager.cs : let's just use StringWriter instead of 
2034           XmlTextWriter (to avoid empty tag string mismatch annoyance.)
2035         * DataView.cs : implemented BeginInit() and EndInit(). Don't update
2036           rows during init phase until EndInit() is invoked. During init phase,
2037           just hold properties such as Sort that affects on rows.
2038
2039 2005-02-02  Atsushi Enomoto  <atsushi@ximian.com>
2040
2041         * DataTableCollection.cs : (RemoveAt) just use IndexOutOfRangeException.
2042
2043 2005-02-02  Atsushi Enomoto  <atsushi@ximian.com>
2044
2045         * DataView.cs : DataRowView.EndEdit() raises ItemMoved event.
2046           set_Table clears Sort and RowFilter.
2047
2048 2005-02-02  Atsushi Enomoto  <atsushi@ximian.com>
2049
2050         * DataView.cs :
2051           - Clear() should clear AddNew cache.
2052           - Open() invokes Reset().
2053           - ConstraintCollectionChanged() itself does not invoke OnListChanged().
2054           - Reset() does not Open, Close and Update Index.
2055           - UpdateIndex() can be invoked even if it has no table.
2056           - Reset event is invoked always after actual query to table.
2057           - set_Table should raise PropertyDescriptorChanged event.
2058
2059 2005-02-02  Atsushi Enomoto  <atsushi@ximian.com>
2060
2061         * DataView.cs : ColumnCollectionChanged() is the event invoker (i.e.
2062           when overriden, no column change events are fired).
2063
2064 2005-02-02  Atsushi Enomoto  <atsushi@ximian.com>
2065
2066         * DataView.cs : CancelEditRowView() and DeleteRowView() was incorrectly
2067           checking target tables. They also should raise events if required.
2068
2069 2005-02-02  Atsushi Enomoto  <atsushi@ximian.com>
2070
2071         * DataView.cs : simplify code with UnsortedList.
2072
2073 2005-02-01  Atsushi Enomoto  <atsushi@ximian.com>
2074
2075         * DataView.cs : Mostly reimplemented.
2076           - UpdateIndex() is invoked only when it is required (results in 
2077             significant performance improvement).
2078           - Use SortedList and wrapper OptionalSortedList which switches
2079             between SortedList (with Sort) and UnsortedList (without Sort).
2080           - DataView itself now contains two collections for rowviews:
2081             Table rows based pool and AddNew() based cache. Consider those
2082             two collections in every members.
2083           - Reset() does not clear rows. Just invokes UpdateIndex().
2084           - Hook RowDeleting, ColumnChanging and ColumnChanged events in table
2085             which is required to handle state changes.
2086           - Reimplemented Find() and FindRows() because of internal changes.
2087
2088 2005-02-01  Atsushi Enomoto  <atsushi@ximian.com>
2089
2090         * DataTable.cs : Fixed row comparer. Even if every of the sort target
2091           columns are identical for two rows, they should not be regarded as
2092           the same unless they are Object.ReferenceEquals.
2093
2094 2005-02-01  Atsushi Enomoto  <atsushi@ximian.com>
2095
2096         * DataRowCollection.cs : on adding a row, should raise
2097           ChangingDataRow() as well as ChangedDataRow().
2098
2099 2005-01-31  Sureshkumar T  <tsureshkumar@novell.com>
2100
2101         * DataRow.cs: SetParentRow (): use relation.ParentColumns &
2102         relation.ChildColumns instead of relation.ChildKeyConstraint.*
2103         because createConstrains flag may be false when creating data
2104         relations. Hack along with Ankit Jain.
2105         
2106 2005-01-31  Atsushi Enomoto  <atsushi@ximian.com>
2107
2108         * DataView.cs :some interface implementations.
2109
2110 2005-01-28  Atsushi Enomoto  <atsushi@ximian.com>
2111
2112         * DataView.cs : Add to table only when the row is not in the table.
2113
2114 2005-01-28  Atsushi Enomoto  <atsushi@ximian.com>
2115
2116         * DataView.cs : implemented FindRows() (btw we should not use
2117           DataTable since there are detached rows by AddNew().)
2118
2119 2005-01-28  Atsushi Enomoto  <atsushi@ximian.com>
2120
2121         * DataView.cs :
2122           Code cleanup: privatify some members, remove unused methods.
2123           Some event-based invocation methods should not raise NotImplemented.
2124
2125 2005-01-28  Atsushi Enomoto  <atsushi@ximian.com>
2126
2127         * DataSet.cs : ReadXml() became closer to MS behavior, being hacky.
2128
2129 2005-01-28  Atsushi Enomoto  <atsushi@ximian.com>
2130
2131         * XmlSchemaDataImporter.cs : empty element is not regarded as a column.
2132
2133 2005-01-28  Atsushi Enomoto  <atsushi@ximian.com>
2134
2135         * UniqueConstraint.cs : mostly reverted the previous patch + check
2136           IsPrimaryKey before validation.
2137
2138 2005-01-28  Atsushi Enomoto  <atsushi@ximian.com>
2139
2140         * DataView.cs : Fixed duplicate insertion to Hashtable.
2141         * UniqueConstraint.cs : Unique constrained pair of columns could be
2142           nullable.
2143
2144 2005-01-27  Atsushi Enomoto  <atsushi@ximian.com>
2145
2146         * DataView.cs :
2147           Don't do anything for Sort/ApplyDefaultSort/RowFilter/RowStateFilter
2148           when the same value is being set.
2149           Examined UpdateIndex() and marked FIXME where MS does not invoke it.
2150           Removed unused OnColumnChanged().
2151           Now store rowViewPool and reuse DataRowView objects.
2152           Optimized UpdateIndex() - avoid ArrayList. Avoid Haashtable.Rehash().
2153
2154 2005-01-27  Atsushi Enomoto  <atsushi@ximian.com>
2155
2156         * DataViewSettings.cs : no MonoTODO anymore.
2157         * DataViewManager.cs : pass itself to new DataView() (new ctor).
2158         * DataRowView.cs : GetHashCode() returns its Row's hash.
2159         * DataTablePropertyDescriptor.cs : use new ctor().
2160         * DataView.cs : added new ctor()s that accept DataViewManager.
2161
2162 2005-01-27  Atsushi Enomoto  <atsushi@ximian.com>
2163
2164         * DataView.cs, DataRowView.cs : AddNew() should not add the row to table
2165           (it is still detached). So handle those rows differntly.
2166           CancelEdit(), EndEdit() and Delete() propagates those events to
2167           DataView (and handle row collection).
2168           Eliminate "throw new Exception()".
2169           Don't catch all the exception thrown in ListChanged event.
2170         * DataTable.cs : made RowSorter as internal and use it in DataView.
2171           no need to pass DataRow[] to .ctor().
2172
2173 2005-01-27  Atsushi Enomoto  <atsushi@ximian.com>
2174
2175         * DataTable.cs : don't create DefaultView unless it is required. It
2176           significantly improves performance. (i.e. DataView perf. is sick ;-)
2177
2178 2005-01-27  Atsushi Enomoto  <atsushi@ximian.com>
2179
2180         * DataViewSetting.cs,
2181           DataViewSettingCollection.cs,
2182           DataViewManager.cs : implemented basic members.
2183
2184 2005-01-26  Atsushi Enomoto  <atsushi@ximian.com>
2185
2186         * Node.cs, DataColumnPropertyDescriptor.cs, DataTable.cs :
2187           Eliminate "throw new Exception".
2188
2189 2005-01-25  Atsushi Enomoto  <atsushi@ximian.com>
2190
2191         * DataRow.cs : (set_Item) RowNotInTableExeption check should be done
2192           regardless of index existence.
2193
2194 2005-01-25  Atsushi Enomoto  <atsushi@ximian.com>
2195
2196         * DataTable.cs : use new IExpression.EvalBoolean() to avoid extraneous
2197           boxing.
2198
2199 2005-01-25  Sureshkumar T  <tsureshkumar@novell.com>
2200
2201         * DataTable.cs: ImportRow :Do not add to rows collection if the
2202         import row is in detached state.
2203
2204 2005-01-25  Sureshkumar T  <tsureshkumar@novell.com>
2205
2206         * DataRow.cs: CopyValuesToRow : set the column value with the
2207         default version of the given row.
2208         * DataTable.cs: ImportRow: Copy values before adding row.
2209         * DataSet.cs: AddChangedRow: Add the row to the table after
2210         copying values.
2211         
2212         Fixes bug #67317. Patch by Ankit Jain.
2213
2214 2005-01-25  Atsushi Enomoto  <atsushi@ximian.com>
2215
2216         * DataRowView.cs : Fixed IsEdit to reflect correct status of DataRow.
2217         * DataRow.cs : Expose editing status internally.
2218
2219 2005-01-25  Atsushi Enomoto  <atsushi@ximian.com>
2220
2221         * DataView.cs : missing attributes.
2222
2223 2005-01-24  Atsushi Enomoto  <atsushi@ximian.com>
2224
2225         * DataRowView.cs : implemented CreateChildView().
2226
2227 2005-01-24  Atsushi Enomoto  <atsushi@ximian.com>
2228
2229         * DataTable.cs, DataView.cs :
2230           Optimized DataView to compile only once RowFilter and Sort when 
2231           those properties are set. To make it possible, extracted 
2232           SortableColumn out of DataTable and added internal DataTable.Select()
2233           that accepts precompiled IExpression and SortableColumns[].
2234
2235 2005-01-24  Atsushi Enomoto  <atsushi@ximian.com>
2236
2237         * DataColumn.cs : set_MaxLength is not allowed when it is mapped to
2238           SimpleContent. (However, it is weird but it never fails when we set
2239           ColumnMapping = MappingType.SimpleContent when we fhave MaxLength.)
2240
2241 2005-01-21  Atsushi Enomoto  <atsushi@ximian.com>
2242
2243         * DataRow.cs : more Current -> Default fixes. Check if it should throw
2244           VersionNotFoundException. Patch by Ankit Jain.
2245
2246 2005-01-21  Atsushi Enomoto  <atsushi@ximian.com>
2247
2248         * DataRow.cs : Default selects the right version for the current
2249           state of the row. Current is not always available. Also change
2250           that for GetParentRow(). Patch by Ankit Jain.
2251
2252 2005-01-21  Atsushi Enomoto  <atsushi@ximian.com>
2253
2254         * DataTable.cs : CopyColumn() should copy AutoIncrement after
2255           DefaultValue, or it will raise an error in some cases.
2256
2257 2005-01-20  Atsushi Enomoto  <atsushi@ximian.com>
2258
2259         * ConstraintCollection.cs : Add() should throw ArgumentException when
2260           the argument constraint fails validation.
2261           DataTable.cs : set_PrimaryKey should throw ArgumentException when
2262           the argument contains constraints which fail validation.
2263
2264 2005-01-19  Sureshkumar T  <tsureshkumar@novell.com>
2265
2266         * DataRelationCollection.cs: 
2267
2268         Method Remove : Donot throw exception if DataRelation argument is
2269         null in DataRelationCollection.Remove method.
2270
2271         Method RemoveAt : Exception should be IndexOutOfRangeException if
2272         row index is not in list range.
2273
2274         Fixes nunit failures DataRelationCollection.Remove and
2275         DataRelationCollection.RemoveAt.
2276
2277 2005-01-19  Sureshkumar T  <tsureshkumar@novell.com>    
2278
2279         * ConstraintCollection.cs: Donot throw exception if constraints
2280         are null in AddRange method. Check for null before using the
2281         argument.
2282
2283         fixes bug #69381.
2284
2285 2004-01-19  Atsushi Enomoto  <atsushi@ximian.com>
2286
2287         * XmlDataInferenceLoader.cs,
2288           XmlDataReader.cs : Check if the XmlReader (node) represents DataSet
2289           or a table, reusing code block in XmlDataInferenceLoader.
2290           This fixes bug #60118.
2291
2292 2004-01-19  Atsushi Enomoto  <atsushi@ximian.com>
2293
2294         * XmlDiffLoader.cs : Ankit Jain <radical@imt.ac.in> has a conflicting
2295           patches and some good catches. Some attributes should be skipped,
2296           and loaded value must be typed.
2297
2298 2004-01-19  Atsushi Enomoto  <atsushi@ximian.com>
2299
2300         * XmlConstants.cs,
2301           XmlDataInferenceLoader.cs, 
2302           XmlDataReader.cs : use common const for http://www.w3.org/2000/xmlns/.
2303         * XmlDiffLoader.cs : It was not handling attributes. Fixed bug #70961.
2304
2305 2005-01-18  Sureshkumar T  <tsureshkumar@novell.com>
2306
2307         Fix for bug #66838. This patch is submitted by "Ankit Jain"
2308         <radical@corewars.org> and refactored.
2309
2310         * DataRow.cs: Allows to set a parent row even if the row is in
2311         detached state.
2312
2313         * DataRelation.cs: method "UpdateConstraints" is added to check
2314         and create missing keys when adding a relation. This is refactored
2315         approach from DataRelationCollection.Add method.
2316
2317         * DataRelationCollection.cs: AddCore methods of all relation types
2318         are synchronized. A Check for existing constraints is
2319         done. Relation is added to the list only if all checks are passed.
2320
2321 2004-01-18  Atsushi Enomoto  <atsushi@ximian.com>
2322
2323         * DataColumnCollection.cs : Clear() throws ArgumentException that
2324           wraps thrown innerException.
2325         * XmlSchemaDataImporter.cs : removed FIXMEs.
2326
2327 2004-01-12  Atsushi Enomoto  <atsushi@ximian.com>
2328
2329         * DataSet.cs : When serializing DataTable, BuildSchema() is passed
2330           null relation collections.
2331           Quick fix for XmlSerializer deserialization. It does not require
2332           XML Schema included.
2333
2334 2004-01-11  Atsushi Enomoto  <atsushi@ximian.com>
2335
2336         * DataSet.cs,
2337           CustomDataClassGenerator.cs :
2338           In DataSet class, IXmlSerializable.GetSchema() returns null.
2339           In strongly-typed class, it returns schema.
2340
2341 2004-01-07  Atsushi Enomoto  <atsushi@ximian.com>
2342
2343         * XmlDataInferenceLoader.cs : test driver class should be excluded.
2344
2345 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
2346
2347         * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
2348         is never null.
2349
2350 2004-11-10  Atsushi Enomoto  <atsushi@ximian.com>
2351
2352         * CustomDataClassGenerator.cs : generated foreign key constraint
2353           construction code was creating empty child columns and thus it
2354           was invalid. This fixes bug #69276 (patch by Martin Voelkle).
2355
2356 2004-11-02  Atsushi Enomoto  <atsushi@ximian.com>
2357
2358         * CustomDataClassGenerator.cs : custom DataTable ctor should call
2359           InitializeFields(), and those DataColumns created by that method
2360           should take data type. This should fix bug #68972.
2361
2362 2004-10-15  Atsushi Enomoto  <atsushi@ximian.com>
2363
2364         * DataSet.cs : Also clear UnhandledAttributes ArrayList before 
2365           generating next attribute column schema. This fixes bug #68432.
2366
2367 2004-10-14 Umadevi S <sumadevi@novell.com>
2368         * DataTable.cs : Corrected the Clone method to use  Activator.CreateInstance so that the
2369         correct subclass is returned. This fixes bug #67631
2370                                                                                         
2371 2004-10-14 Umadevi S <sumadevi@novell.com>
2372         * DataSet.cs : Corrected the Clone method to use  Activator.CreateInstance so that the  
2373         correct subclass is returned. This fixes bug #67627
2374
2375 2004-10-13  Atsushi Enomoto  <atsushi@ximian.com>
2376
2377         * DataSet.cs : clear UnhandledAttributes ArrayList before generating
2378           next element column schema. This fixes bug #68256.
2379
2380 2004-10-12  Atsushi Enomoto  <atsushi@ximian.com>
2381
2382         * DataSet.cs : now xs:schema contains xmlns="".
2383           This fixes bug #68008.
2384
2385 2004-10-12  Atsushi Enomoto  <atsushi@ximian.com>
2386
2387         * DataSet.cs : DBNull attribute column should not be written as
2388           empty attribute. This fixes bug #68007.
2389
2390 2004-10-12  Atsushi Enomoto  <atsushi@ximian.com>
2391
2392         * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
2393           DataColumn.ReadOnly was not handled. This fixes bug #68005.
2394           Attribute defaultValue was not handled too.
2395
2396 2004-10-07  Atsushi Enomoto  <atsushi@ximian.com>
2397
2398         * DataSet.cs :
2399           - When AllowDBNull is false on attribute DataColumn, its schema
2400             should contain use="required". This fixes bug #66792.
2401           - If MaxLength is set on attribute DataColumn, the mapped schema
2402             type should contain maxLength facet. This fixes bug #66793.
2403
2404 2004-10-04  Atsushi Enomoto  <atsushi@ximian.com>
2405
2406         * DataSet.cs : For a row, when a relation is not nested, then it is
2407           still output target since it won't be written as a child of its
2408           parent. It fixes bug #66379.
2409
2410 2004-10-03  Atsushi Enomoto  <atsushi@ximian.com>
2411
2412         * DataSet.cs : Attribute constraint field XPath must be written as
2413           @blah. This fixes bug #66366.
2414
2415 2004-09-28 Umadevi S <sumadevi@novell.com>
2416         * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
2417
2418 2004-09-24  Sureshkumar T  <tsureshkumar@novell.com>
2419
2420         * DataSet.cs : Don't check constraints for dataset clear
2421         * DataRowCollection.cs : check for EnforceConstraints flag 
2422         before checking foriegn key constraints in Clear method
2423         * DataTable.cs : Redundant checking removed in Clear method as it is
2424         checked in DataRowCollection.Clear method. 
2425
2426
2427 2004-09-19  Sureshkumar T <tsureshkumar@novell.com>
2428         * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
2429                        hence, adding a row cache is necessary if the original row happens to be current.
2430                        fixed bug #63097
2431
2432 2004-08-23  Martin Baulig  <martin@ximian.com>
2433
2434         * XmlDataInferenceLoader.cs (Driver): Make this class internal,
2435         not public.
2436
2437 2004-08-18 Umadevi S <sumadevi@novell.com>
2438         * DataView.cs - Completed most of the event handling. 
2439         Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
2440         Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
2441         * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
2442
2443 2004-08-06  Atsushi Enomoto  <atsushi@ximian.com>
2444
2445         * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
2446
2447 2004-08-05  Atsushi Enomoto  <atsushi@ximian.com>
2448
2449         * XmlConstants.cs : Added constants for "msprop" support.
2450         * DataSet.cs : ExtendedProperties should be written in the schema.
2451           This fixes bug #61233.
2452
2453 2004-07-27  Atsushi Enomoto  <atsushi@ximian.com>
2454
2455         * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
2456           used. There were also some culture dependency problems to write int.
2457
2458 2004-06-27  Atsushi Enomoto  <atsushi@ximian.com>
2459
2460         * XmlDataInferenceLoader.cs : It was not always filling relation
2461           child table information correctly. This fixes bug #60742.
2462
2463 2004-06-23 Umadevi S <sumadevi@novell.com>
2464         * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
2465
2466 2004-06-22  Atsushi Enomoto  <atsushi@ximian.com>
2467
2468         * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
2469           schema is inside the document element (as created in XmlWriteMode
2470           .WriteSchema), it should read schema from that non-document element.
2471           This fixes one case reported in bug #60470.
2472
2473 2004-06-20  Atsushi Enomoto  <atsushi@ximian.com>
2474
2475         * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
2476           inference target. For bug #60470. (MS does not support schema
2477           document inference and results in unconsistent dataset structure.)
2478
2479 2004-06-20  Atsushi Enomoto  <atsushi@ximian.com>
2480
2481         * DataTableCollection.cs : reset the table's DataSet to null when
2482           removing a table from this collection.
2483         * DataTable.cs : When Namespace is not specified explicitly, its
2484           Namespace property reflects DataSet's Namespace if exist.
2485           This fixes bug #60469.
2486
2487 2004-06-18  Gert Driesen <drieseng@users.sourceforge.net>
2488
2489         * DBConcurrentcyException.cs: CRLF to LF
2490         * DataViewSetting.cs: CRLF to LF
2491
2492 2004-06-18  Gert Driesen <drieseng@users.sourceforge.net>
2493
2494         * DataViewSetting.cs: renamed fields to match MS.NET
2495
2496 2004-06-18  Gert Driesen <drieseng@users.sourceforge.net>
2497
2498         * DBConcurrencyException.cs: fixed serialization compatibility with
2499         MS.NET
2500
2501 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
2502
2503         * ChangeLog : Fix for misspelled words.
2504
2505 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
2506
2507         * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
2508         
2509 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
2510
2511         * DataTable.cs :
2512           - Table stores default values for columns in special default values row. 
2513           It is allocated once (in NewRow).
2514           - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
2515           - OnRemoveColumn has nothing to perform by now.
2516
2517 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
2518
2519         * DataRow.cs : 
2520           - Changed access of original, current and proposed indexes to internal.
2521           - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
2522           - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
2523           - Use DataContainer.CopyValue and default values row for faster set of default values in row.
2524           - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
2525           Care about Null and DBNull values is now in DataContainer.
2526           - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
2527           - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
2528           - Fix in CopyState : clone column errors.
2529           - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
2530
2531 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
2532
2533         * DataColumnCollection.cs : 
2534           - Fix : Add() now delegates to Add(DataColumn).
2535           - autoIncrement list holds DataColumn objects, and not just column names.
2536
2537 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
2538
2539         * DataColumn.cs : 
2540           - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
2541           - DefaultValue fixes. Default value from now on is also stored in special record in 
2542           DataTable, so we're able to set default value for the column faster (typed).
2543         
2544         
2545 2004-06-15  Atsushi Enomoto  <atsushi@ximian.com>
2546
2547         * DataSet.cs : children of non-root rows were not properly written.
2548           Fixed bug #53959.
2549
2550 2004-06-10 Umadevi S <sumadevi@novell.com>
2551         * DataRelation.cs - Constructor
2552         - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
2553
2554 2004-06-06  Atsushi Enomoto  <atsushi@ximian.com>
2555
2556         * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
2557
2558 2004-06-04  Gert Driesen <drieseng@users.sourceforge.net>
2559
2560         * Constraint.cs: marked methods internal to fix public API
2561         * ConstraintCollection.cs: to fix public API, use 
2562         DataTable.fInitInProgress to check whether initialization 
2563         of DataTable is in progress
2564         * DataColumn.cs: added stubs for missing methods
2565         * DataRowBuilder.cs: marked Table property internal to
2566         fix public API
2567         * DataSet.cs: removed extra empty destructor, marked 
2568         OnMergeFailed internal to fix public API
2569         * DataTable.cs: use fInitInProgress field to hold init
2570         status, to match MS.NET
2571         * DataView.cs: added missing attributes on IsOpen
2572
2573 2004-06-03  Atsushi Enomoto  <atsushi@ximian.com>
2574
2575         * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
2576           in XmlNamespaceManager.
2577
2578 2004-06-03  Atsushi Enomoto  <atsushi@ximian.com>
2579
2580         * DataSet.cs : complex table content child was not properly added
2581           when it is the only one child in the parent table. Fixed bug #53959.
2582
2583 2004-06-02  Gert Driesen <drieseng@users.sourceforge.net>
2584        * DataTableTypeConverter.cs: added
2585        * DataView.cs: added missing attribute on Table property
2586        * DataViewManager.cs: moved attribute to correct property
2587        * UniqueConstraint.cs: removed extra ReadOnly attribute from
2588         IsPrimaryKey property
2589
2590 2004-06-01  Atsushi Enomoto  <atsushi@ximian.com>
2591
2592         * DataRow.cs : ColumnsChanged event is not required in .ctor().
2593
2594 2004-06-01  Atsushi Enomoto  <atsushi@ximian.com>
2595
2596         * XmlDataReader.cs : type change is required before setting value
2597           string to row item.
2598
2599 2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
2600
2601         * DataSet.cs : Loop-break of the last fix was incorrect.
2602
2603 2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
2604
2605         * DataSet.cs : When a row has no parent row but the table has parent
2606           relation(s), that row had been always ignored.
2607
2608 2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
2609
2610         * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
2611           rejected same-named tables in different hierarchy. Thanks to Boris.
2612
2613 2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
2614
2615         * XmlDiffLoader.cs : Added some Skip() that is required not to go to
2616           infinite loop. Thanks to Boris for this fix.
2617
2618 2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
2619
2620         * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
2621           Thanks to Boris for this fix.
2622
2623 2004-05-30  Atsushi Enomoto  <atsushi@ximian.com>
2624
2625         * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
2626           for ReadXml(). Thanks to Boris.
2627
2628 2004-05-27  Boris Kirzner  <borisk@mainsoft.com>
2629         * DataRow.cs : 
2630                 - CheckReadOnlyStatus : use typed (and faster comparing).
2631                 - EndEdit : bug fix - do not dispose record if it holds original version.
2632                 - SetValuesFromDataRecord : Take care about autoincrement columns.
2633                 
2634
2635 2004-05-27  Atsushi Enomoto  <atsushi@ximian.com>
2636
2637         * MergeManager.cs : don't output debug message to Console.
2638
2639 2004-05-27  Atsushi Enomoto  <atsushi@ximian.com>
2640
2641         * XmlDataInferenceLoader.cs : Namespace are not imported to the table
2642           structure. Thanks to Boris Kirzner for the fix.
2643
2644 2004-05-27  Umadevi S <sumadevi@novell.com>
2645          * DataRelationCollection.cs - fixed nunit test errors
2646
2647 2004-05-27  Umadevi S <sumadevi@novell.com>
2648          * DataTableCollection.cs - fixed nunit test errors
2649
2650 2004-05-21  Atsushi Enomoto  <atsushi@ximian.com>
2651
2652         * DataColumnCollection.cs : NullReferenceException was thrown when
2653           the table was not found.
2654         * DataRowCollection.cs :
2655           Find() just returns null for null value under MS.NET 1.1.
2656           RemoveAt() should also avoid to call AcceptChanges() like Remove().
2657         * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
2658           directly under MS.NET (for nunit test).
2659
2660 2004-05-21  Atsushi Enomoto  <atsushi@ximian.com>
2661
2662         * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf() 
2663           caused problem on qualified name to get schema Field name.
2664
2665 2004-05-21  Atsushi Enomoto  <atsushi@ximian.com>
2666
2667         * XmlDataReader.cs : Now data reader is namespace aware in all places.
2668           When table's namespace is different, it entered to infinite loop.
2669
2670 2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
2671         * MergeManager.cs : AdjustSchema now updates by reference new created table,
2672         so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
2673         Code styling.
2674         
2675 2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
2676
2677         * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
2678         * DataColumnCollection.cs : fixed parantethes.
2679         * DataRow.cs : 
2680                 - AcceptChanges : do nothing if row state is unchanged.
2681                 - GetChildRows, GetParentRows  : bug fix (use correct index).
2682         * DataRowCollection.cs : bug fix (compare all row's values).
2683         * DataTable.cs : bug fix (use correct row version).
2684         
2685 2004-05-20  Atsushi Enomoto  <atsushi@ximian.com>
2686
2687         * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
2688           When content type is Mixed, text column is not required (it is
2689           required only when the complex type has no particle). 
2690           "Repeated element" column is also created (considering maxOccurs=0 
2691           and complex content extension).
2692
2693 2004-05-20  Atsushi Enomoto  <atsushi@ximian.com>
2694
2695         * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled 
2696           properly.
2697
2698 2004-05-20  Atsushi Enomoto  <atsushi@ximian.com>
2699
2700         * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
2701           Fixed relation inference to consider attribute XPath.
2702
2703 2004-05-19  Atsushi Enomoto  <atsushi@ximian.com>
2704
2705         * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
2706           always fails.
2707
2708 2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
2709
2710         * DataColumn.cs - removed default member attribute.
2711
2712 2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
2713
2714         * DataColumn.cs,
2715           DataColumnChangeEventArgs.cs,
2716           DataColumnCollection.cs,
2717           DataRow.cs,
2718           DataRowCollection.cs,
2719           DataTable.cs,
2720           Index.cs : Data storage in the row is redesigned. Now data is stored in 
2721           typed containers inside DataColumn. Row holds its versions as indexes inside
2722           each of data container, accessed through the row that holds it.
2723
2724 2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
2725
2726         * UniqueConstraint.cs - added comment.
2727         
2728 2004-05-19  Atsushi Enomoto  <atsushi@ximian.com>
2729
2730         * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
2731           DataSet.
2732
2733 2004-05-17  Atsushi Enomoto  <atsushi@ximian.com>
2734
2735         * DataSet.cs,
2736           XmlDataInferenceLoader.cs,
2737           XmlDataReader.cs,
2738           XmlSchemaDataImporter.cs : XmlDecode every local name to read and
2739           XmlEncode every local name to write. This should fix bug #58268.
2740
2741 2004-05-17  Atsushi Enomoto  <atsushi@ximian.com>
2742
2743         * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
2744           Supported repeated elements. Removed MonoTODOs.
2745         * XmlDataInferenceLoader.cs : Design change to support ignored
2746           namespace and repeated elements.
2747         * XmlSchemaDataImporter.cs : Added mapping support classes.
2748
2749 2004-05-15  Atsushi Enomoto  <atsushi@ximian.com>
2750
2751         * CustomDataClassGenerator.cs :
2752           Added property parent "[foo]Row" and children "Get[foo]Row" support
2753           for custom DataRow classes.
2754           Fixed DataColumn property accessibility (public --> internal).
2755
2756 2004-05-14  Atsushi Enomoto  <atsushi@ximian.com>
2757
2758         * CustomDataClassGenerator.cs :
2759           - Put classes inside custom DataSet class.
2760           - Added automatic DataRelation creation support.
2761           - Added Constraints creation support. That is done separate from
2762             relations, since they might be independently created.
2763           - Added non-MS public DataRelation fields.
2764           - Removed extraneous "DataRelation type generation" code.
2765           - Fixed custom_dataset.Initialize() not to create "c" field that
2766             was created more than once.
2767           - Implemented AddxxxRow() that takes parameters for every column.
2768
2769 2004-05-14  Atsushi Enomoto  <atsushi@ximian.com>
2770
2771         * XmlSchemaDataImporter.cs : When primary key is used more than once,
2772           DataRelation borked because of empty parent column name.
2773
2774 2004-05-14  Atsushi Enomoto  <atsushi@ximian.com>
2775
2776         * XmlSchemaDataImporter.cs : When Creating constraints with related
2777           to DataRelation creation, also set PrimaryKey to the parent table.
2778
2779 2004-05-14  Atsushi Enomoto  <atsushi@ximian.com>
2780
2781         * XmlSchemaDataImporter.cs : 
2782           Design change to add indirect table and relation structures.
2783           Support for "relation" annotation for local element.
2784           Support for repeatable simple element column (maxOccurs > 1).
2785           Fixed handling of Nested property on DataRelation (for globally
2786           annotated relation, Nested is false).
2787
2788 2004-05-13  Atsushi Enomoto  <atsushi@ximian.com>
2789
2790         * DataRow.cs : Added DataElement property to avoid storing every row-
2791           element mapping. It stored even for nodes that should be removed.
2792
2793 2004-05-13  Umadevi S <sumadevi@novell.com>
2794
2795         * RelationshipConverter.cs - Stubbed this class
2796         * DataRelation.cs - added TypeConveterAttribute
2797
2798 2004-05-13  Umadevi S  <sumadevi@novell.com>
2799
2800         * DataColumnCollection.cs - Added ResDescriptionAttribute
2801         * DataRelation.cs - Added TypeConverterAttribute
2802         * DataRelationCollection.cs - Added DefaultPropertyAttribute
2803         * DataRowView.cs - Added GetHashCode method with a TODO tag
2804         * DataSet.cs - Added DesignerAttribute
2805         * DataView.cs - Added DesignerAttribute
2806         * DataViewManager.cs - Added DesignerAttribute
2807         * DataViewSetting.cs - Added TypeConverterAttribute
2808         
2809 2004-05-12  Atsushi Enomoto  <atsushi@ximian.com>
2810
2811         * DataRow.cs : Added XmlDataElement initialization code.
2812
2813 2004-05-11  Atsushi Enomoto  <atsushi@ximian.com>
2814
2815         * XmlDataInferenceLoader.cs :
2816           It now requires XmlDocument as input.  Improved identification of
2817           DataSet element.  Removed extra lines.
2818           Moved boresome design notes to bottom of the source and
2819           added standalone runnable driver (not included on build).
2820         * DataSet.cs :
2821           Update with related to the change above.
2822           WriteXml() should call Flush() after writing. This fixes bug #58327.
2823         * XmlSchemaDataImporter.cs :
2824           Improved indentification of DataSet element.
2825
2826 2004-05-11  Gert Driesen (drieseng@users.sourceforge.net)
2827         * DataTable: marked initStatus enum internal
2828
2829 2004-05-09  Gert Driesen (drieseng@users.sourceforge.net)
2830         * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
2831         methods internal
2832         * DataRowView.cs: removed extra Error property
2833         * DataRow.cs: reduced accessibility of CollectionChanged method 
2834         to private
2835         * DataColumnPropertyDescriptor.cs: made class internal
2836         * DataColumn.cs: removed extra TypeConvertorAttribute
2837         * ConstrainCollection.cs: marked PostEndInit method internal
2838
2839 2004-05-07  Atsushi Enomoto  <atsushi@ximian.com>
2840
2841         * DataSet.cs : 
2842           In WriteXmlSchema(), when complex type contains simple type content
2843           attributes must not added to XmlSchemaComplexType directly. It
2844           causes schema compilation error.
2845           DataRelation should not be output when related columns are hidden.
2846
2847 2004-05-07  Atsushi Enomoto  <atsushi@ximian.com>
2848
2849         * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
2850           also expected to do ReadXml(), but I will remove that feature and
2851           support column reordering).
2852         * XmlSchemaDataImporter.cs : Always initialize dataset name.
2853           Always set Nested and primary key for parent table.
2854         * XmlDataReader.cs : Now it is used.
2855           Top level element might not match to dataset name nor any table 
2856           name, but still possible to read content tables.
2857           Handle empty element correctly in some places.
2858           Handle Fragment mode (read up XmlReader to the end).
2859         * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
2860           XmlDataInferenceLoader and XmlDataReader.
2861
2862 2004-05-06  Atsushi Enomoto  <atsushi@ximian.com>
2863
2864         * DataSet.cs :
2865           Eliminated CRLF injection.
2866           More clear message in Clear().
2867           Updates reflecting XmlSchemaDataImporter change.
2868           Added duplicate check for XmlSerializerNamespaces in BuildSchema().
2869           Don't use xmlns attribute for UnhandledAttributes (its not mandatory
2870           but that depends on different behavior from ms.net).
2871           Set locale also for DataTable.
2872           Add xs:element only when target namespace matches to the
2873           element's namespace. Otherwise, add xs:import for external namespace.
2874           Put xs:sequence for dataset element's particle _only when_ actual
2875           contents exist.
2876
2877 2004-05-06  Atsushi Enomoto  <atsushi@ximian.com>
2878
2879         * XmlDataReader.cs : Added. This class will work better when our
2880           schema inference and schema read engine gets improved. (It contains
2881           standalone testable Driver class.)
2882
2883 2004-05-06  Atsushi Enomoto  <atsushi@ximian.com>
2884
2885         * ForeignKeyConstraint.cs : Check step change. Existence then column
2886           validity. just for tests.
2887         * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
2888           fields.
2889
2890 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
2891
2892         * DataSet.cs : Ignore empty content only when output type is diffgram.
2893
2894 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
2895
2896         * CustomDataClassGenerator.cs : Modified that DataSet contains each
2897           DataTable field so that each table property can access them directly.
2898           (plus, modified standalone code driver code: shouldn't affect)
2899
2900 2004-05-05  Boris Kirzner  <borisk@mainsoft.com>
2901
2902         * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
2903           
2904 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
2905
2906         * XmlSchemaDataImporter.cs : 
2907           SimpleContent column support.
2908           Annotated relation support.
2909           Top-level element is counted only when its type is complex.
2910           xs:anyType is no longer treated as complex type.
2911           dataset existence is mandatory now. 
2912           Improved DataType and DefaultValue support.
2913           Attribute namespace is properly handled now.
2914           Prohibited attribute is now treated as hidden column.
2915           Reject list or union simple type.
2916
2917           Still incomplete 1) to read relationship in some cases, 2) to 
2918           determine whether an element is dataset or table, 3) thus to
2919           exclude extraneous column, 4) to remove extraneous *_Id column.
2920
2921 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
2922
2923         * DataTable.cs :
2924           We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
2925           serialization .ctor() (thus schema read/inference should be easier).
2926           DataRowSorter should consider Table's Locale.
2927
2928 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
2929
2930         * DataColumnCollection.cs : We already had AutoIncrementValue(), so
2931           use it instead of duplicating logic.
2932
2933 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
2934
2935         * ConstraintCollection.cs :
2936           Use Table.CaseSensitive and Table.Locale to compare strings.
2937           Duplicate constraint name exception does not occur under .NET 1.1.
2938
2939 2004-05-04  Lluis Sanchez Gual  <lluis@ximian.com>
2940
2941         * XmlSchemaDataImporter.cs: Added little type check.
2942
2943 2004-05-04  Lluis Sanchez Gual  <lluis@ximian.com>
2944
2945         * DataSet.cs: Implemented support for runtime serialization. Fixed support
2946           for xml serialization.
2947         * XmlDiffLoader.cs: Skip diffgram element when it is empty.
2948
2949 2004-04-30  Umadevi S  <sumadevi@novell.com>
2950         * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
2951         * DataTableCollection.cs  : Tested and removed TODO
2952         * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs   
2953
2954 2004-04-29  Atsushi Enomoto  <atsushi@ximian.com>
2955
2956         * DataRow.cs : My previous patch unintentionally reverted Boris patch.
2957
2958 2004-04-29  Boris Kirzner <borisk@mainsoft.com>
2959
2960         * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if 
2961         constraint is defined on single column.
2962
2963 2004-04-29  Atsushi Enomoto  <atsushi@ximian.com>
2964
2965         * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
2966           not ArgumentException (maybe changed after 1.1).
2967
2968 2004-04-29  Atsushi Enomoto  <atsushi@ximian.com>
2969
2970         * DataRow.cs : When Column was added and it was AutoIncrement column,
2971           it extended the item object array incorrectly.
2972           (Plus tiny comment and incorrect indentation fix.)
2973
2974 2004-04-29  Boris Kirzner <borisk@mainsoft.com>
2975
2976         * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
2977
2978 2004-04-29  Boris Kirzner <borisk@mainsoft.com>
2979
2980         * DataRow.cs : Bug fix in CopyValuesToRow().
2981         
2982 2004-04-29  Boris Kirzner <borisk@mainsoft.com>
2983
2984         * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
2985           each of the columns should not be unique, but only all the constraint's columns together.
2986         
2987 2004-04-28  Boris Kirzner <borisk@mainsoft.com>
2988         * DataRow.cs :
2989           - Perfomance fixes: 
2990                 - Added using of list of autoIncrement columns
2991                 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
2992           - Fix in CheckNullConstraints
2993           - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
2994           - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
2995           - Added onColumnRemoved() method to threat column removal accurately.
2996         
2997         * DataRowCollection.cs :
2998           - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
2999           - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
3000         
3001         * DataTable.cs :
3002           - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
3003         
3004         * DataColumnCollection.cs :
3005           - Perfomance fixes :
3006                 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
3007                 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
3008                 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
3009         
3010         * DataColumn.cs :
3011           - Uses autoincrement list of a table
3012
3013 2004-04-27  Atsushi Enomoto  <atsushi@ximian.com>
3014
3015         * XmlDataLoader.cs : Even when it should ignore schema, it was 
3016           infering schema.
3017         * XmlSchemaDataImporter.cs : DataRelation creation support.
3018           Improved "DataSet" element handing. When attributes are on the
3019           element, it is not a "DataSet" element.
3020           Fixed parent key column name.
3021           Unique name creation is not required. Just raise an error.
3022           Fill facet also for attribute types.
3023
3024 2004-04-27  Atsushi Enomoto  <atsushi@ximian.com>
3025
3026         * DataRow.cs : Null check for CheckReadOnlyStatus() and
3027           CheckNullConstraints(), with some coding guideline fixes.
3028           Type check should be done by Type instance comparison.
3029
3030 2004-04-27  Atsushi Enomoto  <atsushi@ximian.com>
3031
3032         * DataColumnCollection.cs : When add a column to the collection, fill
3033           auto-increment column.
3034
3035 2004-04-26  Boris Kirzner <borisk@mainsoft.com>
3036
3037         * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
3038         
3039 2004-04-26  Atsushi Enomoto  <atsushi@ximian.com>
3040
3041         * CustomDataClassGenerator.cs : Added.
3042         * TypedDataSetGenerator.cs : Implemented Generate().
3043           Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
3044         * XmlSchemaDataImporter.cs : Table Locale should be supplied.
3045
3046 2004-04-25  Boris Kirzner <borisk@mainsoft.com>
3047
3048         * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
3049         
3050 2004-04-25  Boris Kirzner <borisk@mainsoft.com>
3051
3052         * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
3053
3054 2004-04-23 Umadevi S (sumadevi@novell.com)
3055         *  DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
3056            - Added error handling to the above methods
3057
3058 2004-04-22  Atsushi Enomoto  <atsushi@ximian.com>
3059
3060         * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
3061           the support is incomplete yet).
3062         * XmlDataLoader.cs : 
3063           Reverted ReadModeSchema() argument change. XmlReadMode would be 
3064           useful to handle IgnoreSchema.
3065           Don't overwrite DataSetName when mode is not such kind.
3066           Set Prefix and Namespace as well as DataSetName.
3067           AllowDBNull looks set false by default for element column.
3068           Set unique constraint as primary key when infering the table schema.
3069
3070 2004-04-21  Atsushi Enomoto  <atsushi@ximian.com>
3071
3072         * DataSet.cs : 
3073           Never set null string for Prefix and Namespace.
3074           In InferXmlSchema() when null XmlReader is passed, just do nothing.
3075           In WriteXmlSchema(string), earlier try block.
3076           In BuildSchema(), try to add serialization namespaces for each
3077           namespaces in DataSet/DataTable/DataColumn.
3078           Removed namespace argument from WriteColumnAsElement() and don't
3079           overwrite when namespace is "". This fixes bug #57330.
3080         * DataColumn.cs : For Namespace and Prefix, never set null.
3081
3082 2004-04-21  Boris Kirzner <borisk@mainsoft.com>
3083
3084         * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
3085           before creating and adding foreign key constraint and relation. 
3086
3087 2004-04-21  Boris Kirzner <borisk@mainsoft.com>
3088
3089         * MergeManager.cs : In AdjustSchema() source table clone should be added
3090           and not the table itself. 
3091
3092 2004-04-21  Boris Kirzner <borisk@mainsoft.com>
3093
3094         * DataSet.cs : 
3095           - CaseSensitive : Additional fix (removed unnesessary assignment).
3096           - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
3097
3098 2004-04-21  Boris Kirzner <borisk@mainsoft.com>
3099
3100         * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
3101           
3102 2004-04-20  Boris Kirzner <borisk@mainsoft.com>
3103
3104         * DataTable.cs : 
3105           - EndLoadData() : perfomance fix in case of null constraint violation
3106             during data load (also in DataRow.cs).
3107           - CaseSensitive : If DataTable belongs to DataSet it should always use
3108             DataSet.CaseSensitive untill explicitly changed.
3109           - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
3110           
3111         * DataRow.cs :
3112           - Pefromance fix in case of null constraint violation
3113             during data load (also in DataTable.cs).
3114           - CollectionChanged() : use correct column number after new DataColumn was added
3115             (differs in case some DataColumn was previosly removed).
3116           - EndEdit() - throw away  proposed values only after CheckChildRows() complete.
3117
3118 2004-04-20  Boris Kirzner <borisk@mainsoft.com>
3119
3120         * DataColumnCollection.cs : Since unique constraint is added now
3121           in DataColumn.SetTable() the additional creation of constraint in 
3122           DataColumnCollection.Add() is redundant and causes exception - fixed.
3123           
3124 2004-04-19  Atsushi Enomoto  <atsushi@ximian.com>
3125
3126         * XmlDataLoader.cs : Added "never add data rows" mode.
3127           Removed unused code. However, it is temporary fixes to unify
3128           ReadXml() and InferXmlSchema().
3129         * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
3130
3131           I'll create another XmlDataLoader since there are many problems
3132           such that 1) it is too waste to read the entire xml into an
3133           XmlDocument, 2) it does not handle attributes correctly, and 3) it
3134           must handle "ignored namespaces".
3135
3136 2004-04-19  Atsushi Enomoto  <atsushi@ximian.com>
3137
3138         * Added XmlSchemaDataImporter.cs (new schema reader).
3139         * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
3140           for ReadXmlSchema().
3141           Let schema reading work to ReadXmlSchema().
3142           Don't return ReadSchema when argument read mode was DiffGram.
3143
3144 2004-04-15 Umadevi S (sumadevi@novell.com)
3145         *  Updated Clone/Copy methods in DataSet along with Testcase
3146         *  ForeignKeyConstraint.cs - special ctor implemented 
3147             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).
3148         * Changes in  ConstraintCollection.cs for the above
3149         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.
3150         
3151
3152 2004-04-15  Atsushi Enomoto  <atsushi@ximian.com>
3153
3154         * XmlSchemaMapper.cs : set parent key and foreign key info to 
3155           DataRelation when reading refkey constraints.
3156           Supply constraint name for fkey.
3157
3158 2004-04-15  Atsushi Enomoto  <atsushi@ximian.com>
3159
3160         * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
3161           mode is Auto, just ignore the schema if there is already schema info.
3162         * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
3163
3164 2004-04-14  Atsushi Enomoto  <atsushi@ximian.com>
3165
3166         * DataSet.cs :
3167           - In MS output, XML declaration looks to have standalone decl (yes).
3168           - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
3169           - ReadXml(reader, mode)
3170             1) return originally specified mode, instead of (always) Auto. 
3171             2) Check empty reader.
3172             3) Check diffgram schema and content separately.
3173             4) When diffgram exists, remaining (the same-level) contents 
3174                won't be consumed. 
3175             5) Similar fact should be applied, but somewhat different. 
3176                InferSchema and IgnoreSchema just skips, Fragment reads both
3177                schema and content, others just reads schema.
3178           - Removed unused code.
3179         * XmlDataLoader.cs :
3180           - Read() should skip in some ReadMode.
3181           - Don't compare schema element name as case-insensitive (well,
3182             should schemas be checked here?)
3183           - Avoided BuildDocument() not to create confusing DataSet
3184             document element.
3185           - Don't add any tables when reader has single element.
3186         * XmlDiffLoader.cs :
3187           When target table was not found, MS.NET doesn't raise an error.
3188         * XmlSchemaMapper.cs :
3189           When XmlSchema.Read() left xml reader at </xs:schema>, read once.
3190
3191 2004-04-13  Atsushi Enomoto  <atsushi@ximian.com>
3192
3193         * DataSet.cs :
3194           - InferXmlSchema(): Throw explicit NotImplementedException now.
3195           - Don't put XML declaration everywhere. Write just for filename arg.
3196           - xmlns="" should not be written. Maybe WebService problem is 
3197             because default namespace is overwritten. This patch will keep
3198             the WS problem away and actually fixes some unit tests (i.e. use
3199             explicit String.Empty for null namespace in WriteStartElement()).
3200           - MoveToContent() should always be called, not only when 
3201             LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
3202           - Even XmlReadMode is DiffGram, reader might not be "diffgram"
3203             element. As to MSDN, diffgram does not contain schema.
3204
3205 2004-04-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3206
3207         * DataTable.cs: made _initStatus private so that System.Data is CLS
3208         compliant.
3209
3210 2004-04-13 Umadevi S   <sumadevi@novell.com>
3211         *  UniqueConstraint.cs:
3212         *  ConstraintCollection.cs:
3213         *  DataTable.cs:
3214         - Implemented a Constructor for UniqueConstraint.cs
3215         - Used  EndInit on DataTable  to call a delegate which adds the
3216           constraints passed to the most recent call of AddRange().Used
3217           AddRange() on ConstraintCollection to check whether
3218           DataTable.BeginInit has occurred.  If yes, save the argument
3219           constraint collection passed, then return.  If no, Check whether the
3220           constraints are of type UniqueConstraint and initialized with the
3221           special constructor  If yes Initialized the table property of this
3222           UniqueConstraint object with table assosciated with the current
3223           instance of ConstraintCollection class.
3224
3225 2004-04-07  Marek Safar  <marek.safar@seznam.cz>
3226
3227         * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
3228
3229 2004-04-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3230
3231         * Constraint.cs:
3232         * DataColumnCollection.cs:
3233         * DataRelationCollection.cs:
3234         * DataRowCollection.cs:
3235         * DataTableCollection.cs:
3236         * InternalDataCollectionBase.cs:
3237         * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
3238         Fixes bug #56557.
3239
3240 2004-04-05  Jackson Harper  <jackson@ximian.com>
3241
3242         * DataTable.cs: Add rows to the row list if there is no filter.
3243         
3244 2004-03-31  Juraj Skripsky <juraj@hotfeet.ch>
3245
3246         * DataColumn.cs : Setting Caption to null sets it to the empty string
3247         (ms.net behaviour, testcase is in DataColumnTest).
3248         
3249         * DataRow.cs : Evaluate DataColumn.Expression when such a column's
3250         value is requested.
3251
3252 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
3253
3254         * DataColumn.cs: In Expression setter, set the expression member even if 
3255           it is an empty string.
3256         * DataSet.cs: Support serialization of byte[] columns.
3257         * XmlDataLoader.cs: Support deserialization  of Guid columns. 
3258           Set MappingType.Attribute to columns infered from attributes.
3259
3260 2004-03-29  Juraj Skripsky <juraj@hotfeet.ch>
3261
3262         * ExpressionElements.cs : remove
3263         * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
3264         Integration of new Mono.Data.SqlExpressions classes used in
3265         DataTable.{Select, Compute}.
3266         Fixes bug #55503 and lots of failures in DataTableTest.cs.
3267
3268 2004-03-28  Juraj Skripsky <juraj@hotfeet.ch>
3269
3270         * Index.cs: Simple fix in ComparePartialRowNonUnique.
3271         This fixes bugs #56129 and #56014.
3272
3273 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
3274
3275         * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
3276           stream after writing the dataset. This fixes bug #52581.
3277           Also added several writer.Close into finally blocks, so writers are properly
3278           closed in case of an exception.
3279
3280 2004-03-12  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3281
3282         * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
3283         * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
3284         * ColumnTypeConverter.cs: Added stub
3285         * DefaultValueTypeConverter: Added stub
3286         * ConstraintConverter.cs: Added stub
3287
3288 2004-03-04 Eran Domb <erand@mainsoft.com>
3289
3290         * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
3291         in MS.NET documentation (missing DataSet element etc).
3292
3293 2004-03-04 Eran Domb <erand@mainsoft.com>
3294
3295         * Node.cs : Added.
3296         * Index.cs : Rollback last changes.
3297         
3298 2004-03-03  Atsushi Enomoto <atsushi@ximian.com>
3299
3300         * Index.cs : justa build fix.
3301
3302 2004-03-03 Eran Domb <erand@mainsoft.com>
3303         
3304         * Index.cs : Added.
3305         * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
3306         DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
3307         This changes made for performance improvement.
3308
3309 2004-02-08 Eran Domb <erand@mainsoft.com>
3310
3311         * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
3312
3313 2004-02-08 Eran Domb <erand@mainsoft.com>
3314
3315         * DataSet.cs: Fix some bugs in ReadXml().
3316
3317 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
3318
3319         * DataSet.cs: Added missing method that broke the build.
3320
3321 2004-02-04 Eran Domb <erand@mainsoft.com>
3322
3323         * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
3324         better performance.
3325         * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
3326         when all column are attributes (elements count is 0), we still want to add the relations. No relations
3327         can be on simple contents.
3328         (AddUniqueConstraints) Check that the column of the constraint are not hidden.
3329         (AddForeignKeys) Check that the relation has constraints attach to it.
3330         * XmlConstants.cs : Added constant.
3331
3332 2004-02-04 Eran Domb <erand@mainsoft.com>
3333         
3334         * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
3335         DoWriteXmlSchema calls BuildSchema ().
3336
3337 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
3338
3339         * DataRow.cs: Added SetOriginalValue(), which is used to set the original
3340           value of a column.
3341         * DataRowCollection.cs: In InsertAt(), perform the correct checks and
3342           attach the row.
3343         * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
3344           also be added to the dataset.
3345           In WriteTable(), do not write unchanged rows when writing the original
3346           version of the table.
3347           Added WriteIndividualTableContent(), for writing the contents of a single
3348           table.
3349           Changed BuildSchema and related methods, so it can generate a schema for
3350           any set of tables, not just the tables of the dataset (needed for 
3351           single datatable serialization).
3352         * DataTable.cs: Implemented serialization constructor and GetObjectData method.
3353           Also implemented some ReadXmlSchema methods.
3354         * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
3355           instead of loading the full dataset in an XmlDocument. It is faster and
3356           saves memory. Also fixed several problems when generating the changes.
3357         * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
3358           table serialization).
3359
3360 2004-02-02 Eran Domb <erand@mainsoft.com>
3361
3362         * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
3363         Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
3364         * DataTable.cs (NewRow): Create only one DataRowBuilder.
3365         Initiate new row with row id -1.
3366         * DataRow.cs : Add RowId property.
3367         * DataRowBuilder.cs : Add _rowId member.
3368         * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
3369
3370 2004-01-26 Eran Domb <erand@mainsoft.com>
3371
3372         * XmlConstants.cs : Added some constants.
3373         * DataColumn.cs : Added a method to retrive AutoIncrement value.
3374         * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
3375         parent table column.
3376         * XmlDiffLoader.cs : Convert the value comming from the xml.
3377         * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
3378          (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
3379          (ReadXmlSchemaElement) : Set the locale of the dataset.
3380          (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
3381          (GetColumnType) : New method to get the column type from the attribute value.
3382          (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
3383          and add the constraint to the table.
3384          (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
3385          the table.
3386         * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
3387          Writing more information to the schema for interoperability with ms.net.
3388          Improve diffgarm writing mode.
3389          
3390
3391 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
3392
3393         * TypedDataSetGenerator.cs : Implemented GenerateIdName().
3394
3395 2004-01-21 Eran Domb <erand@mainsoft.com>
3396
3397         * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
3398         Do not set the child column to be AutoIncrement.
3399         Create the new column for the relation as MappingType.Hidden so they will not be serialized
3400         when writing the dataset to xml.
3401
3402 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
3403
3404         * Added missing TypedDataSetGenerator.cs.
3405
3406 2004-01-08 Eran Domb <erand@mainsoft.com>
3407
3408         * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
3409         * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram, 
3410         InferSchema, ReadSchema and IgnoreSchema.
3411         * XmlDataLoader.cs : All modes use the same logic.
3412         * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
3413
3414 2004-01-06 Eran Domb <erand@mainsoft.com>
3415
3416         * DataRelationCollection.cs : Use IndexOf in indexer.
3417         * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
3418         * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
3419         * XmlDiffLoader.cs : Reading nested tables.
3420         * XmlSchemaMapper.cs : Reading the relation.
3421         * XmlConstants.cs : Adding some constants.
3422
3423 2004-01-05  Jackson Harper <jackson@ximian.com>
3424
3425         * DataView.cs: Set readonly property of property descriptor. This
3426         fixes bug #52598.
3427         
3428 2004-01-01  Sanjay Gupta <gsanjay@novell.com>
3429
3430         * DataRelationCollection.cs : Fixed incorrect generation of default 
3431           Relation name.
3432         * DataSet.cs : Added missing functionality in WriteXml().
3433         * XmlConstants.cs : Added new constants.
3434  
3435 2003-12-27  Atsushi Enomoto <atsushi@ximian.com>
3436
3437         * DataSet.cs : Fixed incorrect WriteXml() signature.
3438
3439 2003-12-18  Jackson Harper <jackson@ximian.com>
3440
3441         * DataView.cs: Implement AddNew, Delete, and OnListChanged.
3442         
3443 2003-12-17  Atsushi Enomoto <atsushi@ximian.com>
3444
3445         * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
3446           they take shape of xml. This fixed bug #52240
3447
3448 2003-12-16  Tim Coleman <tim@timcoleman.com>
3449         * KeyRestrictionBehavior.cs:
3450                 New stubs added for .NET 1.2
3451         * DataTable.cs:
3452                 Changes for 1.2
3453
3454 2003-12-08 Eran Domb <erand@mainsoft.com>
3455         * DataColumn.cs (Expression) : Validate the expression.
3456         
3457         * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
3458         (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
3459         
3460         * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
3461         (RejectChanges) : Detach row when state was Added.
3462         (CollectionChanged) : Fix a bug.
3463         
3464         * ExpressionElement (ValidateExpression) : Fix a bug.
3465         
3466         * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
3467         a parent row in the parent table.
3468         (_validateColumns) : Fix bugs.
3469         
3470         * MergeManager.cs (AdjustSchema) : Fix a bug.
3471         
3472         * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
3473         between the tables.
3474
3475 2003-11-30 Eran Domb <erand@mainsoft.com>
3476         * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
3477         (Add) : Find if the new column name is the same as the one found in IndexOf.
3478         (IndexOf) : New method.
3479         (Contains) : Use new IndexOf.
3480         (IndexOf) : Use new IndexOf.
3481         
3482         * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
3483         (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
3484         
3485         * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
3486         (Delete) : Detach row if the RowState was Added.
3487         (GetChildRows) : Get the array form the ChildTable.
3488         (GetParentRows) : Get the array from the ParenTable.
3489         
3490         * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
3491         
3492         * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
3493         
3494         * DataTable.cs (PrimaryKey) : Fix bugs.
3495         (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
3496         
3497         * DataTableCollection.cs (Add) : Fix a bug.
3498         
3499         * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
3500         (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
3501         Some code style changes (tab instead of whit spaces, alignment, etc...).
3502         
3503         * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
3504         
3505         * MergeManager.cs (AdjustSchema) : Fix a bug.
3506         
3507         
3508
3509 2003-11-26  Miguel de Icaza  <miguel@ximian.com>
3510
3511         * DataSet.cs: Add a few more missing methods, code style updated
3512         to Mono style.
3513
3514 2003-11-26  Tim Coleman <tim@timcoleman.com>
3515         
3516         * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
3517         * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
3518         * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
3519         * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
3520         * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
3521         * ResultSetSensitivity.cs StatementCompletedEventArgs.cs 
3522         * StatementCompletedEventHandler.cs UpdateOptions.cs:
3523                 New classes added for NET_2_0
3524         * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
3525         * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
3526                 Modifications to add new NET_2_0 functions
3527
3528 2003-11-25  Tim Coleman <tim@timcoleman.com>
3529         * IDataSources.cs:
3530                 New 1.2 class added
3531
3532 2003-11-21  Pedro Martinez Julia  <yoros@wanadoo.es>
3533
3534         * DataRow.cs: Detached row can be accesible (new rows from data
3535         table are detached). Closes but #51263.
3536
3537 2003-11-19  Eran Domb  <erand@mainsoft.com>
3538         * DataRow.cs : Throw exceptions if Row is Detached. 
3539         (EndEdit) : Check that we are not in middle of ChangeEvent.
3540         (AcceptChanges) : Detach the row.
3541         
3542         * DataRelation.cs : throw correct exception.
3543         *UniqueConstraint.cs : throw correct exception.
3544         
3545
3546 2003-11-09  Pedro Martinez Julia  <yoros@wanadoo.es>
3547
3548         * DataRow.cs: Use RemoveInternal instead of Remove because the last
3549         one uses Delete and AcceptChanges.
3550
3551         * DataRowCollection.cs: When removing, Delete and AcceptChanges
3552         method from the row are called. Added an internal method that will
3553         be used by DataRow to "physically" remove the row from the list.
3554
3555 2003-11-09  Pedro Martinez Julia  <yoros@wanadoo.es>
3556
3557         * DataRowCollection.cs: To follow the specification: Remove and
3558         RemoveAt should remove the row. But needed to call DeletingDataRow
3559         to prepare the deleting.
3560
3561         * DataRow.cs: Don't call DeletingDataRow when it is called by the
3562         method Table.Rows.Remove.
3563
3564 2003-11-09  Pedro Martinez Julia  <yoros@wanadoo.es>
3565
3566         * DataRowCollection.cs: Make the row be deleted by itself. If not,
3567         it fails because we need to call OnRowDeleting and OnRowDeleted. It
3568         is full implemented inside DataRow.
3569
3570 2003-11-05  Eran Domb  <erand@mainsoft.com>
3571         * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
3572
3573 2003-11-04  Eran Domb  <erand@mainsoft.com>
3574         * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
3575         on all Relations.
3576         (GetChildRows) : Adding some checks.
3577         (GetParentRows) : Adding some checks. Fix a bug in implementation.
3578         (SetParentRow) : Added implementation.
3579         
3580         * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
3581         * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
3582         * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
3583         * MergeManager.cs : Check that the target table is not null.
3584
3585 2003-10-27  Eran Domb  <erand@mainsoft.com>
3586         * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value 
3587         can be converted to the column type.
3588         
3589         * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
3590         
3591         * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
3592         (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
3593         
3594         * DataRowCollection.cs (Add) : Fixing a bug. 
3595         (Clear) : Before clearing the array check that there is no violation of FK constraint.
3596         
3597         * DataSet.cs (Prefix) : If value is null chage it to empty string.
3598         (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
3599         
3600         * ExpressionElement : Adding support for IN expresion.
3601         
3602         * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
3603         (Select) : Adding support for DataViewwRowState.
3604         
3605         * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
3606         
3607         * MergeManager.cs (MergeRow) : Fix bugs.
3608         
3609 2003-10-27  Eran Domb  <erand@mainsoft.com>
3610         * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
3611         check null values when ending loading data.
3612         
3613         * DataSet.cs (RejectChanges) : Imlementation.
3614         (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null, 
3615         change it to empty string.
3616         
3617         * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
3618         
3619 2003-10-22  Eran Domb  <erand@mainsoft.com>
3620         * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
3621         
3622         * ConstraintCollection.cs (RamoveAt): Change implemntation.
3623         
3624         * DataTableCollection (CanRemove): Removing cast to Constraint.
3625
3626 2003-10-22  Eran Domb  <erand@mainsoft.com>
3627         * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
3628         (Clear): The collection was cleared without removing the relation from the parent and child tables.
3629         
3630         * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
3631         (HasChanges, Reset): Imlementation.
3632         
3633         * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
3634         This is because the we do not no when to turn off the flag.
3635         (Locale): Changing implementation to behave like ADO.NET.
3636         (AcceptChanges): Fix bug.
3637         (Clear): Check that this table is not referenced from a foreign key constraint.
3638         (Copy): Do not try to access a deleted row.
3639         (CopyProperties): Copy the PrimaryKey.
3640         (GetChanges, ImportRow): Implementation.
3641         (LoadDataRow): Adding implementation if the table has PrimaryKey.
3642         (ToString): Changing implementation to behave like ADO.NET.
3643         
3644         * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
3645         
3646         * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
3647         (HasErrors): Implementation.
3648         (Delete): Added checking for child rows of the deleted row.
3649         (EndEdit): Added checking for child row and firing events.
3650         (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
3651         (GetColumnsInError): Added a check for null values in column error.
3652         (HasVersion): Added special treatment for special RowState.
3653         (CollectionChanged): More checks to avoid NullReferenceException.
3654         
3655         * DataRowCollection.cs (Remove): Fix a bug.
3656
3657
3658 2003-10-01  Duncan Mak  <duncan@ximian.com>
3659
3660         More patches from Eran Domb <erand@mainsoft.com>.
3661
3662         * MergeManager.cs: New file.
3663
3664         * DataRelationCollection.cs (AddCore): Check that a
3665         UniqueConstraint is already exists. It loops over the Relations
3666         instead of the Constraints.
3667         (Add, AddCore): The relation was added twice.
3668
3669         * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.      
3670
3671 2003-09-30  Duncan Mak  <duncan@ximian.com>        
3672
3673         Patches from Eran Domb <erand@mainsoft.com>.
3674
3675         * DataRelation.cs (constructor): When the name of the relation is
3676         null, it should return an empty, not "Relation".
3677         
3678         * DataRow.cs (AcceptChanges): Added special case for
3679         RowState.Detached.
3680         (CancelEdit): Set editing flag to false.
3681         (IsNull): Check that the value is DBNull.
3682
3683         * DataRowCollection.cs (Add): There was no check that the table of
3684         the collection is owned by a DataSet.
3685
3686         * DataSet.cs (OnMergeFailed): Added.    
3687
3688         * UniqueConstraint.cs (AssertConstraint): There was no check that
3689         values in the row are not null, where it is a primary key
3690         column. Also check that the row has a proposed version, if not,
3691         get the current version when we compare the rows.
3692
3693 2003-09-25  Duncan Mak  <duncan@ximian.com>
3694
3695         Patches from Eran Domb <erand@mainsoft.com>.
3696
3697         * DataColumn.cs (Unique): Implemented.
3698         
3699         * DataTable.cs:
3700         * ConstraintCollection.cs:
3701         * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
3702         an Exception thrown. Details:
3703         http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
3704         
3705         * DataRowCollection.cs (Add): There is no checking that there is
3706         no violation of the unique constrains.
3707
3708         * UniqueConstraint.cs (AssertConstraint): There is no checking on
3709         all columns in the constraint.
3710
3711         * DataTableCollection (Add): Correctly throw an Exception, more
3712         details here:
3713         http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
3714         (Remove, RemoveAt): Implemented.
3715
3716 2003-07-31  Duncan Mak  <duncan@ximian.com>
3717
3718         * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
3719
3720 2003-07-25  Ravi Pratap  <ravi@ximian.com>
3721
3722         * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
3723         method on a delegate is disallowed - fix this.
3724
3725 2003-07-22  Lluis Sanchez Gual  <lluis@ximian.com>
3726
3727         * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
3728           xml serialization. Modified method of writing schema. Now it creates
3729           a XmlSchema object and serializes it using XmlSerializer.
3730         * XmlConstants.cs: Added constants for data type names.
3731         * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
3732           type specified in the column.
3733
3734 2003-04-20  Alan Tam <Tam@SiuLung.com>
3735
3736         * DataRelationCollection.cs: Fix a bug that prevent relations
3737         from being added via DataSet.
3738
3739 2003-04-12  Ville Palo <vi64pa@kolumbus.fi>
3740
3741         * UniqueConstraint.cs: one tiny fix.
3742         
3743 2003-04-05  Ville Palo <vi64pa@kolumbus.fi>
3744
3745         * DataTable.cs: Remove UniqueConstraints when adding new ones
3746         
3747 2003-04-04  Ville Palo <vi64pa@kolumbus.fi>
3748
3749         * DataColumnCollection.cs: Little 'case sensitive' fix
3750         
3751 2003-04-04  Ville Palo <vi64pa@kolumbus.fi>
3752
3753         * DataRow.cs: AutoIncrement handling to Constructor
3754         * DataRowCollection.cs: This doesnt need anymore AutoIncrements
3755         
3756 2003-03-27  Ville Palo <vi64pa@kolumbus.fi>
3757
3758         * DataTable.cs: Some fixes to PrimaryKey etc...
3759         * UniqueConstraint.cs: Little clean up
3760         
3761 2003-03-27  Ville Palo <vi64pa@kolumbus.fi>
3762
3763         * DataTable.cs: Tiny fix to ToString () -method
3764         
3765 2003-03-27  Ville Palo <vi64pa@kolumbus.fi>
3766
3767         * ConstraintCollection.cs: Little fix.
3768         * DataColumn.cs: Added new internal method SetUnique()
3769         * UniqueConstraint.cs: some little fixes
3770         
3771 2003-03-26  Ville Palo <vi64pa@kolumbus.fi>
3772
3773         * DataRowCollection.cs: Bugfixes, implementation,...
3774         
3775 2003-03-26  Ville Palo <vi64pa@kolumbus.fi>
3776
3777         * DataColumn.cs: If DataType if set to something else than short, int
3778         or long and AutoIncrement is true, AutoIncrement is must set to false.
3779         
3780 2003-03-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3781
3782         * DataRow.cs:
3783         (BeginEdit): fixed array bound problem when a column has been added.
3784         (EndEdit): just assign proposed to current as proposed is set to null.
3785         This also fixes another array boudn problem.
3786
3787 2003-03-21  Alan Tam <Tam@SiuLung.com>
3788
3789         * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
3790         EndEdit and AcceptChanges to act correctly according to DataRowState
3791         and DataRowVersion.
3792         * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
3793         attached and detached from the collection.
3794
3795 2003-03-20  Alan Tam <Tam@SiuLung.com>
3796
3797         * DataColumn.cs: Store empty string for Expression when null is passed in.
3798         Classes generated by XSD.exe passes null by default.
3799
3800 2003-03-16  Ville Palo <vi64pa@kolumbus.fi>
3801
3802         * DataColumnCollection.cs: Tiny clean up
3803
3804 2003-03-16  Ville Palo <vi64pa@kolumbus.fi>
3805
3806         * DataColumn.cs: little fixes.
3807         * DataColumnCollection.cs: Lots of little fixes and improvments.
3808         
3809 2003-03-12  Alan Tam <Tam@SiuLung.com>
3810
3811         * DataSet.cs: Fixed a bug that the file written does not close correctly.
3812
3813 2003-03-08  Alan Tam <Tam@SiuLung.com>
3814
3815         * DataRelationCollection.cs: Removed the mis-overridden methods
3816         * DataRow.cs: Fixed an attribute
3817         * DataSet.cs: Fixed the modifiers
3818
3819 2003-03-06  Aleksey Demakov <avd@openlinksw.com>
3820
3821         * DataTableCollection.cs: The Contains (string name),
3822         IndexOf (string name) methods, and item[string name] indexer
3823         now behave more like .NET with respect to case-sensitivity.
3824         That is if there is an exactly matching item then this one is used.
3825         If there is only one item differing in case then it used.
3826         If there are more than one item differing in case then
3827         Contains returns false, IndexOf returns -1, and item[]
3828         throws an ArgumentException.
3829
3830 2003-02-28  Ville Palo <vi64pa@kolumbus.fi>
3831
3832         * ExpressionElement.cs: More implementation. 
3833         
3834 2003-02-28  Alan Tam <Tam@SiuLung.com>
3835         * DataSet.cs: Changed WriteTable so that it now calls the newly written
3836         WriteObjectXml to direct the call to the respective XmlConvert method.
3837         This fixes the wrong format written to XML files of bool, float,
3838         double, DateTime and TimeSpan types.
3839
3840 2003-02-25  Alan Tam <Tam@SiuLung.com>
3841
3842         * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
3843         * DataRelationCollection.cs: Implemented AddRange and Contains.
3844         Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
3845         Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
3846         Reimplemented most Add methods to eliminate duplicated checks.
3847         Centralized RelationName generation procedure in GetNextDefaultRelationName.
3848
3849 2003-02-25  Alan Tam <Tam@SiuLung.com>
3850
3851         * DataColumn.cs: Fixed wrong storage representation of Expression
3852         (using empty string instead of null) so that ToString() returns nothing.
3853         * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
3854         auto column naming now works as expected. Reimplemented some Add methods
3855         to eliminate code duplication.
3856
3857 2003-02-19  Ville Palo <vi64pa@kolumbus.fi>
3858
3859         * DataTable.cs: DataTable.CaseSensitive follows parent 
3860         DataSet.CaseSensitive property if DataTable.CaseSensitive has never
3861         been changed directly from DataTable
3862         
3863 2003-02-19  Ville Palo <vi64pa@kolumbus.fi>
3864
3865         * DataSet.cs: When CaseSensitive property is changed all of the Tables
3866         of DataSet have to change too
3867         
3868 2003-02-19  Daniel Morgan <danmorg@sc.rr.com>
3869
3870         * InternalDataCollectionBase.cs: revert change to field
3871         to fix build
3872         
3873         * DataViewManager.cs
3874         * DataView.cs
3875         * DataTable.cs
3876         * DataSet.cs: commented use of DesignerAttribute
3877         because it broke the build.  According to MSDN,
3878         DesignerAttribute does not have a zero-argument constructor
3879
3880 2003-02-18  Ville Palo <vi64pa@kolumbus.fi>
3881
3882         * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
3883         
3884 2003-02-18  Alan Tam <Tam@SiuLung.com>
3885
3886         * DataRow.cs: Implemented GetParentRow and GetParentRows.
3887         * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
3888                       OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
3889                       RaisePropertyChanging.
3890         * DataTable.cs: Implemented NewRowArray.
3891         * DataTablePropertyDescriptor: Fixed a modifier.
3892         * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
3893         * PropertyCollection.cs: Minor fix.
3894         * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs 
3895         * DataRelation.cs DataRelationCollection.cs DataRow.cs
3896         * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
3897         * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
3898         * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
3899         * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
3900         * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
3901         
3902 2003-02-08  Ville Palo <vi64pa@koti.soon.fi>
3903
3904         * ExpressionElement.cs: More implementation
3905         
3906 2003-02-05  Alan Tam <Tam@SiuLung.com>
3907
3908         * DataSet.cs: Added framework for DataSet.Update Implemented missing 
3909         methods GetSchemaSerializable, GetSerializationData, 
3910         ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
3911         for DataSet
3912         * DataTable.cs: Implemented missing methods CreateInstance and 
3913         GetRowType for DataTable
3914         
3915 2003-02-03  Ville Palo <vi64pa@koti.soon.fi>
3916
3917         * DataSet.cs: Implemented private method MapType for 
3918         mapping datatypes for XmlSchema
3919         
3920 2003-02-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3921
3922         * DataView.cs: implemented Dispose.
3923
3924 2003-01-30  Ville Palo <vi64pa@koti.soon.fi>
3925
3926         * ExpressionElement.cs: Added new file. This file is for parsing
3927           and DataData.Select () -methods and DataColumn.Expression -property
3928         * DataTable.cs: Implemented Select(string) -method      
3929         
3930 2003-01-28  Ville Palo <vi64pa@koti.soon.fi>
3931
3932         * DataSet.cs: One little fix to writing xml
3933         
3934 2003-01-27  Ville Palo <vi64pa@koti.soon.fi>
3935
3936         * XmlSchemaMapper.cs: Some fixes.
3937         * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
3938
3939                 
3940 2003-01-24  Ville Palo <vi64pa@koti.soon.fi>
3941
3942         * UniqueConstraint.cs: Do not set columns Unique property true 
3943         as a default.
3944         * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
3945         
3946 2003-01-18  Ville Palo <vi64pa@koti.soon.fi>
3947
3948         * DataTableCollection.cs: Now names new DataTable if it doesn't 
3949         already have a name.
3950         
3951 2003-01-17  Ville Palo <vi64pa@koti.soon.fi>
3952
3953         * XmlSchemaMapper.cs: Improvments.
3954         * XmlConstaints.cs: Added more constants.
3955         * DataSet.cs: Improvments of reading and writing xml
3956         * DataColumn.cs: Added default values of properties.
3957                 
3958 2003-01-14  Ville Palo <vi64pa@koti.soon.fi>
3959
3960         * XmlSchemaMapper.cs: Some improvments
3961         
3962 2003-01-13  Ville Palo <vi64pa@koti.soon.fi>
3963
3964         * DataRowCollection.cs: Added IndexOutOfRangeException
3965         * DataTableCollection.cs: Added OnCollectionChanging and 
3966         OnCollectionChanged events.
3967         * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
3968         * DataTable.cs: Implemented Copy () and Clone () methods.
3969         * XmlDataLoader.cs: some fixes.
3970         * XmlSchemaMapper.cs: comments.
3971         
3972 2003-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3973
3974         * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
3975
3976 2003-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3977
3978         * DataColumnPropertyDescriptor.cs: fixed typo.
3979         * DataViewManagerListItemTypeDescriptor.cs: added new internal property
3980         to get the DataViewManager and removed TablePD class.
3981         * DataTablePropertyDescriptor.cs: TablePD class is now this one as
3982         suggested by danmorg.
3983
3984 2003-01-06  Ville Palo <vi64pa@koti.soon.fi>
3985
3986         * XmlDataLoader.cs: Moved diffgram stuff to new internal class
3987         XmlDiffLoader.
3988         * XmlDiffLoader.cs: new class for diffgrams. Added handling of 
3989         diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
3990         
3991 2003-01-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3992
3993         * DataView.cs: made dataViewManager internal.
3994         * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
3995         properties of the object, but the values of the columns present in a
3996         row.
3997         
3998         * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
3999         which returns a PropertyDescriptorCollection. Created a new class
4000         derived from PropertyDescriptor that treats Table as an object whose
4001         properties are DataRowView.
4002
4003 2003-01-04  Ville Palo <vi64pa@koti.soon.fi>
4004
4005         * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
4006         
4007 2003-01-04  Ville Palo <vi64pa@koti.soon.fi>
4008
4009         * DataColumn.cs: ExtendedProperties is by default !null-
4010         
4011 2003-01-04  Ville Palo <vi64pa@koti.soon.fi>
4012
4013         * DataColumnCollection.cs: Add (DataColumn Column) -method didn't 
4014         set column's ordinal.
4015         
4016 2003-01-02  Ville Palo <vi64pa@koti.soon.fi>
4017
4018         * DataSet.cs: 
4019         * XmlDataLoader.cs: XmlReader closing fixes.
4020         * XmlSchemaReader.cs: Added support for ref=
4021         
4022 2003-01-01  Ville Palo <vi64pa@koti.soon.fi>
4023
4024         * DataSet.cs: 
4025           - Added XmlReader and XmlWriter Closing.
4026           - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
4027         * XmlSchemaMapper.cs
4028           - Much better way IMHO  to map xmlschema than the old one in 
4029             DataSet.cs. Its, more flexible, cleaner, ...
4030                         
4031 2002-12-29  Ville Palo <vi64pa@koti.soon.fi>
4032
4033         * XmlDataLoader.cs: Reading diffgrams.
4034         
4035 2002-12-29  Ville Palo <vi64pa@koti.soon.fi>
4036
4037         * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
4038         * DataTable.cs: Added ChanginDataColumn () for triggering 
4039         DataColumnChanging event
4040         
4041 2002-12-28  Ville Palo <vi64pa@koti.soon.fi>
4042
4043         * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
4044         
4045 2002-12-28  Ville Palo <vi64pa@koti.soon.fi>
4046
4047         * DataSet.cs: Indentations to WriteXml ()
4048         
4049 2002-12-27  Ville Palo <vi64pa@koti.soon.fi>
4050
4051         * DataSet.cs:
4052         * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
4053         class XmlDataLoader.cs
4054         
4055 2002-12-19  Ville Palo <vi64pa@koti.soon.fi>
4056
4057         * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
4058         
4059 2002-12-18  Ville Palo <vi64pa@koti.soon.fi>
4060
4061         * DataSet.cs: Started to implement ReadXml-methods.
4062         
4063 2002-12-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4064
4065         * DataSet.cs: implemented DefaultViewManager and GetList.
4066
4067         * DataViewManager.cs: a bit of work on IList and ITypedList needed by
4068         DataList in System.Web.
4069
4070         * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
4071         DataViewManager.
4072
4073 2002-12-16  Ville Palo <vi64pa@koti.soon.fi>
4074
4075         * DataRow.cs
4076         * DataTable.cs: Fixed NullException (rollback -event)
4077         * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
4078         
4079 2002-12-15  Ville Palo <vi64pa@koti.soon.fi>
4080
4081         * DataRow.cs:
4082         * DataRowCollection.cs: Moved event triggering from DataRow to
4083         DataRowCollection.
4084         
4085 2002-12-09  Ville Palo <vi64pa@koti.soon.fi>
4086
4087         * DataSet.cs: Little fix to WriteTable () -method 
4088         and DoReadXmlSchema () -method.
4089         
4090 2002-12-06  Ville Palo <vi64pa@koti.soon.fi>
4091
4092         * DataSet.cs: Clean up to reading xmlschema. This looks much better 
4093         now (work better too), but it not working correctly yet.
4094         
4095 2002-12-04  Ville Palo <vi64pa@koti.soon.fi>
4096
4097         * DataRow.cs: 
4098         * DataRowCollection.cs: Added some event handlins stuff.
4099         * DataSet.cs: Some fixes.
4100         * DataTable.cs: Added event handlers.
4101         
4102 2002-11-30  Ville Palo <vi64pa@koti.soon.fi>
4103
4104         * DataRowChangeEventArgs.cs: Implemented Action and Row properties 
4105         
4106 2002-11-30  Ville Palo <vi64pa@koti.soon.fi>
4107
4108         * System.Data/DataRow.cs: Added internal property XmlDataID
4109         
4110 2002-11-29  Ville Palo <vi64pa@koti.soon.fi>
4111
4112         * DataSystem.Data.DataTableCollection.cs:
4113         Removed HashTable. There could be situations where DataTable
4114         is added to collection before it hava TableName. So using 
4115         HashTable is impossible.
4116         
4117 2002-11-19  Carlos Guzman Alvarez <carlosga@telefonica.net>
4118
4119         * DataRow.cs: an object that is equal to null 
4120         should be allowed to be set in this indexer too
4121         to be like .NET
4122
4123 2002-11-06  Daniel Morgan <danmorg@sc.rr.com>
4124
4125         * DataColumnPropertyDescriptor.cs: added file
4126         
4127         * System.Data/DataRowView.cs: started implementation
4128         
4129         * DataTable.cs: stubbed more interfaces.  Implemented
4130         IListSource.GetList()
4131         
4132         * DataView.cs: stubbed more interfaces.  Implemented
4133         some properties and methods: GetEnumerator(), 
4134         ITypedList.GetItemProperties, Item indexer, CopyTo()
4135
4136 2002-05-18  Nick Drochak  <ndrochak@gol.com>
4137
4138         * DataRow.cs: Fix typo.