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