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