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