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