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