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