2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.Data / System.Data / ChangeLog
1 2004-01-07  Atsushi Enomoto  <atsushi@ximian.com>
2
3         * XmlDataInferenceLoader.cs : test driver class should be excluded.
4
5 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
6
7         * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
8         is never null.
9
10 2004-11-10  Atsushi Enomoto  <atsushi@ximian.com>
11
12         * CustomDataClassGenerator.cs : generated foreign key constraint
13           construction code was creating empty child columns and thus it
14           was invalid. This fixes bug #69276 (patch by Martin Voelkle).
15
16 2004-11-02  Atsushi Enomoto  <atsushi@ximian.com>
17
18         * CustomDataClassGenerator.cs : custom DataTable ctor should call
19           InitializeFields(), and those DataColumns created by that method
20           should take data type. This should fix bug #68972.
21
22 2004-10-15  Atsushi Enomoto  <atsushi@ximian.com>
23
24         * DataSet.cs : Also clear UnhandledAttributes ArrayList before 
25           generating next attribute column schema. This fixes bug #68432.
26
27 2004-10-14 Umadevi S <sumadevi@novell.com>
28         * DataTable.cs : Corrected the Clone method to use  Activator.CreateInstance so that the
29         correct subclass is returned. This fixes bug #67631
30                                                                                         
31 2004-10-14 Umadevi S <sumadevi@novell.com>
32         * DataSet.cs : Corrected the Clone method to use  Activator.CreateInstance so that the  
33         correct subclass is returned. This fixes bug #67627
34
35 2004-10-13  Atsushi Enomoto  <atsushi@ximian.com>
36
37         * DataSet.cs : clear UnhandledAttributes ArrayList before generating
38           next element column schema. This fixes bug #68256.
39
40 2004-10-12  Atsushi Enomoto  <atsushi@ximian.com>
41
42         * DataSet.cs : now xs:schema contains xmlns="".
43           This fixes bug #68008.
44
45 2004-10-12  Atsushi Enomoto  <atsushi@ximian.com>
46
47         * DataSet.cs : DBNull attribute column should not be written as
48           empty attribute. This fixes bug #68007.
49
50 2004-10-12  Atsushi Enomoto  <atsushi@ximian.com>
51
52         * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
53           DataColumn.ReadOnly was not handled. This fixes bug #68005.
54           Attribute defaultValue was not handled too.
55
56 2004-10-07  Atsushi Enomoto  <atsushi@ximian.com>
57
58         * DataSet.cs :
59           - When AllowDBNull is false on attribute DataColumn, its schema
60             should contain use="required". This fixes bug #66792.
61           - If MaxLength is set on attribute DataColumn, the mapped schema
62             type should contain maxLength facet. This fixes bug #66793.
63
64 2004-10-04  Atsushi Enomoto  <atsushi@ximian.com>
65
66         * DataSet.cs : For a row, when a relation is not nested, then it is
67           still output target since it won't be written as a child of its
68           parent. It fixes bug #66379.
69
70 2004-10-03  Atsushi Enomoto  <atsushi@ximian.com>
71
72         * DataSet.cs : Attribute constraint field XPath must be written as
73           @blah. This fixes bug #66366.
74
75 2004-09-28 Umadevi S <sumadevi@novell.com>
76         * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
77
78 2004-09-24  Sureshkumar T  <tsureshkumar@novell.com>
79
80         * DataSet.cs : Don't check constraints for dataset clear
81         * DataRowCollection.cs : check for EnforceConstraints flag 
82         before checking foriegn key constraints in Clear method
83         * DataTable.cs : Redundant checking removed in Clear method as it is
84         checked in DataRowCollection.Clear method. 
85
86
87 2004-09-19  Sureshkumar T <tsureshkumar@novell.com>
88         * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
89                        hence, adding a row cache is necessary if the original row happens to be current.
90                        fixed bug #63097
91
92 2004-08-23  Martin Baulig  <martin@ximian.com>
93
94         * XmlDataInferenceLoader.cs (Driver): Make this class internal,
95         not public.
96
97 2004-08-18 Umadevi S <sumadevi@novell.com>
98         * DataView.cs - Completed most of the event handling. 
99         Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
100         Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
101         * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
102
103 2004-08-06  Atsushi Enomoto  <atsushi@ximian.com>
104
105         * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
106
107 2004-08-05  Atsushi Enomoto  <atsushi@ximian.com>
108
109         * XmlConstants.cs : Added constants for "msprop" support.
110         * DataSet.cs : ExtendedProperties should be written in the schema.
111           This fixes bug #61233.
112
113 2004-07-27  Atsushi Enomoto  <atsushi@ximian.com>
114
115         * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
116           used. There were also some culture dependency problems to write int.
117
118 2004-06-27  Atsushi Enomoto  <atsushi@ximian.com>
119
120         * XmlDataInferenceLoader.cs : It was not always filling relation
121           child table information correctly. This fixes bug #60742.
122
123 2004-06-23 Umadevi S <sumadevi@novell.com>
124         * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
125
126 2004-06-22  Atsushi Enomoto  <atsushi@ximian.com>
127
128         * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
129           schema is inside the document element (as created in XmlWriteMode
130           .WriteSchema), it should read schema from that non-document element.
131           This fixes one case reported in bug #60470.
132
133 2004-06-20  Atsushi Enomoto  <atsushi@ximian.com>
134
135         * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
136           inference target. For bug #60470. (MS does not support schema
137           document inference and results in unconsistent dataset structure.)
138
139 2004-06-20  Atsushi Enomoto  <atsushi@ximian.com>
140
141         * DataTableCollection.cs : reset the table's DataSet to null when
142           removing a table from this collection.
143         * DataTable.cs : When Namespace is not specified explicitly, its
144           Namespace property reflects DataSet's Namespace if exist.
145           This fixes bug #60469.
146
147 2004-06-18  Gert Driesen <drieseng@users.sourceforge.net>
148
149         * DBConcurrentcyException.cs: CRLF to LF
150         * DataViewSetting.cs: CRLF to LF
151
152 2004-06-18  Gert Driesen <drieseng@users.sourceforge.net>
153
154         * DataViewSetting.cs: renamed fields to match MS.NET
155
156 2004-06-18  Gert Driesen <drieseng@users.sourceforge.net>
157
158         * DBConcurrencyException.cs: fixed serialization compatibility with
159         MS.NET
160
161 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
162
163         * ChangeLog : Fix for misspelled words.
164
165 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
166
167         * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
168         
169 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
170
171         * DataTable.cs :
172           - Table stores default values for columns in special default values row. 
173           It is allocated once (in NewRow).
174           - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
175           - OnRemoveColumn has nothing to perform by now.
176
177 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
178
179         * DataRow.cs : 
180           - Changed access of original, current and proposed indexes to internal.
181           - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
182           - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
183           - Use DataContainer.CopyValue and default values row for faster set of default values in row.
184           - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
185           Care about Null and DBNull values is now in DataContainer.
186           - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
187           - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
188           - Fix in CopyState : clone column errors.
189           - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
190
191 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
192
193         * DataColumnCollection.cs : 
194           - Fix : Add() now delegates to Add(DataColumn).
195           - autoIncrement list holds DataColumn objects, and not just column names.
196
197 2004-06-17  Boris Kirzner  <borisk@mainsoft.com>
198
199         * DataColumn.cs : 
200           - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
201           - DefaultValue fixes. Default value from now on is also stored in special record in 
202           DataTable, so we're able to set default value for the column faster (typed).
203         
204         
205 2004-06-15  Atsushi Enomoto  <atsushi@ximian.com>
206
207         * DataSet.cs : children of non-root rows were not properly written.
208           Fixed bug #53959.
209
210 2004-06-10 Umadevi S <sumadevi@novell.com>
211         * DataRelation.cs - Constructor
212         - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
213
214 2004-06-06  Atsushi Enomoto  <atsushi@ximian.com>
215
216         * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
217
218 2004-06-04  Gert Driesen <drieseng@users.sourceforge.net>
219
220         * Constraint.cs: marked methods internal to fix public API
221         * ConstraintCollection.cs: to fix public API, use 
222         DataTable.fInitInProgress to check whether initialization 
223         of DataTable is in progress
224         * DataColumn.cs: added stubs for missing methods
225         * DataRowBuilder.cs: marked Table property internal to
226         fix public API
227         * DataSet.cs: removed extra empty destructor, marked 
228         OnMergeFailed internal to fix public API
229         * DataTable.cs: use fInitInProgress field to hold init
230         status, to match MS.NET
231         * DataView.cs: added missing attributes on IsOpen
232
233 2004-06-03  Atsushi Enomoto  <atsushi@ximian.com>
234
235         * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
236           in XmlNamespaceManager.
237
238 2004-06-03  Atsushi Enomoto  <atsushi@ximian.com>
239
240         * DataSet.cs : complex table content child was not properly added
241           when it is the only one child in the parent table. Fixed bug #53959.
242
243 2004-06-02  Gert Driesen <drieseng@users.sourceforge.net>
244        * DataTableTypeConverter.cs: added
245        * DataView.cs: added missing attribute on Table property
246        * DataViewManager.cs: moved attribute to correct property
247        * UniqueConstraint.cs: removed extra ReadOnly attribute from
248         IsPrimaryKey property
249
250 2004-06-01  Atsushi Enomoto  <atsushi@ximian.com>
251
252         * DataRow.cs : ColumnsChanged event is not required in .ctor().
253
254 2004-06-01  Atsushi Enomoto  <atsushi@ximian.com>
255
256         * XmlDataReader.cs : type change is required before setting value
257           string to row item.
258
259 2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
260
261         * DataSet.cs : Loop-break of the last fix was incorrect.
262
263 2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
264
265         * DataSet.cs : When a row has no parent row but the table has parent
266           relation(s), that row had been always ignored.
267
268 2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
269
270         * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
271           rejected same-named tables in different hierarchy. Thanks to Boris.
272
273 2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
274
275         * XmlDiffLoader.cs : Added some Skip() that is required not to go to
276           infinite loop. Thanks to Boris for this fix.
277
278 2004-05-31  Atsushi Enomoto  <atsushi@ximian.com>
279
280         * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
281           Thanks to Boris for this fix.
282
283 2004-05-30  Atsushi Enomoto  <atsushi@ximian.com>
284
285         * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
286           for ReadXml(). Thanks to Boris.
287
288 2004-05-27  Boris Kirzner  <borisk@mainsoft.com>
289         * DataRow.cs : 
290                 - CheckReadOnlyStatus : use typed (and faster comparing).
291                 - EndEdit : bug fix - do not dispose record if it holds original version.
292                 - SetValuesFromDataRecord : Take care about autoincrement columns.
293                 
294
295 2004-05-27  Atsushi Enomoto  <atsushi@ximian.com>
296
297         * MergeManager.cs : don't output debug message to Console.
298
299 2004-05-27  Atsushi Enomoto  <atsushi@ximian.com>
300
301         * XmlDataInferenceLoader.cs : Namespace are not imported to the table
302           structure. Thanks to Boris Kirzner for the fix.
303
304 2004-05-27  Umadevi S <sumadevi@novell.com>
305          * DataRelationCollection.cs - fixed nunit test errors
306
307 2004-05-27  Umadevi S <sumadevi@novell.com>
308          * DataTableCollection.cs - fixed nunit test errors
309
310 2004-05-21  Atsushi Enomoto  <atsushi@ximian.com>
311
312         * DataColumnCollection.cs : NullReferenceException was thrown when
313           the table was not found.
314         * DataRowCollection.cs :
315           Find() just returns null for null value under MS.NET 1.1.
316           RemoveAt() should also avoid to call AcceptChanges() like Remove().
317         * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
318           directly under MS.NET (for nunit test).
319
320 2004-05-21  Atsushi Enomoto  <atsushi@ximian.com>
321
322         * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf() 
323           caused problem on qualified name to get schema Field name.
324
325 2004-05-21  Atsushi Enomoto  <atsushi@ximian.com>
326
327         * XmlDataReader.cs : Now data reader is namespace aware in all places.
328           When table's namespace is different, it entered to infinite loop.
329
330 2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
331         * MergeManager.cs : AdjustSchema now updates by reference new created table,
332         so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
333         Code styling.
334         
335 2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
336
337         * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
338         * DataColumnCollection.cs : fixed parantethes.
339         * DataRow.cs : 
340                 - AcceptChanges : do nothing if row state is unchanged.
341                 - GetChildRows, GetParentRows  : bug fix (use correct index).
342         * DataRowCollection.cs : bug fix (compare all row's values).
343         * DataTable.cs : bug fix (use correct row version).
344         
345 2004-05-20  Atsushi Enomoto  <atsushi@ximian.com>
346
347         * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
348           When content type is Mixed, text column is not required (it is
349           required only when the complex type has no particle). 
350           "Repeated element" column is also created (considering maxOccurs=0 
351           and complex content extension).
352
353 2004-05-20  Atsushi Enomoto  <atsushi@ximian.com>
354
355         * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled 
356           properly.
357
358 2004-05-20  Atsushi Enomoto  <atsushi@ximian.com>
359
360         * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
361           Fixed relation inference to consider attribute XPath.
362
363 2004-05-19  Atsushi Enomoto  <atsushi@ximian.com>
364
365         * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
366           always fails.
367
368 2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
369
370         * DataColumn.cs - removed default member attribute.
371
372 2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
373
374         * DataColumn.cs,
375           DataColumnChangeEventArgs.cs,
376           DataColumnCollection.cs,
377           DataRow.cs,
378           DataRowCollection.cs,
379           DataTable.cs,
380           Index.cs : Data storage in the row is redesigned. Now data is stored in 
381           typed containers inside DataColumn. Row holds its versions as indexes inside
382           each of data container, accessed through the row that holds it.
383
384 2004-05-19  Boris Kirzner  <borisk@mainsoft.com>
385
386         * UniqueConstraint.cs - added comment.
387         
388 2004-05-19  Atsushi Enomoto  <atsushi@ximian.com>
389
390         * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
391           DataSet.
392
393 2004-05-17  Atsushi Enomoto  <atsushi@ximian.com>
394
395         * DataSet.cs,
396           XmlDataInferenceLoader.cs,
397           XmlDataReader.cs,
398           XmlSchemaDataImporter.cs : XmlDecode every local name to read and
399           XmlEncode every local name to write. This should fix bug #58268.
400
401 2004-05-17  Atsushi Enomoto  <atsushi@ximian.com>
402
403         * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
404           Supported repeated elements. Removed MonoTODOs.
405         * XmlDataInferenceLoader.cs : Design change to support ignored
406           namespace and repeated elements.
407         * XmlSchemaDataImporter.cs : Added mapping support classes.
408
409 2004-05-15  Atsushi Enomoto  <atsushi@ximian.com>
410
411         * CustomDataClassGenerator.cs :
412           Added property parent "[foo]Row" and children "Get[foo]Row" support
413           for custom DataRow classes.
414           Fixed DataColumn property accessibility (public --> internal).
415
416 2004-05-14  Atsushi Enomoto  <atsushi@ximian.com>
417
418         * CustomDataClassGenerator.cs :
419           - Put classes inside custom DataSet class.
420           - Added automatic DataRelation creation support.
421           - Added Constraints creation support. That is done separate from
422             relations, since they might be independently created.
423           - Added non-MS public DataRelation fields.
424           - Removed extraneous "DataRelation type generation" code.
425           - Fixed custom_dataset.Initialize() not to create "c" field that
426             was created more than once.
427           - Implemented AddxxxRow() that takes parameters for every column.
428
429 2004-05-14  Atsushi Enomoto  <atsushi@ximian.com>
430
431         * XmlSchemaDataImporter.cs : When primary key is used more than once,
432           DataRelation borked because of empty parent column name.
433
434 2004-05-14  Atsushi Enomoto  <atsushi@ximian.com>
435
436         * XmlSchemaDataImporter.cs : When Creating constraints with related
437           to DataRelation creation, also set PrimaryKey to the parent table.
438
439 2004-05-14  Atsushi Enomoto  <atsushi@ximian.com>
440
441         * XmlSchemaDataImporter.cs : 
442           Design change to add indirect table and relation structures.
443           Support for "relation" annotation for local element.
444           Support for repeatable simple element column (maxOccurs > 1).
445           Fixed handling of Nested property on DataRelation (for globally
446           annotated relation, Nested is false).
447
448 2004-05-13  Atsushi Enomoto  <atsushi@ximian.com>
449
450         * DataRow.cs : Added DataElement property to avoid storing every row-
451           element mapping. It stored even for nodes that should be removed.
452
453 2004-05-13  Umadevi S <sumadevi@novell.com>
454
455         * RelationshipConverter.cs - Stubbed this class
456         * DataRelation.cs - added TypeConveterAttribute
457
458 2004-05-13  Umadevi S  <sumadevi@novell.com>
459
460         * DataColumnCollection.cs - Added ResDescriptionAttribute
461         * DataRelation.cs - Added TypeConverterAttribute
462         * DataRelationCollection.cs - Added DefaultPropertyAttribute
463         * DataRowView.cs - Added GetHashCode method with a TODO tag
464         * DataSet.cs - Added DesignerAttribute
465         * DataView.cs - Added DesignerAttribute
466         * DataViewManager.cs - Added DesignerAttribute
467         * DataViewSetting.cs - Added TypeConverterAttribute
468         
469 2004-05-12  Atsushi Enomoto  <atsushi@ximian.com>
470
471         * DataRow.cs : Added XmlDataElement initialization code.
472
473 2004-05-11  Atsushi Enomoto  <atsushi@ximian.com>
474
475         * XmlDataInferenceLoader.cs :
476           It now requires XmlDocument as input.  Improved identification of
477           DataSet element.  Removed extra lines.
478           Moved boresome design notes to bottom of the source and
479           added standalone runnable driver (not included on build).
480         * DataSet.cs :
481           Update with related to the change above.
482           WriteXml() should call Flush() after writing. This fixes bug #58327.
483         * XmlSchemaDataImporter.cs :
484           Improved indentification of DataSet element.
485
486 2004-05-11  Gert Driesen (drieseng@users.sourceforge.net)
487         * DataTable: marked initStatus enum internal
488
489 2004-05-09  Gert Driesen (drieseng@users.sourceforge.net)
490         * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
491         methods internal
492         * DataRowView.cs: removed extra Error property
493         * DataRow.cs: reduced accessibility of CollectionChanged method 
494         to private
495         * DataColumnPropertyDescriptor.cs: made class internal
496         * DataColumn.cs: removed extra TypeConvertorAttribute
497         * ConstrainCollection.cs: marked PostEndInit method internal
498
499 2004-05-07  Atsushi Enomoto  <atsushi@ximian.com>
500
501         * DataSet.cs : 
502           In WriteXmlSchema(), when complex type contains simple type content
503           attributes must not added to XmlSchemaComplexType directly. It
504           causes schema compilation error.
505           DataRelation should not be output when related columns are hidden.
506
507 2004-05-07  Atsushi Enomoto  <atsushi@ximian.com>
508
509         * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
510           also expected to do ReadXml(), but I will remove that feature and
511           support column reordering).
512         * XmlSchemaDataImporter.cs : Always initialize dataset name.
513           Always set Nested and primary key for parent table.
514         * XmlDataReader.cs : Now it is used.
515           Top level element might not match to dataset name nor any table 
516           name, but still possible to read content tables.
517           Handle empty element correctly in some places.
518           Handle Fragment mode (read up XmlReader to the end).
519         * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
520           XmlDataInferenceLoader and XmlDataReader.
521
522 2004-05-06  Atsushi Enomoto  <atsushi@ximian.com>
523
524         * DataSet.cs :
525           Eliminated CRLF injection.
526           More clear message in Clear().
527           Updates reflecting XmlSchemaDataImporter change.
528           Added duplicate check for XmlSerializerNamespaces in BuildSchema().
529           Don't use xmlns attribute for UnhandledAttributes (its not mandatory
530           but that depends on different behavior from ms.net).
531           Set locale also for DataTable.
532           Add xs:element only when target namespace matches to the
533           element's namespace. Otherwise, add xs:import for external namespace.
534           Put xs:sequence for dataset element's particle _only when_ actual
535           contents exist.
536
537 2004-05-06  Atsushi Enomoto  <atsushi@ximian.com>
538
539         * XmlDataReader.cs : Added. This class will work better when our
540           schema inference and schema read engine gets improved. (It contains
541           standalone testable Driver class.)
542
543 2004-05-06  Atsushi Enomoto  <atsushi@ximian.com>
544
545         * ForeignKeyConstraint.cs : Check step change. Existence then column
546           validity. just for tests.
547         * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
548           fields.
549
550 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
551
552         * DataSet.cs : Ignore empty content only when output type is diffgram.
553
554 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
555
556         * CustomDataClassGenerator.cs : Modified that DataSet contains each
557           DataTable field so that each table property can access them directly.
558           (plus, modified standalone code driver code: shouldn't affect)
559
560 2004-05-05  Boris Kirzner  <borisk@mainsoft.com>
561
562         * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
563           
564 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
565
566         * XmlSchemaDataImporter.cs : 
567           SimpleContent column support.
568           Annotated relation support.
569           Top-level element is counted only when its type is complex.
570           xs:anyType is no longer treated as complex type.
571           dataset existence is mandatory now. 
572           Improved DataType and DefaultValue support.
573           Attribute namespace is properly handled now.
574           Prohibited attribute is now treated as hidden column.
575           Reject list or union simple type.
576
577           Still incomplete 1) to read relationship in some cases, 2) to 
578           determine whether an element is dataset or table, 3) thus to
579           exclude extraneous column, 4) to remove extraneous *_Id column.
580
581 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
582
583         * DataTable.cs :
584           We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
585           serialization .ctor() (thus schema read/inference should be easier).
586           DataRowSorter should consider Table's Locale.
587
588 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
589
590         * DataColumnCollection.cs : We already had AutoIncrementValue(), so
591           use it instead of duplicating logic.
592
593 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
594
595         * ConstraintCollection.cs :
596           Use Table.CaseSensitive and Table.Locale to compare strings.
597           Duplicate constraint name exception does not occur under .NET 1.1.
598
599 2004-05-04  Lluis Sanchez Gual  <lluis@ximian.com>
600
601         * XmlSchemaDataImporter.cs: Added little type check.
602
603 2004-05-04  Lluis Sanchez Gual  <lluis@ximian.com>
604
605         * DataSet.cs: Implemented support for runtime serialization. Fixed support
606           for xml serialization.
607         * XmlDiffLoader.cs: Skip diffgram element when it is empty.
608
609 2004-04-30  Umadevi S  <sumadevi@novell.com>
610         * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
611         * DataTableCollection.cs  : Tested and removed TODO
612         * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs   
613
614 2004-04-29  Atsushi Enomoto  <atsushi@ximian.com>
615
616         * DataRow.cs : My previous patch unintentionally reverted Boris patch.
617
618 2004-04-29  Boris Kirzner <borisk@mainsoft.com>
619
620         * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if 
621         constraint is defined on single column.
622
623 2004-04-29  Atsushi Enomoto  <atsushi@ximian.com>
624
625         * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
626           not ArgumentException (maybe changed after 1.1).
627
628 2004-04-29  Atsushi Enomoto  <atsushi@ximian.com>
629
630         * DataRow.cs : When Column was added and it was AutoIncrement column,
631           it extended the item object array incorrectly.
632           (Plus tiny comment and incorrect indentation fix.)
633
634 2004-04-29  Boris Kirzner <borisk@mainsoft.com>
635
636         * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
637
638 2004-04-29  Boris Kirzner <borisk@mainsoft.com>
639
640         * DataRow.cs : Bug fix in CopyValuesToRow().
641         
642 2004-04-29  Boris Kirzner <borisk@mainsoft.com>
643
644         * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
645           each of the columns should not be unique, but only all the constraint's columns together.
646         
647 2004-04-28  Boris Kirzner <borisk@mainsoft.com>
648         * DataRow.cs :
649           - Perfomance fixes: 
650                 - Added using of list of autoIncrement columns
651                 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
652           - Fix in CheckNullConstraints
653           - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
654           - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
655           - Added onColumnRemoved() method to threat column removal accurately.
656         
657         * DataRowCollection.cs :
658           - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
659           - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
660         
661         * DataTable.cs :
662           - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
663         
664         * DataColumnCollection.cs :
665           - Perfomance fixes :
666                 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
667                 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
668                 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
669         
670         * DataColumn.cs :
671           - Uses autoincrement list of a table
672
673 2004-04-27  Atsushi Enomoto  <atsushi@ximian.com>
674
675         * XmlDataLoader.cs : Even when it should ignore schema, it was 
676           infering schema.
677         * XmlSchemaDataImporter.cs : DataRelation creation support.
678           Improved "DataSet" element handing. When attributes are on the
679           element, it is not a "DataSet" element.
680           Fixed parent key column name.
681           Unique name creation is not required. Just raise an error.
682           Fill facet also for attribute types.
683
684 2004-04-27  Atsushi Enomoto  <atsushi@ximian.com>
685
686         * DataRow.cs : Null check for CheckReadOnlyStatus() and
687           CheckNullConstraints(), with some coding guideline fixes.
688           Type check should be done by Type instance comparison.
689
690 2004-04-27  Atsushi Enomoto  <atsushi@ximian.com>
691
692         * DataColumnCollection.cs : When add a column to the collection, fill
693           auto-increment column.
694
695 2004-04-26  Boris Kirzner <borisk@mainsoft.com>
696
697         * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
698         
699 2004-04-26  Atsushi Enomoto  <atsushi@ximian.com>
700
701         * CustomDataClassGenerator.cs : Added.
702         * TypedDataSetGenerator.cs : Implemented Generate().
703           Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
704         * XmlSchemaDataImporter.cs : Table Locale should be supplied.
705
706 2004-04-25  Boris Kirzner <borisk@mainsoft.com>
707
708         * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
709         
710 2004-04-25  Boris Kirzner <borisk@mainsoft.com>
711
712         * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
713
714 2004-04-23 Umadevi S (sumadevi@novell.com)
715         *  DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
716            - Added error handling to the above methods
717
718 2004-04-22  Atsushi Enomoto  <atsushi@ximian.com>
719
720         * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
721           the support is incomplete yet).
722         * XmlDataLoader.cs : 
723           Reverted ReadModeSchema() argument change. XmlReadMode would be 
724           useful to handle IgnoreSchema.
725           Don't overwrite DataSetName when mode is not such kind.
726           Set Prefix and Namespace as well as DataSetName.
727           AllowDBNull looks set false by default for element column.
728           Set unique constraint as primary key when infering the table schema.
729
730 2004-04-21  Atsushi Enomoto  <atsushi@ximian.com>
731
732         * DataSet.cs : 
733           Never set null string for Prefix and Namespace.
734           In InferXmlSchema() when null XmlReader is passed, just do nothing.
735           In WriteXmlSchema(string), earlier try block.
736           In BuildSchema(), try to add serialization namespaces for each
737           namespaces in DataSet/DataTable/DataColumn.
738           Removed namespace argument from WriteColumnAsElement() and don't
739           overwrite when namespace is "". This fixes bug #57330.
740         * DataColumn.cs : For Namespace and Prefix, never set null.
741
742 2004-04-21  Boris Kirzner <borisk@mainsoft.com>
743
744         * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
745           before creating and adding foreign key constraint and relation. 
746
747 2004-04-21  Boris Kirzner <borisk@mainsoft.com>
748
749         * MergeManager.cs : In AdjustSchema() source table clone should be added
750           and not the table itself. 
751
752 2004-04-21  Boris Kirzner <borisk@mainsoft.com>
753
754         * DataSet.cs : 
755           - CaseSensitive : Additional fix (removed unnesessary assignment).
756           - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
757
758 2004-04-21  Boris Kirzner <borisk@mainsoft.com>
759
760         * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
761           
762 2004-04-20  Boris Kirzner <borisk@mainsoft.com>
763
764         * DataTable.cs : 
765           - EndLoadData() : perfomance fix in case of null constraint violation
766             during data load (also in DataRow.cs).
767           - CaseSensitive : If DataTable belongs to DataSet it should always use
768             DataSet.CaseSensitive untill explicitly changed.
769           - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
770           
771         * DataRow.cs :
772           - Pefromance fix in case of null constraint violation
773             during data load (also in DataTable.cs).
774           - CollectionChanged() : use correct column number after new DataColumn was added
775             (differs in case some DataColumn was previosly removed).
776           - EndEdit() - throw away  proposed values only after CheckChildRows() complete.
777
778 2004-04-20  Boris Kirzner <borisk@mainsoft.com>
779
780         * DataColumnCollection.cs : Since unique constraint is added now
781           in DataColumn.SetTable() the additional creation of constraint in 
782           DataColumnCollection.Add() is redundant and causes exception - fixed.
783           
784 2004-04-19  Atsushi Enomoto  <atsushi@ximian.com>
785
786         * XmlDataLoader.cs : Added "never add data rows" mode.
787           Removed unused code. However, it is temporary fixes to unify
788           ReadXml() and InferXmlSchema().
789         * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
790
791           I'll create another XmlDataLoader since there are many problems
792           such that 1) it is too waste to read the entire xml into an
793           XmlDocument, 2) it does not handle attributes correctly, and 3) it
794           must handle "ignored namespaces".
795
796 2004-04-19  Atsushi Enomoto  <atsushi@ximian.com>
797
798         * Added XmlSchemaDataImporter.cs (new schema reader).
799         * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
800           for ReadXmlSchema().
801           Let schema reading work to ReadXmlSchema().
802           Don't return ReadSchema when argument read mode was DiffGram.
803
804 2004-04-15 Umadevi S (sumadevi@novell.com)
805         *  Updated Clone/Copy methods in DataSet along with Testcase
806         *  ForeignKeyConstraint.cs - special ctor implemented 
807             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).
808         * Changes in  ConstraintCollection.cs for the above
809         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.
810         
811
812 2004-04-15  Atsushi Enomoto  <atsushi@ximian.com>
813
814         * XmlSchemaMapper.cs : set parent key and foreign key info to 
815           DataRelation when reading refkey constraints.
816           Supply constraint name for fkey.
817
818 2004-04-15  Atsushi Enomoto  <atsushi@ximian.com>
819
820         * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
821           mode is Auto, just ignore the schema if there is already schema info.
822         * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
823
824 2004-04-14  Atsushi Enomoto  <atsushi@ximian.com>
825
826         * DataSet.cs :
827           - In MS output, XML declaration looks to have standalone decl (yes).
828           - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
829           - ReadXml(reader, mode)
830             1) return originally specified mode, instead of (always) Auto. 
831             2) Check empty reader.
832             3) Check diffgram schema and content separately.
833             4) When diffgram exists, remaining (the same-level) contents 
834                won't be consumed. 
835             5) Similar fact should be applied, but somewhat different. 
836                InferSchema and IgnoreSchema just skips, Fragment reads both
837                schema and content, others just reads schema.
838           - Removed unused code.
839         * XmlDataLoader.cs :
840           - Read() should skip in some ReadMode.
841           - Don't compare schema element name as case-insensitive (well,
842             should schemas be checked here?)
843           - Avoided BuildDocument() not to create confusing DataSet
844             document element.
845           - Don't add any tables when reader has single element.
846         * XmlDiffLoader.cs :
847           When target table was not found, MS.NET doesn't raise an error.
848         * XmlSchemaMapper.cs :
849           When XmlSchema.Read() left xml reader at </xs:schema>, read once.
850
851 2004-04-13  Atsushi Enomoto  <atsushi@ximian.com>
852
853         * DataSet.cs :
854           - InferXmlSchema(): Throw explicit NotImplementedException now.
855           - Don't put XML declaration everywhere. Write just for filename arg.
856           - xmlns="" should not be written. Maybe WebService problem is 
857             because default namespace is overwritten. This patch will keep
858             the WS problem away and actually fixes some unit tests (i.e. use
859             explicit String.Empty for null namespace in WriteStartElement()).
860           - MoveToContent() should always be called, not only when 
861             LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
862           - Even XmlReadMode is DiffGram, reader might not be "diffgram"
863             element. As to MSDN, diffgram does not contain schema.
864
865 2004-04-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
866
867         * DataTable.cs: made _initStatus private so that System.Data is CLS
868         compliant.
869
870 2004-04-13 Umadevi S   <sumadevi@novell.com>
871         *  UniqueConstraint.cs:
872         *  ConstraintCollection.cs:
873         *  DataTable.cs:
874         - Implemented a Constructor for UniqueConstraint.cs
875         - Used  EndInit on DataTable  to call a delegate which adds the
876           constraints passed to the most recent call of AddRange().Used
877           AddRange() on ConstraintCollection to check whether
878           DataTable.BeginInit has occurred.  If yes, save the argument
879           constraint collection passed, then return.  If no, Check whether the
880           constraints are of type UniqueConstraint and initialized with the
881           special constructor  If yes Initialized the table property of this
882           UniqueConstraint object with table assosciated with the current
883           instance of ConstraintCollection class.
884
885 2004-04-07  Marek Safar  <marek.safar@seznam.cz>
886
887         * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
888
889 2004-04-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
890
891         * Constraint.cs:
892         * DataColumnCollection.cs:
893         * DataRelationCollection.cs:
894         * DataRowCollection.cs:
895         * DataTableCollection.cs:
896         * InternalDataCollectionBase.cs:
897         * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
898         Fixes bug #56557.
899
900 2004-04-05  Jackson Harper  <jackson@ximian.com>
901
902         * DataTable.cs: Add rows to the row list if there is no filter.
903         
904 2004-03-31  Juraj Skripsky <juraj@hotfeet.ch>
905
906         * DataColumn.cs : Setting Caption to null sets it to the empty string
907         (ms.net behaviour, testcase is in DataColumnTest).
908         
909         * DataRow.cs : Evaluate DataColumn.Expression when such a column's
910         value is requested.
911
912 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
913
914         * DataColumn.cs: In Expression setter, set the expression member even if 
915           it is an empty string.
916         * DataSet.cs: Support serialization of byte[] columns.
917         * XmlDataLoader.cs: Support deserialization  of Guid columns. 
918           Set MappingType.Attribute to columns infered from attributes.
919
920 2004-03-29  Juraj Skripsky <juraj@hotfeet.ch>
921
922         * ExpressionElements.cs : remove
923         * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
924         Integration of new Mono.Data.SqlExpressions classes used in
925         DataTable.{Select, Compute}.
926         Fixes bug #55503 and lots of failures in DataTableTest.cs.
927
928 2004-03-28  Juraj Skripsky <juraj@hotfeet.ch>
929
930         * Index.cs: Simple fix in ComparePartialRowNonUnique.
931         This fixes bugs #56129 and #56014.
932
933 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
934
935         * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
936           stream after writing the dataset. This fixes bug #52581.
937           Also added several writer.Close into finally blocks, so writers are properly
938           closed in case of an exception.
939
940 2004-03-12  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
941
942         * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
943         * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
944         * ColumnTypeConverter.cs: Added stub
945         * DefaultValueTypeConverter: Added stub
946         * ConstraintConverter.cs: Added stub
947
948 2004-03-04 Eran Domb <erand@mainsoft.com>
949
950         * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
951         in MS.NET documentation (missing DataSet element etc).
952
953 2004-03-04 Eran Domb <erand@mainsoft.com>
954
955         * Node.cs : Added.
956         * Index.cs : Rollback last changes.
957         
958 2004-03-03  Atsushi Enomoto <atsushi@ximian.com>
959
960         * Index.cs : justa build fix.
961
962 2004-03-03 Eran Domb <erand@mainsoft.com>
963         
964         * Index.cs : Added.
965         * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
966         DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
967         This changes made for performance improvement.
968
969 2004-02-08 Eran Domb <erand@mainsoft.com>
970
971         * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
972
973 2004-02-08 Eran Domb <erand@mainsoft.com>
974
975         * DataSet.cs: Fix some bugs in ReadXml().
976
977 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
978
979         * DataSet.cs: Added missing method that broke the build.
980
981 2004-02-04 Eran Domb <erand@mainsoft.com>
982
983         * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
984         better performance.
985         * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
986         when all column are attributes (elements count is 0), we still want to add the relations. No relations
987         can be on simple contents.
988         (AddUniqueConstraints) Check that the column of the constraint are not hidden.
989         (AddForeignKeys) Check that the relation has constraints attach to it.
990         * XmlConstants.cs : Added constant.
991
992 2004-02-04 Eran Domb <erand@mainsoft.com>
993         
994         * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
995         DoWriteXmlSchema calls BuildSchema ().
996
997 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
998
999         * DataRow.cs: Added SetOriginalValue(), which is used to set the original
1000           value of a column.
1001         * DataRowCollection.cs: In InsertAt(), perform the correct checks and
1002           attach the row.
1003         * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
1004           also be added to the dataset.
1005           In WriteTable(), do not write unchanged rows when writing the original
1006           version of the table.
1007           Added WriteIndividualTableContent(), for writing the contents of a single
1008           table.
1009           Changed BuildSchema and related methods, so it can generate a schema for
1010           any set of tables, not just the tables of the dataset (needed for 
1011           single datatable serialization).
1012         * DataTable.cs: Implemented serialization constructor and GetObjectData method.
1013           Also implemented some ReadXmlSchema methods.
1014         * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
1015           instead of loading the full dataset in an XmlDocument. It is faster and
1016           saves memory. Also fixed several problems when generating the changes.
1017         * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
1018           table serialization).
1019
1020 2004-02-02 Eran Domb <erand@mainsoft.com>
1021
1022         * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
1023         Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
1024         * DataTable.cs (NewRow): Create only one DataRowBuilder.
1025         Initiate new row with row id -1.
1026         * DataRow.cs : Add RowId property.
1027         * DataRowBuilder.cs : Add _rowId member.
1028         * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
1029
1030 2004-01-26 Eran Domb <erand@mainsoft.com>
1031
1032         * XmlConstants.cs : Added some constants.
1033         * DataColumn.cs : Added a method to retrive AutoIncrement value.
1034         * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
1035         parent table column.
1036         * XmlDiffLoader.cs : Convert the value comming from the xml.
1037         * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
1038          (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
1039          (ReadXmlSchemaElement) : Set the locale of the dataset.
1040          (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
1041          (GetColumnType) : New method to get the column type from the attribute value.
1042          (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
1043          and add the constraint to the table.
1044          (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
1045          the table.
1046         * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
1047          Writing more information to the schema for interoperability with ms.net.
1048          Improve diffgarm writing mode.
1049          
1050
1051 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
1052
1053         * TypedDataSetGenerator.cs : Implemented GenerateIdName().
1054
1055 2004-01-21 Eran Domb <erand@mainsoft.com>
1056
1057         * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
1058         Do not set the child column to be AutoIncrement.
1059         Create the new column for the relation as MappingType.Hidden so they will not be serialized
1060         when writing the dataset to xml.
1061
1062 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
1063
1064         * Added missing TypedDataSetGenerator.cs.
1065
1066 2004-01-08 Eran Domb <erand@mainsoft.com>
1067
1068         * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
1069         * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram, 
1070         InferSchema, ReadSchema and IgnoreSchema.
1071         * XmlDataLoader.cs : All modes use the same logic.
1072         * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
1073
1074 2004-01-06 Eran Domb <erand@mainsoft.com>
1075
1076         * DataRelationCollection.cs : Use IndexOf in indexer.
1077         * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
1078         * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
1079         * XmlDiffLoader.cs : Reading nested tables.
1080         * XmlSchemaMapper.cs : Reading the relation.
1081         * XmlConstants.cs : Adding some constants.
1082
1083 2004-01-05  Jackson Harper <jackson@ximian.com>
1084
1085         * DataView.cs: Set readonly property of property descriptor. This
1086         fixes bug #52598.
1087         
1088 2004-01-01  Sanjay Gupta <gsanjay@novell.com>
1089
1090         * DataRelationCollection.cs : Fixed incorrect generation of default 
1091           Relation name.
1092         * DataSet.cs : Added missing functionality in WriteXml().
1093         * XmlConstants.cs : Added new constants.
1094  
1095 2003-12-27  Atsushi Enomoto <atsushi@ximian.com>
1096
1097         * DataSet.cs : Fixed incorrect WriteXml() signature.
1098
1099 2003-12-18  Jackson Harper <jackson@ximian.com>
1100
1101         * DataView.cs: Implement AddNew, Delete, and OnListChanged.
1102         
1103 2003-12-17  Atsushi Enomoto <atsushi@ximian.com>
1104
1105         * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
1106           they take shape of xml. This fixed bug #52240
1107
1108 2003-12-16  Tim Coleman <tim@timcoleman.com>
1109         * KeyRestrictionBehavior.cs:
1110                 New stubs added for .NET 1.2
1111         * DataTable.cs:
1112                 Changes for 1.2
1113
1114 2003-12-08 Eran Domb <erand@mainsoft.com>
1115         * DataColumn.cs (Expression) : Validate the expression.
1116         
1117         * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
1118         (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
1119         
1120         * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
1121         (RejectChanges) : Detach row when state was Added.
1122         (CollectionChanged) : Fix a bug.
1123         
1124         * ExpressionElement (ValidateExpression) : Fix a bug.
1125         
1126         * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
1127         a parent row in the parent table.
1128         (_validateColumns) : Fix bugs.
1129         
1130         * MergeManager.cs (AdjustSchema) : Fix a bug.
1131         
1132         * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
1133         between the tables.
1134
1135 2003-11-30 Eran Domb <erand@mainsoft.com>
1136         * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
1137         (Add) : Find if the new column name is the same as the one found in IndexOf.
1138         (IndexOf) : New method.
1139         (Contains) : Use new IndexOf.
1140         (IndexOf) : Use new IndexOf.
1141         
1142         * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
1143         (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
1144         
1145         * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
1146         (Delete) : Detach row if the RowState was Added.
1147         (GetChildRows) : Get the array form the ChildTable.
1148         (GetParentRows) : Get the array from the ParenTable.
1149         
1150         * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
1151         
1152         * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
1153         
1154         * DataTable.cs (PrimaryKey) : Fix bugs.
1155         (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
1156         
1157         * DataTableCollection.cs (Add) : Fix a bug.
1158         
1159         * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
1160         (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
1161         Some code style changes (tab instead of whit spaces, alignment, etc...).
1162         
1163         * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
1164         
1165         * MergeManager.cs (AdjustSchema) : Fix a bug.
1166         
1167         
1168
1169 2003-11-26  Miguel de Icaza  <miguel@ximian.com>
1170
1171         * DataSet.cs: Add a few more missing methods, code style updated
1172         to Mono style.
1173
1174 2003-11-26  Tim Coleman <tim@timcoleman.com>
1175         
1176         * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
1177         * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
1178         * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
1179         * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
1180         * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
1181         * ResultSetSensitivity.cs StatementCompletedEventArgs.cs 
1182         * StatementCompletedEventHandler.cs UpdateOptions.cs:
1183                 New classes added for NET_2_0
1184         * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
1185         * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
1186                 Modifications to add new NET_2_0 functions
1187
1188 2003-11-25  Tim Coleman <tim@timcoleman.com>
1189         * IDataSources.cs:
1190                 New 1.2 class added
1191
1192 2003-11-21  Pedro Martínez Juliá  <yoros@wanadoo.es>
1193
1194         * DataRow.cs: Detached row can be accesible (new rows from data
1195         table are detached). Closes but #51263.
1196
1197 2003-11-19  Eran Domb  <erand@mainsoft.com>
1198         * DataRow.cs : Throw exceptions if Row is Detached. 
1199         (EndEdit) : Check that we are not in middle of ChangeEvent.
1200         (AcceptChanges) : Detach the row.
1201         
1202         * DataRelation.cs : throw correct exception.
1203         *UniqueConstraint.cs : throw correct exception.
1204         
1205
1206 2003-11-09  Pedro Martínez Juliá  <yoros@wanadoo.es>
1207
1208         * DataRow.cs: Use RemoveInternal instead of Remove because the last
1209         one uses Delete and AcceptChanges.
1210
1211         * DataRowCollection.cs: When removing, Delete and AcceptChanges
1212         method from the row are called. Added an internal method that will
1213         be used by DataRow to "physically" remove the row from the list.
1214
1215 2003-11-09  Pedro Martínez Juliá  <yoros@wanadoo.es>
1216
1217         * DataRowCollection.cs: To follow the specification: Remove and
1218         RemoveAt should remove the row. But needed to call DeletingDataRow
1219         to prepare the deleting.
1220
1221         * DataRow.cs: Don't call DeletingDataRow when it is called by the
1222         method Table.Rows.Remove.
1223
1224 2003-11-09  Pedro Martínez Juliá  <yoros@wanadoo.es>
1225
1226         * DataRowCollection.cs: Make the row be deleted by itself. If not,
1227         it fails because we need to call OnRowDeleting and OnRowDeleted. It
1228         is full implemented inside DataRow.
1229
1230 2003-11-05  Eran Domb  <erand@mainsoft.com>
1231         * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
1232
1233 2003-11-04  Eran Domb  <erand@mainsoft.com>
1234         * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
1235         on all Relations.
1236         (GetChildRows) : Adding some checks.
1237         (GetParentRows) : Adding some checks. Fix a bug in implementation.
1238         (SetParentRow) : Added implementation.
1239         
1240         * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
1241         * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
1242         * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
1243         * MergeManager.cs : Check that the target table is not null.
1244
1245 2003-10-27  Eran Domb  <erand@mainsoft.com>
1246         * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value 
1247         can be converted to the column type.
1248         
1249         * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
1250         
1251         * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
1252         (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
1253         
1254         * DataRowCollection.cs (Add) : Fixing a bug. 
1255         (Clear) : Before clearing the array check that there is no violation of FK constraint.
1256         
1257         * DataSet.cs (Prefix) : If value is null chage it to empty string.
1258         (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
1259         
1260         * ExpressionElement : Adding support for IN expresion.
1261         
1262         * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
1263         (Select) : Adding support for DataViewwRowState.
1264         
1265         * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
1266         
1267         * MergeManager.cs (MergeRow) : Fix bugs.
1268         
1269 2003-10-27  Eran Domb  <erand@mainsoft.com>
1270         * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
1271         check null values when ending loading data.
1272         
1273         * DataSet.cs (RejectChanges) : Imlementation.
1274         (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null, 
1275         change it to empty string.
1276         
1277         * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
1278         
1279 2003-10-22  Eran Domb  <erand@mainsoft.com>
1280         * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
1281         
1282         * ConstraintCollection.cs (RamoveAt): Change implemntation.
1283         
1284         * DataTableCollection (CanRemove): Removing cast to Constraint.
1285
1286 2003-10-22  Eran Domb  <erand@mainsoft.com>
1287         * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
1288         (Clear): The collection was cleared without removing the relation from the parent and child tables.
1289         
1290         * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
1291         (HasChanges, Reset): Imlementation.
1292         
1293         * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.\r
1294         This is because the we do not no when to turn off the flag.
1295         (Locale): Changing implementation to behave like ADO.NET.
1296         (AcceptChanges): Fix bug.
1297         (Clear): Check that this table is not referenced from a foreign key constraint.
1298         (Copy): Do not try to access a deleted row.
1299         (CopyProperties): Copy the PrimaryKey.
1300         (GetChanges, ImportRow): Implementation.
1301         (LoadDataRow): Adding implementation if the table has PrimaryKey.
1302         (ToString): Changing implementation to behave like ADO.NET.
1303         
1304         * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
1305         
1306         * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
1307         (HasErrors): Implementation.
1308         (Delete): Added checking for child rows of the deleted row.
1309         (EndEdit): Added checking for child row and firing events.
1310         (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
1311         (GetColumnsInError): Added a check for null values in column error.
1312         (HasVersion): Added special treatment for special RowState.
1313         (CollectionChanged): More checks to avoid NullReferenceException.
1314         
1315         * DataRowCollection.cs (Remove): Fix a bug.\r
1316
1317
1318 2003-10-01  Duncan Mak  <duncan@ximian.com>
1319
1320         More patches from Eran Domb <erand@mainsoft.com>.
1321
1322         * MergeManager.cs: New file.
1323
1324         * DataRelationCollection.cs (AddCore): Check that a
1325         UniqueConstraint is already exists. It loops over the Relations
1326         instead of the Constraints.
1327         (Add, AddCore): The relation was added twice.
1328
1329         * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.      
1330
1331 2003-09-30  Duncan Mak  <duncan@ximian.com>        
1332
1333         Patches from Eran Domb <erand@mainsoft.com>.
1334
1335         * DataRelation.cs (constructor): When the name of the relation is
1336         null, it should return an empty, not "Relation".
1337         
1338         * DataRow.cs (AcceptChanges): Added special case for
1339         RowState.Detached.
1340         (CancelEdit): Set editing flag to false.
1341         (IsNull): Check that the value is DBNull.
1342
1343         * DataRowCollection.cs (Add): There was no check that the table of
1344         the collection is owned by a DataSet.
1345
1346         * DataSet.cs (OnMergeFailed): Added.    
1347
1348         * UniqueConstraint.cs (AssertConstraint): There was no check that
1349         values in the row are not null, where it is a primary key
1350         column. Also check that the row has a proposed version, if not,
1351         get the current version when we compare the rows.
1352
1353 2003-09-25  Duncan Mak  <duncan@ximian.com>
1354
1355         Patches from Eran Domb <erand@mainsoft.com>.
1356
1357         * DataColumn.cs (Unique): Implemented.
1358         
1359         * DataTable.cs:
1360         * ConstraintCollection.cs:
1361         * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
1362         an Exception thrown. Details:
1363         http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
1364         
1365         * DataRowCollection.cs (Add): There is no checking that there is
1366         no violation of the unique constrains.
1367
1368         * UniqueConstraint.cs (AssertConstraint): There is no checking on
1369         all columns in the constraint.
1370
1371         * DataTableCollection (Add): Correctly throw an Exception, more
1372         details here:
1373         http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
1374         (Remove, RemoveAt): Implemented.
1375
1376 2003-07-31  Duncan Mak  <duncan@ximian.com>
1377
1378         * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
1379
1380 2003-07-25  Ravi Pratap  <ravi@ximian.com>
1381
1382         * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
1383         method on a delegate is disallowed - fix this.
1384
1385 2003-07-22  Lluis Sanchez Gual  <lluis@ximian.com>
1386
1387         * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
1388           xml serialization. Modified method of writing schema. Now it creates
1389           a XmlSchema object and serializes it using XmlSerializer.
1390         * XmlConstants.cs: Added constants for data type names.
1391         * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
1392           type specified in the column.
1393
1394 2003-04-20  Alan Tam <Tam@SiuLung.com>
1395
1396         * DataRelationCollection.cs: Fix a bug that prevent relations
1397         from being added via DataSet.
1398
1399 2003-04-12  Ville Palo <vi64pa@kolumbus.fi>
1400
1401         * UniqueConstraint.cs: one tiny fix.
1402         
1403 2003-04-05  Ville Palo <vi64pa@kolumbus.fi>
1404
1405         * DataTable.cs: Remove UniqueConstraints when adding new ones
1406         
1407 2003-04-04  Ville Palo <vi64pa@kolumbus.fi>
1408
1409         * DataColumnCollection.cs: Little 'case sensitive' fix
1410         
1411 2003-04-04  Ville Palo <vi64pa@kolumbus.fi>
1412
1413         * DataRow.cs: AutoIncrement handling to Constructor
1414         * DataRowCollection.cs: This doesnt need anymore AutoIncrements
1415         
1416 2003-03-27  Ville Palo <vi64pa@kolumbus.fi>
1417
1418         * DataTable.cs: Some fixes to PrimaryKey etc...
1419         * UniqueConstraint.cs: Little clean up
1420         
1421 2003-03-27  Ville Palo <vi64pa@kolumbus.fi>
1422
1423         * DataTable.cs: Tiny fix to ToString () -method
1424         
1425 2003-03-27  Ville Palo <vi64pa@kolumbus.fi>
1426
1427         * ConstraintCollection.cs: Little fix.
1428         * DataColumn.cs: Added new internal method SetUnique()
1429         * UniqueConstraint.cs: some little fixes
1430         
1431 2003-03-26  Ville Palo <vi64pa@kolumbus.fi>
1432
1433         * DataRowCollection.cs: Bugfixes, implementation,...
1434         
1435 2003-03-26  Ville Palo <vi64pa@kolumbus.fi>
1436
1437         * DataColumn.cs: If DataType if set to something else than short, int
1438         or long and AutoIncrement is true, AutoIncrement is must set to false.
1439         
1440 2003-03-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1441
1442         * DataRow.cs:
1443         (BeginEdit): fixed array bound problem when a column has been added.
1444         (EndEdit): just assign proposed to current as proposed is set to null.
1445         This also fixes another array boudn problem.
1446
1447 2003-03-21  Alan Tam <Tam@SiuLung.com>
1448
1449         * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
1450         EndEdit and AcceptChanges to act correctly according to DataRowState
1451         and DataRowVersion.
1452         * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
1453         attached and detached from the collection.
1454
1455 2003-03-20  Alan Tam <Tam@SiuLung.com>
1456
1457         * DataColumn.cs: Store empty string for Expression when null is passed in.
1458         Classes generated by XSD.exe passes null by default.
1459
1460 2003-03-16  Ville Palo <vi64pa@kolumbus.fi>
1461
1462         * DataColumnCollection.cs: Tiny clean up
1463
1464 2003-03-16  Ville Palo <vi64pa@kolumbus.fi>
1465
1466         * DataColumn.cs: little fixes.
1467         * DataColumnCollection.cs: Lots of little fixes and improvments.
1468         
1469 2003-03-12  Alan Tam <Tam@SiuLung.com>
1470
1471         * DataSet.cs: Fixed a bug that the file written does not close correctly.
1472
1473 2003-03-08  Alan Tam <Tam@SiuLung.com>
1474
1475         * DataRelationCollection.cs: Removed the mis-overridden methods
1476         * DataRow.cs: Fixed an attribute
1477         * DataSet.cs: Fixed the modifiers
1478
1479 2003-03-06  Aleksey Demakov <avd@openlinksw.com>
1480
1481         * DataTableCollection.cs: The Contains (string name),
1482         IndexOf (string name) methods, and item[string name] indexer
1483         now behave more like .NET with respect to case-sensitivity.
1484         That is if there is an exactly matching item then this one is used.
1485         If there is only one item differing in case then it used.
1486         If there are more than one item differing in case then
1487         Contains returns false, IndexOf returns -1, and item[]
1488         throws an ArgumentException.
1489
1490 2003-02-28  Ville Palo <vi64pa@kolumbus.fi>
1491
1492         * ExpressionElement.cs: More implementation. 
1493         
1494 2003-02-28  Alan Tam <Tam@SiuLung.com>
1495         * DataSet.cs: Changed WriteTable so that it now calls the newly written
1496         WriteObjectXml to direct the call to the respective XmlConvert method.
1497         This fixes the wrong format written to XML files of bool, float,
1498         double, DateTime and TimeSpan types.
1499
1500 2003-02-25  Alan Tam <Tam@SiuLung.com>
1501
1502         * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
1503         * DataRelationCollection.cs: Implemented AddRange and Contains.
1504         Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
1505         Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
1506         Reimplemented most Add methods to eliminate duplicated checks.
1507         Centralized RelationName generation procedure in GetNextDefaultRelationName.
1508
1509 2003-02-25  Alan Tam <Tam@SiuLung.com>
1510
1511         * DataColumn.cs: Fixed wrong storage representation of Expression
1512         (using empty string instead of null) so that ToString() returns nothing.
1513         * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
1514         auto column naming now works as expected. Reimplemented some Add methods
1515         to eliminate code duplication.
1516
1517 2003-02-19  Ville Palo <vi64pa@kolumbus.fi>
1518
1519         * DataTable.cs: DataTable.CaseSensitive follows parent 
1520         DataSet.CaseSensitive property if DataTable.CaseSensitive has never
1521         been changed directly from DataTable
1522         
1523 2003-02-19  Ville Palo <vi64pa@kolumbus.fi>
1524
1525         * DataSet.cs: When CaseSensitive property is changed all of the Tables
1526         of DataSet have to change too
1527         
1528 2003-02-19  Daniel Morgan <danmorg@sc.rr.com>
1529
1530         * InternalDataCollectionBase.cs: revert change to field
1531         to fix build
1532         
1533         * DataViewManager.cs
1534         * DataView.cs
1535         * DataTable.cs
1536         * DataSet.cs: commented use of DesignerAttribute
1537         because it broke the build.  According to MSDN,
1538         DesignerAttribute does not have a zero-argument constructor
1539
1540 2003-02-18  Ville Palo <vi64pa@kolumbus.fi>
1541
1542         * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
1543         
1544 2003-02-18  Alan Tam <Tam@SiuLung.com>
1545
1546         * DataRow.cs: Implemented GetParentRow and GetParentRows.
1547         * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
1548                       OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
1549                       RaisePropertyChanging.
1550         * DataTable.cs: Implemented NewRowArray.
1551         * DataTablePropertyDescriptor: Fixed a modifier.
1552         * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
1553         * PropertyCollection.cs: Minor fix.
1554         * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs 
1555         * DataRelation.cs DataRelationCollection.cs DataRow.cs
1556         * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
1557         * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
1558         * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
1559         * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
1560         * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
1561         
1562 2003-02-08  Ville Palo <vi64pa@koti.soon.fi>
1563
1564         * ExpressionElement.cs: More implementation
1565         
1566 2003-02-05  Alan Tam <Tam@SiuLung.com>
1567
1568         * DataSet.cs: Added framework for DataSet.Update Implemented missing 
1569         methods GetSchemaSerializable, GetSerializationData, 
1570         ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
1571         for DataSet
1572         * DataTable.cs: Implemented missing methods CreateInstance and 
1573         GetRowType for DataTable
1574         
1575 2003-02-03  Ville Palo <vi64pa@koti.soon.fi>
1576
1577         * DataSet.cs: Implemented private method MapType for 
1578         mapping datatypes for XmlSchema
1579         
1580 2003-02-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1581
1582         * DataView.cs: implemented Dispose.
1583
1584 2003-01-30  Ville Palo <vi64pa@koti.soon.fi>
1585
1586         * ExpressionElement.cs: Added new file. This file is for parsing
1587           and DataData.Select () -methods and DataColumn.Expression -property
1588         * DataTable.cs: Implemented Select(string) -method      
1589         
1590 2003-01-28  Ville Palo <vi64pa@koti.soon.fi>
1591
1592         * DataSet.cs: One little fix to writing xml
1593         
1594 2003-01-27  Ville Palo <vi64pa@koti.soon.fi>
1595
1596         * XmlSchemaMapper.cs: Some fixes.
1597         * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
1598
1599                 
1600 2003-01-24  Ville Palo <vi64pa@koti.soon.fi>
1601
1602         * UniqueConstraint.cs: Do not set columns Unique property true 
1603         as a default.
1604         * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
1605         
1606 2003-01-18  Ville Palo <vi64pa@koti.soon.fi>
1607
1608         * DataTableCollection.cs: Now names new DataTable if it doesn't 
1609         already have a name.
1610         
1611 2003-01-17  Ville Palo <vi64pa@koti.soon.fi>
1612
1613         * XmlSchemaMapper.cs: Improvments.
1614         * XmlConstaints.cs: Added more constants.
1615         * DataSet.cs: Improvments of reading and writing xml
1616         * DataColumn.cs: Added default values of properties.
1617                 
1618 2003-01-14  Ville Palo <vi64pa@koti.soon.fi>
1619
1620         * XmlSchemaMapper.cs: Some improvments
1621         
1622 2003-01-13  Ville Palo <vi64pa@koti.soon.fi>
1623
1624         * DataRowCollection.cs: Added IndexOutOfRangeException
1625         * DataTableCollection.cs: Added OnCollectionChanging and 
1626         OnCollectionChanged events.
1627         * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
1628         * DataTable.cs: Implemented Copy () and Clone () methods.
1629         * XmlDataLoader.cs: some fixes.
1630         * XmlSchemaMapper.cs: comments.
1631         
1632 2003-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1633
1634         * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
1635
1636 2003-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1637
1638         * DataColumnPropertyDescriptor.cs: fixed typo.
1639         * DataViewManagerListItemTypeDescriptor.cs: added new internal property
1640         to get the DataViewManager and removed TablePD class.
1641         * DataTablePropertyDescriptor.cs: TablePD class is now this one as
1642         suggested by danmorg.
1643
1644 2003-01-06  Ville Palo <vi64pa@koti.soon.fi>
1645
1646         * XmlDataLoader.cs: Moved diffgram stuff to new internal class
1647         XmlDiffLoader.
1648         * XmlDiffLoader.cs: new class for diffgrams. Added handling of 
1649         diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
1650         
1651 2003-01-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1652
1653         * DataView.cs: made dataViewManager internal.
1654         * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
1655         properties of the object, but the values of the columns present in a
1656         row.
1657         
1658         * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
1659         which returns a PropertyDescriptorCollection. Created a new class
1660         derived from PropertyDescriptor that treats Table as an object whose
1661         properties are DataRowView.
1662
1663 2003-01-04  Ville Palo <vi64pa@koti.soon.fi>
1664
1665         * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
1666         
1667 2003-01-04  Ville Palo <vi64pa@koti.soon.fi>
1668
1669         * DataColumn.cs: ExtendedProperties is by default !null-
1670         
1671 2003-01-04  Ville Palo <vi64pa@koti.soon.fi>
1672
1673         * DataColumnCollection.cs: Add (DataColumn Column) -method didn't 
1674         set column's ordinal.
1675         
1676 2003-01-02  Ville Palo <vi64pa@koti.soon.fi>
1677
1678         * DataSet.cs: 
1679         * XmlDataLoader.cs: XmlReader closing fixes.
1680         * XmlSchemaReader.cs: Added support for ref=
1681         
1682 2003-01-01  Ville Palo <vi64pa@koti.soon.fi>
1683
1684         * DataSet.cs: 
1685           - Added XmlReader and XmlWriter Closing.
1686           - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
1687         * XmlSchemaMapper.cs
1688           - Much better way IMHO  to map xmlschema than the old one in 
1689             DataSet.cs. Its, more flexible, cleaner, ...
1690                         
1691 2002-12-29  Ville Palo <vi64pa@koti.soon.fi>
1692
1693         * XmlDataLoader.cs: Reading diffgrams.
1694         
1695 2002-12-29  Ville Palo <vi64pa@koti.soon.fi>
1696
1697         * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
1698         * DataTable.cs: Added ChanginDataColumn () for triggering 
1699         DataColumnChanging event
1700         
1701 2002-12-28  Ville Palo <vi64pa@koti.soon.fi>
1702
1703         * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
1704         
1705 2002-12-28  Ville Palo <vi64pa@koti.soon.fi>
1706
1707         * DataSet.cs: Indentations to WriteXml ()
1708         
1709 2002-12-27  Ville Palo <vi64pa@koti.soon.fi>
1710
1711         * DataSet.cs:
1712         * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
1713         class XmlDataLoader.cs
1714         
1715 2002-12-19  Ville Palo <vi64pa@koti.soon.fi>
1716
1717         * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
1718         
1719 2002-12-18  Ville Palo <vi64pa@koti.soon.fi>
1720
1721         * DataSet.cs: Started to implement ReadXml-methods.
1722         
1723 2002-12-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1724
1725         * DataSet.cs: implemented DefaultViewManager and GetList.
1726
1727         * DataViewManager.cs: a bit of work on IList and ITypedList needed by
1728         DataList in System.Web.
1729
1730         * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
1731         DataViewManager.
1732
1733 2002-12-16  Ville Palo <vi64pa@koti.soon.fi>
1734
1735         * DataRow.cs
1736         * DataTable.cs: Fixed NullException (rollback -event)
1737         * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
1738         
1739 2002-12-15  Ville Palo <vi64pa@koti.soon.fi>
1740
1741         * DataRow.cs:
1742         * DataRowCollection.cs: Moved event triggering from DataRow to
1743         DataRowCollection.
1744         
1745 2002-12-09  Ville Palo <vi64pa@koti.soon.fi>
1746
1747         * DataSet.cs: Little fix to WriteTable () -method 
1748         and DoReadXmlSchema () -method.
1749         
1750 2002-12-06  Ville Palo <vi64pa@koti.soon.fi>
1751
1752         * DataSet.cs: Clean up to reading xmlschema. This looks much better 
1753         now (work better too), but it not working correctly yet.
1754         
1755 2002-12-04  Ville Palo <vi64pa@koti.soon.fi>
1756
1757         * DataRow.cs: 
1758         * DataRowCollection.cs: Added some event handlins stuff.
1759         * DataSet.cs: Some fixes.
1760         * DataTable.cs: Added event handlers.
1761         
1762 2002-11-30  Ville Palo <vi64pa@koti.soon.fi>
1763
1764         * DataRowChangeEventArgs.cs: Implemented Action and Row properties 
1765         
1766 2002-11-30  Ville Palo <vi64pa@koti.soon.fi>
1767
1768         * System.Data/DataRow.cs: Added internal property XmlDataID
1769         
1770 2002-11-29  Ville Palo <vi64pa@koti.soon.fi>
1771
1772         * DataSystem.Data.DataTableCollection.cs:
1773         Removed HashTable. There could be situations where DataTable
1774         is added to collection before it hava TableName. So using 
1775         HashTable is impossible.
1776         
1777 2002-11-19  Carlos Guzmán Álvarez <carlosga@telefonica.net>
1778
1779         * DataRow.cs: an object that is equal to null 
1780         should be allowed to be set in this indexer too
1781         to be like .NET
1782
1783 2002-11-06  Daniel Morgan <danmorg@sc.rr.com>
1784
1785         * DataColumnPropertyDescriptor.cs: added file
1786         
1787         * System.Data/DataRowView.cs: started implementation
1788         
1789         * DataTable.cs: stubbed more interfaces.  Implemented
1790         IListSource.GetList()
1791         
1792         * DataView.cs: stubbed more interfaces.  Implemented
1793         some properties and methods: GetEnumerator(), 
1794         ITypedList.GetItemProperties, Item indexer, CopyTo()
1795
1796 2002-05-18  Nick Drochak  <ndrochak@gol.com>
1797
1798         * DataRow.cs: Fix typo.