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