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