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