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