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