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