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