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