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