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