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