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