1 2004-10-03 Atsushi Enomoto <atsushi@ximian.com>
3 * DataSet.cs : Attribute constraint field XPath must be written as
4 @blah. This fixes bug #66366.
6 2004-09-28 Umadevi S <sumadevi@novell.com>
7 * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
9 2004-09-24 Sureshkumar T <tsureshkumar@novell.com>
11 * DataSet.cs : Don't check constraints for dataset clear
12 * DataRowCollection.cs : check for EnforceConstraints flag
13 before checking foriegn key constraints in Clear method
14 * DataTable.cs : Redundant checking removed in Clear method as it is
15 checked in DataRowCollection.Clear method.
18 2004-09-19 Sureshkumar T <tsureshkumar@novell.com>
19 * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
20 hence, adding a row cache is necessary if the original row happens to be current.
23 2004-08-23 Martin Baulig <martin@ximian.com>
25 * XmlDataInferenceLoader.cs (Driver): Make this class internal,
28 2004-08-18 Umadevi S <sumadevi@novell.com>
29 * DataView.cs - Completed most of the event handling.
30 Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
31 Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
32 * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
34 2004-08-06 Atsushi Enomoto <atsushi@ximian.com>
36 * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
38 2004-08-05 Atsushi Enomoto <atsushi@ximian.com>
40 * XmlConstants.cs : Added constants for "msprop" support.
41 * DataSet.cs : ExtendedProperties should be written in the schema.
42 This fixes bug #61233.
44 2004-07-27 Atsushi Enomoto <atsushi@ximian.com>
46 * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
47 used. There were also some culture dependency problems to write int.
49 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
51 * XmlDataInferenceLoader.cs : It was not always filling relation
52 child table information correctly. This fixes bug #60742.
54 2004-06-23 Umadevi S <sumadevi@novell.com>
55 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
57 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
59 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
60 schema is inside the document element (as created in XmlWriteMode
61 .WriteSchema), it should read schema from that non-document element.
62 This fixes one case reported in bug #60470.
64 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
66 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
67 inference target. For bug #60470. (MS does not support schema
68 document inference and results in unconsistent dataset structure.)
70 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
72 * DataTableCollection.cs : reset the table's DataSet to null when
73 removing a table from this collection.
74 * DataTable.cs : When Namespace is not specified explicitly, its
75 Namespace property reflects DataSet's Namespace if exist.
76 This fixes bug #60469.
78 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
80 * DBConcurrentcyException.cs: CRLF to LF
81 * DataViewSetting.cs: CRLF to LF
83 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
85 * DataViewSetting.cs: renamed fields to match MS.NET
87 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
89 * DBConcurrencyException.cs: fixed serialization compatibility with
92 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
94 * ChangeLog : Fix for misspelled words.
96 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
98 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
100 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
103 - Table stores default values for columns in special default values row.
104 It is allocated once (in NewRow).
105 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
106 - OnRemoveColumn has nothing to perform by now.
108 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
111 - Changed access of original, current and proposed indexes to internal.
112 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
113 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
114 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
115 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
116 Care about Null and DBNull values is now in DataContainer.
117 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
118 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
119 - Fix in CopyState : clone column errors.
120 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
122 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
124 * DataColumnCollection.cs :
125 - Fix : Add() now delegates to Add(DataColumn).
126 - autoIncrement list holds DataColumn objects, and not just column names.
128 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
131 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
132 - DefaultValue fixes. Default value from now on is also stored in special record in
133 DataTable, so we're able to set default value for the column faster (typed).
136 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
138 * DataSet.cs : children of non-root rows were not properly written.
141 2004-06-10 Umadevi S <sumadevi@novell.com>
142 * DataRelation.cs - Constructor
143 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
145 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
147 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
149 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
151 * Constraint.cs: marked methods internal to fix public API
152 * ConstraintCollection.cs: to fix public API, use
153 DataTable.fInitInProgress to check whether initialization
154 of DataTable is in progress
155 * DataColumn.cs: added stubs for missing methods
156 * DataRowBuilder.cs: marked Table property internal to
158 * DataSet.cs: removed extra empty destructor, marked
159 OnMergeFailed internal to fix public API
160 * DataTable.cs: use fInitInProgress field to hold init
161 status, to match MS.NET
162 * DataView.cs: added missing attributes on IsOpen
164 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
166 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
167 in XmlNamespaceManager.
169 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
171 * DataSet.cs : complex table content child was not properly added
172 when it is the only one child in the parent table. Fixed bug #53959.
174 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
175 * DataTableTypeConverter.cs: added
176 * DataView.cs: added missing attribute on Table property
177 * DataViewManager.cs: moved attribute to correct property
178 * UniqueConstraint.cs: removed extra ReadOnly attribute from
179 IsPrimaryKey property
181 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
183 * DataRow.cs : ColumnsChanged event is not required in .ctor().
185 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
187 * XmlDataReader.cs : type change is required before setting value
190 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
192 * DataSet.cs : Loop-break of the last fix was incorrect.
194 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
196 * DataSet.cs : When a row has no parent row but the table has parent
197 relation(s), that row had been always ignored.
199 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
201 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
202 rejected same-named tables in different hierarchy. Thanks to Boris.
204 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
206 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
207 infinite loop. Thanks to Boris for this fix.
209 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
211 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
212 Thanks to Boris for this fix.
214 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
216 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
217 for ReadXml(). Thanks to Boris.
219 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
221 - CheckReadOnlyStatus : use typed (and faster comparing).
222 - EndEdit : bug fix - do not dispose record if it holds original version.
223 - SetValuesFromDataRecord : Take care about autoincrement columns.
226 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
228 * MergeManager.cs : don't output debug message to Console.
230 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
232 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
233 structure. Thanks to Boris Kirzner for the fix.
235 2004-05-27 Umadevi S <sumadevi@novell.com>
236 * DataRelationCollection.cs - fixed nunit test errors
238 2004-05-27 Umadevi S <sumadevi@novell.com>
239 * DataTableCollection.cs - fixed nunit test errors
241 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
243 * DataColumnCollection.cs : NullReferenceException was thrown when
244 the table was not found.
245 * DataRowCollection.cs :
246 Find() just returns null for null value under MS.NET 1.1.
247 RemoveAt() should also avoid to call AcceptChanges() like Remove().
248 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
249 directly under MS.NET (for nunit test).
251 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
253 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
254 caused problem on qualified name to get schema Field name.
256 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
258 * XmlDataReader.cs : Now data reader is namespace aware in all places.
259 When table's namespace is different, it entered to infinite loop.
261 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
262 * MergeManager.cs : AdjustSchema now updates by reference new created table,
263 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
266 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
268 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
269 * DataColumnCollection.cs : fixed parantethes.
271 - AcceptChanges : do nothing if row state is unchanged.
272 - GetChildRows, GetParentRows : bug fix (use correct index).
273 * DataRowCollection.cs : bug fix (compare all row's values).
274 * DataTable.cs : bug fix (use correct row version).
276 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
278 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
279 When content type is Mixed, text column is not required (it is
280 required only when the complex type has no particle).
281 "Repeated element" column is also created (considering maxOccurs=0
282 and complex content extension).
284 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
286 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
289 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
291 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
292 Fixed relation inference to consider attribute XPath.
294 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
296 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
299 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
301 * DataColumn.cs - removed default member attribute.
303 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
306 DataColumnChangeEventArgs.cs,
307 DataColumnCollection.cs,
309 DataRowCollection.cs,
311 Index.cs : Data storage in the row is redesigned. Now data is stored in
312 typed containers inside DataColumn. Row holds its versions as indexes inside
313 each of data container, accessed through the row that holds it.
315 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
317 * UniqueConstraint.cs - added comment.
319 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
321 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
324 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
327 XmlDataInferenceLoader.cs,
329 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
330 XmlEncode every local name to write. This should fix bug #58268.
332 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
334 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
335 Supported repeated elements. Removed MonoTODOs.
336 * XmlDataInferenceLoader.cs : Design change to support ignored
337 namespace and repeated elements.
338 * XmlSchemaDataImporter.cs : Added mapping support classes.
340 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
342 * CustomDataClassGenerator.cs :
343 Added property parent "[foo]Row" and children "Get[foo]Row" support
344 for custom DataRow classes.
345 Fixed DataColumn property accessibility (public --> internal).
347 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
349 * CustomDataClassGenerator.cs :
350 - Put classes inside custom DataSet class.
351 - Added automatic DataRelation creation support.
352 - Added Constraints creation support. That is done separate from
353 relations, since they might be independently created.
354 - Added non-MS public DataRelation fields.
355 - Removed extraneous "DataRelation type generation" code.
356 - Fixed custom_dataset.Initialize() not to create "c" field that
357 was created more than once.
358 - Implemented AddxxxRow() that takes parameters for every column.
360 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
362 * XmlSchemaDataImporter.cs : When primary key is used more than once,
363 DataRelation borked because of empty parent column name.
365 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
367 * XmlSchemaDataImporter.cs : When Creating constraints with related
368 to DataRelation creation, also set PrimaryKey to the parent table.
370 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
372 * XmlSchemaDataImporter.cs :
373 Design change to add indirect table and relation structures.
374 Support for "relation" annotation for local element.
375 Support for repeatable simple element column (maxOccurs > 1).
376 Fixed handling of Nested property on DataRelation (for globally
377 annotated relation, Nested is false).
379 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
381 * DataRow.cs : Added DataElement property to avoid storing every row-
382 element mapping. It stored even for nodes that should be removed.
384 2004-05-13 Umadevi S <sumadevi@novell.com>
386 * RelationshipConverter.cs - Stubbed this class
387 * DataRelation.cs - added TypeConveterAttribute
389 2004-05-13 Umadevi S <sumadevi@novell.com>
391 * DataColumnCollection.cs - Added ResDescriptionAttribute
392 * DataRelation.cs - Added TypeConverterAttribute
393 * DataRelationCollection.cs - Added DefaultPropertyAttribute
394 * DataRowView.cs - Added GetHashCode method with a TODO tag
395 * DataSet.cs - Added DesignerAttribute
396 * DataView.cs - Added DesignerAttribute
397 * DataViewManager.cs - Added DesignerAttribute
398 * DataViewSetting.cs - Added TypeConverterAttribute
400 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
402 * DataRow.cs : Added XmlDataElement initialization code.
404 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
406 * XmlDataInferenceLoader.cs :
407 It now requires XmlDocument as input. Improved identification of
408 DataSet element. Removed extra lines.
409 Moved boresome design notes to bottom of the source and
410 added standalone runnable driver (not included on build).
412 Update with related to the change above.
413 WriteXml() should call Flush() after writing. This fixes bug #58327.
414 * XmlSchemaDataImporter.cs :
415 Improved indentification of DataSet element.
417 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
418 * DataTable: marked initStatus enum internal
420 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
421 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
423 * DataRowView.cs: removed extra Error property
424 * DataRow.cs: reduced accessibility of CollectionChanged method
426 * DataColumnPropertyDescriptor.cs: made class internal
427 * DataColumn.cs: removed extra TypeConvertorAttribute
428 * ConstrainCollection.cs: marked PostEndInit method internal
430 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
433 In WriteXmlSchema(), when complex type contains simple type content
434 attributes must not added to XmlSchemaComplexType directly. It
435 causes schema compilation error.
436 DataRelation should not be output when related columns are hidden.
438 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
440 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
441 also expected to do ReadXml(), but I will remove that feature and
442 support column reordering).
443 * XmlSchemaDataImporter.cs : Always initialize dataset name.
444 Always set Nested and primary key for parent table.
445 * XmlDataReader.cs : Now it is used.
446 Top level element might not match to dataset name nor any table
447 name, but still possible to read content tables.
448 Handle empty element correctly in some places.
449 Handle Fragment mode (read up XmlReader to the end).
450 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
451 XmlDataInferenceLoader and XmlDataReader.
453 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
456 Eliminated CRLF injection.
457 More clear message in Clear().
458 Updates reflecting XmlSchemaDataImporter change.
459 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
460 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
461 but that depends on different behavior from ms.net).
462 Set locale also for DataTable.
463 Add xs:element only when target namespace matches to the
464 element's namespace. Otherwise, add xs:import for external namespace.
465 Put xs:sequence for dataset element's particle _only when_ actual
468 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
470 * XmlDataReader.cs : Added. This class will work better when our
471 schema inference and schema read engine gets improved. (It contains
472 standalone testable Driver class.)
474 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
476 * ForeignKeyConstraint.cs : Check step change. Existence then column
477 validity. just for tests.
478 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
481 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
483 * DataSet.cs : Ignore empty content only when output type is diffgram.
485 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
487 * CustomDataClassGenerator.cs : Modified that DataSet contains each
488 DataTable field so that each table property can access them directly.
489 (plus, modified standalone code driver code: shouldn't affect)
491 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
493 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
495 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
497 * XmlSchemaDataImporter.cs :
498 SimpleContent column support.
499 Annotated relation support.
500 Top-level element is counted only when its type is complex.
501 xs:anyType is no longer treated as complex type.
502 dataset existence is mandatory now.
503 Improved DataType and DefaultValue support.
504 Attribute namespace is properly handled now.
505 Prohibited attribute is now treated as hidden column.
506 Reject list or union simple type.
508 Still incomplete 1) to read relationship in some cases, 2) to
509 determine whether an element is dataset or table, 3) thus to
510 exclude extraneous column, 4) to remove extraneous *_Id column.
512 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
515 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
516 serialization .ctor() (thus schema read/inference should be easier).
517 DataRowSorter should consider Table's Locale.
519 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
521 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
522 use it instead of duplicating logic.
524 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
526 * ConstraintCollection.cs :
527 Use Table.CaseSensitive and Table.Locale to compare strings.
528 Duplicate constraint name exception does not occur under .NET 1.1.
530 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
532 * XmlSchemaDataImporter.cs: Added little type check.
534 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
536 * DataSet.cs: Implemented support for runtime serialization. Fixed support
537 for xml serialization.
538 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
540 2004-04-30 Umadevi S <sumadevi@novell.com>
541 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
542 * DataTableCollection.cs : Tested and removed TODO
543 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
545 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
547 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
549 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
551 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
552 constraint is defined on single column.
554 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
556 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
557 not ArgumentException (maybe changed after 1.1).
559 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
561 * DataRow.cs : When Column was added and it was AutoIncrement column,
562 it extended the item object array incorrectly.
563 (Plus tiny comment and incorrect indentation fix.)
565 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
567 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
569 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
571 * DataRow.cs : Bug fix in CopyValuesToRow().
573 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
575 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
576 each of the columns should not be unique, but only all the constraint's columns together.
578 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
581 - Added using of list of autoIncrement columns
582 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
583 - Fix in CheckNullConstraints
584 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
585 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
586 - Added onColumnRemoved() method to threat column removal accurately.
588 * DataRowCollection.cs :
589 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
590 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
593 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
595 * DataColumnCollection.cs :
597 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
598 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
599 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
602 - Uses autoincrement list of a table
604 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
606 * XmlDataLoader.cs : Even when it should ignore schema, it was
608 * XmlSchemaDataImporter.cs : DataRelation creation support.
609 Improved "DataSet" element handing. When attributes are on the
610 element, it is not a "DataSet" element.
611 Fixed parent key column name.
612 Unique name creation is not required. Just raise an error.
613 Fill facet also for attribute types.
615 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
617 * DataRow.cs : Null check for CheckReadOnlyStatus() and
618 CheckNullConstraints(), with some coding guideline fixes.
619 Type check should be done by Type instance comparison.
621 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
623 * DataColumnCollection.cs : When add a column to the collection, fill
624 auto-increment column.
626 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
628 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
630 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
632 * CustomDataClassGenerator.cs : Added.
633 * TypedDataSetGenerator.cs : Implemented Generate().
634 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
635 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
637 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
639 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
641 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
643 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
645 2004-04-23 Umadevi S (sumadevi@novell.com)
646 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
647 - Added error handling to the above methods
649 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
651 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
652 the support is incomplete yet).
654 Reverted ReadModeSchema() argument change. XmlReadMode would be
655 useful to handle IgnoreSchema.
656 Don't overwrite DataSetName when mode is not such kind.
657 Set Prefix and Namespace as well as DataSetName.
658 AllowDBNull looks set false by default for element column.
659 Set unique constraint as primary key when infering the table schema.
661 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
664 Never set null string for Prefix and Namespace.
665 In InferXmlSchema() when null XmlReader is passed, just do nothing.
666 In WriteXmlSchema(string), earlier try block.
667 In BuildSchema(), try to add serialization namespaces for each
668 namespaces in DataSet/DataTable/DataColumn.
669 Removed namespace argument from WriteColumnAsElement() and don't
670 overwrite when namespace is "". This fixes bug #57330.
671 * DataColumn.cs : For Namespace and Prefix, never set null.
673 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
675 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
676 before creating and adding foreign key constraint and relation.
678 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
680 * MergeManager.cs : In AdjustSchema() source table clone should be added
681 and not the table itself.
683 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
686 - CaseSensitive : Additional fix (removed unnesessary assignment).
687 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
689 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
691 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
693 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
696 - EndLoadData() : perfomance fix in case of null constraint violation
697 during data load (also in DataRow.cs).
698 - CaseSensitive : If DataTable belongs to DataSet it should always use
699 DataSet.CaseSensitive untill explicitly changed.
700 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
703 - Pefromance fix in case of null constraint violation
704 during data load (also in DataTable.cs).
705 - CollectionChanged() : use correct column number after new DataColumn was added
706 (differs in case some DataColumn was previosly removed).
707 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
709 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
711 * DataColumnCollection.cs : Since unique constraint is added now
712 in DataColumn.SetTable() the additional creation of constraint in
713 DataColumnCollection.Add() is redundant and causes exception - fixed.
715 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
717 * XmlDataLoader.cs : Added "never add data rows" mode.
718 Removed unused code. However, it is temporary fixes to unify
719 ReadXml() and InferXmlSchema().
720 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
722 I'll create another XmlDataLoader since there are many problems
723 such that 1) it is too waste to read the entire xml into an
724 XmlDocument, 2) it does not handle attributes correctly, and 3) it
725 must handle "ignored namespaces".
727 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
729 * Added XmlSchemaDataImporter.cs (new schema reader).
730 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
732 Let schema reading work to ReadXmlSchema().
733 Don't return ReadSchema when argument read mode was DiffGram.
735 2004-04-15 Umadevi S (sumadevi@novell.com)
736 * Updated Clone/Copy methods in DataSet along with Testcase
737 * ForeignKeyConstraint.cs - special ctor implemented
738 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).
739 * Changes in ConstraintCollection.cs for the above
740 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.
743 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
745 * XmlSchemaMapper.cs : set parent key and foreign key info to
746 DataRelation when reading refkey constraints.
747 Supply constraint name for fkey.
749 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
751 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
752 mode is Auto, just ignore the schema if there is already schema info.
753 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
755 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
758 - In MS output, XML declaration looks to have standalone decl (yes).
759 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
760 - ReadXml(reader, mode)
761 1) return originally specified mode, instead of (always) Auto.
762 2) Check empty reader.
763 3) Check diffgram schema and content separately.
764 4) When diffgram exists, remaining (the same-level) contents
766 5) Similar fact should be applied, but somewhat different.
767 InferSchema and IgnoreSchema just skips, Fragment reads both
768 schema and content, others just reads schema.
769 - Removed unused code.
771 - Read() should skip in some ReadMode.
772 - Don't compare schema element name as case-insensitive (well,
773 should schemas be checked here?)
774 - Avoided BuildDocument() not to create confusing DataSet
776 - Don't add any tables when reader has single element.
778 When target table was not found, MS.NET doesn't raise an error.
779 * XmlSchemaMapper.cs :
780 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
782 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
785 - InferXmlSchema(): Throw explicit NotImplementedException now.
786 - Don't put XML declaration everywhere. Write just for filename arg.
787 - xmlns="" should not be written. Maybe WebService problem is
788 because default namespace is overwritten. This patch will keep
789 the WS problem away and actually fixes some unit tests (i.e. use
790 explicit String.Empty for null namespace in WriteStartElement()).
791 - MoveToContent() should always be called, not only when
792 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
793 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
794 element. As to MSDN, diffgram does not contain schema.
796 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
798 * DataTable.cs: made _initStatus private so that System.Data is CLS
801 2004-04-13 Umadevi S <sumadevi@novell.com>
802 * UniqueConstraint.cs:
803 * ConstraintCollection.cs:
805 - Implemented a Constructor for UniqueConstraint.cs
806 - Used EndInit on DataTable to call a delegate which adds the
807 constraints passed to the most recent call of AddRange().Used
808 AddRange() on ConstraintCollection to check whether
809 DataTable.BeginInit has occurred. If yes, save the argument
810 constraint collection passed, then return. If no, Check whether the
811 constraints are of type UniqueConstraint and initialized with the
812 special constructor If yes Initialized the table property of this
813 UniqueConstraint object with table assosciated with the current
814 instance of ConstraintCollection class.
816 2004-04-07 Marek Safar <marek.safar@seznam.cz>
818 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
820 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
823 * DataColumnCollection.cs:
824 * DataRelationCollection.cs:
825 * DataRowCollection.cs:
826 * DataTableCollection.cs:
827 * InternalDataCollectionBase.cs:
828 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
831 2004-04-05 Jackson Harper <jackson@ximian.com>
833 * DataTable.cs: Add rows to the row list if there is no filter.
835 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
837 * DataColumn.cs : Setting Caption to null sets it to the empty string
838 (ms.net behaviour, testcase is in DataColumnTest).
840 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
843 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
845 * DataColumn.cs: In Expression setter, set the expression member even if
846 it is an empty string.
847 * DataSet.cs: Support serialization of byte[] columns.
848 * XmlDataLoader.cs: Support deserialization of Guid columns.
849 Set MappingType.Attribute to columns infered from attributes.
851 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
853 * ExpressionElements.cs : remove
854 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
855 Integration of new Mono.Data.SqlExpressions classes used in
856 DataTable.{Select, Compute}.
857 Fixes bug #55503 and lots of failures in DataTableTest.cs.
859 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
861 * Index.cs: Simple fix in ComparePartialRowNonUnique.
862 This fixes bugs #56129 and #56014.
864 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
866 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
867 stream after writing the dataset. This fixes bug #52581.
868 Also added several writer.Close into finally blocks, so writers are properly
869 closed in case of an exception.
871 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
873 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
874 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
875 * ColumnTypeConverter.cs: Added stub
876 * DefaultValueTypeConverter: Added stub
877 * ConstraintConverter.cs: Added stub
879 2004-03-04 Eran Domb <erand@mainsoft.com>
881 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
882 in MS.NET documentation (missing DataSet element etc).
884 2004-03-04 Eran Domb <erand@mainsoft.com>
887 * Index.cs : Rollback last changes.
889 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
891 * Index.cs : justa build fix.
893 2004-03-03 Eran Domb <erand@mainsoft.com>
896 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
897 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
898 This changes made for performance improvement.
900 2004-02-08 Eran Domb <erand@mainsoft.com>
902 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
904 2004-02-08 Eran Domb <erand@mainsoft.com>
906 * DataSet.cs: Fix some bugs in ReadXml().
908 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
910 * DataSet.cs: Added missing method that broke the build.
912 2004-02-04 Eran Domb <erand@mainsoft.com>
914 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
916 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
917 when all column are attributes (elements count is 0), we still want to add the relations. No relations
918 can be on simple contents.
919 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
920 (AddForeignKeys) Check that the relation has constraints attach to it.
921 * XmlConstants.cs : Added constant.
923 2004-02-04 Eran Domb <erand@mainsoft.com>
925 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
926 DoWriteXmlSchema calls BuildSchema ().
928 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
930 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
932 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
934 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
935 also be added to the dataset.
936 In WriteTable(), do not write unchanged rows when writing the original
937 version of the table.
938 Added WriteIndividualTableContent(), for writing the contents of a single
940 Changed BuildSchema and related methods, so it can generate a schema for
941 any set of tables, not just the tables of the dataset (needed for
942 single datatable serialization).
943 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
944 Also implemented some ReadXmlSchema methods.
945 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
946 instead of loading the full dataset in an XmlDocument. It is faster and
947 saves memory. Also fixed several problems when generating the changes.
948 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
949 table serialization).
951 2004-02-02 Eran Domb <erand@mainsoft.com>
953 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
954 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
955 * DataTable.cs (NewRow): Create only one DataRowBuilder.
956 Initiate new row with row id -1.
957 * DataRow.cs : Add RowId property.
958 * DataRowBuilder.cs : Add _rowId member.
959 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
961 2004-01-26 Eran Domb <erand@mainsoft.com>
963 * XmlConstants.cs : Added some constants.
964 * DataColumn.cs : Added a method to retrive AutoIncrement value.
965 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
967 * XmlDiffLoader.cs : Convert the value comming from the xml.
968 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
969 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
970 (ReadXmlSchemaElement) : Set the locale of the dataset.
971 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
972 (GetColumnType) : New method to get the column type from the attribute value.
973 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
974 and add the constraint to the table.
975 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
977 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
978 Writing more information to the schema for interoperability with ms.net.
979 Improve diffgarm writing mode.
982 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
984 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
986 2004-01-21 Eran Domb <erand@mainsoft.com>
988 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
989 Do not set the child column to be AutoIncrement.
990 Create the new column for the relation as MappingType.Hidden so they will not be serialized
991 when writing the dataset to xml.
993 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
995 * Added missing TypedDataSetGenerator.cs.
997 2004-01-08 Eran Domb <erand@mainsoft.com>
999 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
1000 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
1001 InferSchema, ReadSchema and IgnoreSchema.
1002 * XmlDataLoader.cs : All modes use the same logic.
1003 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
1005 2004-01-06 Eran Domb <erand@mainsoft.com>
1007 * DataRelationCollection.cs : Use IndexOf in indexer.
1008 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
1009 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
1010 * XmlDiffLoader.cs : Reading nested tables.
1011 * XmlSchemaMapper.cs : Reading the relation.
1012 * XmlConstants.cs : Adding some constants.
1014 2004-01-05 Jackson Harper <jackson@ximian.com>
1016 * DataView.cs: Set readonly property of property descriptor. This
1019 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
1021 * DataRelationCollection.cs : Fixed incorrect generation of default
1023 * DataSet.cs : Added missing functionality in WriteXml().
1024 * XmlConstants.cs : Added new constants.
1026 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
1028 * DataSet.cs : Fixed incorrect WriteXml() signature.
1030 2003-12-18 Jackson Harper <jackson@ximian.com>
1032 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
1034 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
1036 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
1037 they take shape of xml. This fixed bug #52240
1039 2003-12-16 Tim Coleman <tim@timcoleman.com>
1040 * KeyRestrictionBehavior.cs:
1041 New stubs added for .NET 1.2
1045 2003-12-08 Eran Domb <erand@mainsoft.com>
1046 * DataColumn.cs (Expression) : Validate the expression.
1048 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
1049 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
1051 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
1052 (RejectChanges) : Detach row when state was Added.
1053 (CollectionChanged) : Fix a bug.
1055 * ExpressionElement (ValidateExpression) : Fix a bug.
1057 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
1058 a parent row in the parent table.
1059 (_validateColumns) : Fix bugs.
1061 * MergeManager.cs (AdjustSchema) : Fix a bug.
1063 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
1066 2003-11-30 Eran Domb <erand@mainsoft.com>
1067 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
1068 (Add) : Find if the new column name is the same as the one found in IndexOf.
1069 (IndexOf) : New method.
1070 (Contains) : Use new IndexOf.
1071 (IndexOf) : Use new IndexOf.
1073 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
1074 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
1076 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
1077 (Delete) : Detach row if the RowState was Added.
1078 (GetChildRows) : Get the array form the ChildTable.
1079 (GetParentRows) : Get the array from the ParenTable.
1081 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
1083 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
1085 * DataTable.cs (PrimaryKey) : Fix bugs.
1086 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
1088 * DataTableCollection.cs (Add) : Fix a bug.
1090 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
1091 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
1092 Some code style changes (tab instead of whit spaces, alignment, etc...).
1094 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
1096 * MergeManager.cs (AdjustSchema) : Fix a bug.
1100 2003-11-26 Miguel de Icaza <miguel@ximian.com>
1102 * DataSet.cs: Add a few more missing methods, code style updated
1105 2003-11-26 Tim Coleman <tim@timcoleman.com>
1107 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
1108 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
1109 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
1110 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
1111 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
1112 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
1113 * StatementCompletedEventHandler.cs UpdateOptions.cs:
1114 New classes added for NET_2_0
1115 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
1116 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
1117 Modifications to add new NET_2_0 functions
1119 2003-11-25 Tim Coleman <tim@timcoleman.com>
1123 2003-11-21 Pedro Martínez Juliá <yoros@wanadoo.es>
1125 * DataRow.cs: Detached row can be accesible (new rows from data
1126 table are detached). Closes but #51263.
1128 2003-11-19 Eran Domb <erand@mainsoft.com>
1129 * DataRow.cs : Throw exceptions if Row is Detached.
1130 (EndEdit) : Check that we are not in middle of ChangeEvent.
1131 (AcceptChanges) : Detach the row.
1133 * DataRelation.cs : throw correct exception.
1134 *UniqueConstraint.cs : throw correct exception.
1137 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1139 * DataRow.cs: Use RemoveInternal instead of Remove because the last
1140 one uses Delete and AcceptChanges.
1142 * DataRowCollection.cs: When removing, Delete and AcceptChanges
1143 method from the row are called. Added an internal method that will
1144 be used by DataRow to "physically" remove the row from the list.
1146 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1148 * DataRowCollection.cs: To follow the specification: Remove and
1149 RemoveAt should remove the row. But needed to call DeletingDataRow
1150 to prepare the deleting.
1152 * DataRow.cs: Don't call DeletingDataRow when it is called by the
1153 method Table.Rows.Remove.
1155 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1157 * DataRowCollection.cs: Make the row be deleted by itself. If not,
1158 it fails because we need to call OnRowDeleting and OnRowDeleted. It
1159 is full implemented inside DataRow.
1161 2003-11-05 Eran Domb <erand@mainsoft.com>
1162 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
1164 2003-11-04 Eran Domb <erand@mainsoft.com>
1165 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
1167 (GetChildRows) : Adding some checks.
1168 (GetParentRows) : Adding some checks. Fix a bug in implementation.
1169 (SetParentRow) : Added implementation.
1171 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
1172 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
1173 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
1174 * MergeManager.cs : Check that the target table is not null.
1176 2003-10-27 Eran Domb <erand@mainsoft.com>
1177 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
1178 can be converted to the column type.
1180 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
1182 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
1183 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
1185 * DataRowCollection.cs (Add) : Fixing a bug.
1186 (Clear) : Before clearing the array check that there is no violation of FK constraint.
1188 * DataSet.cs (Prefix) : If value is null chage it to empty string.
1189 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
1191 * ExpressionElement : Adding support for IN expresion.
1193 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
1194 (Select) : Adding support for DataViewwRowState.
1196 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
1198 * MergeManager.cs (MergeRow) : Fix bugs.
1200 2003-10-27 Eran Domb <erand@mainsoft.com>
1201 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
1202 check null values when ending loading data.
1204 * DataSet.cs (RejectChanges) : Imlementation.
1205 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
1206 change it to empty string.
1208 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
1210 2003-10-22 Eran Domb <erand@mainsoft.com>
1211 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
1213 * ConstraintCollection.cs (RamoveAt): Change implemntation.
1215 * DataTableCollection (CanRemove): Removing cast to Constraint.
1217 2003-10-22 Eran Domb <erand@mainsoft.com>
1218 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
1219 (Clear): The collection was cleared without removing the relation from the parent and child tables.
1221 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
1222 (HasChanges, Reset): Imlementation.
1224 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
\r
1225 This is because the we do not no when to turn off the flag.
1226 (Locale): Changing implementation to behave like ADO.NET.
1227 (AcceptChanges): Fix bug.
1228 (Clear): Check that this table is not referenced from a foreign key constraint.
1229 (Copy): Do not try to access a deleted row.
1230 (CopyProperties): Copy the PrimaryKey.
1231 (GetChanges, ImportRow): Implementation.
1232 (LoadDataRow): Adding implementation if the table has PrimaryKey.
1233 (ToString): Changing implementation to behave like ADO.NET.
1235 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
1237 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
1238 (HasErrors): Implementation.
1239 (Delete): Added checking for child rows of the deleted row.
1240 (EndEdit): Added checking for child row and firing events.
1241 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
1242 (GetColumnsInError): Added a check for null values in column error.
1243 (HasVersion): Added special treatment for special RowState.
1244 (CollectionChanged): More checks to avoid NullReferenceException.
1246 * DataRowCollection.cs (Remove): Fix a bug.
\r
1249 2003-10-01 Duncan Mak <duncan@ximian.com>
1251 More patches from Eran Domb <erand@mainsoft.com>.
1253 * MergeManager.cs: New file.
1255 * DataRelationCollection.cs (AddCore): Check that a
1256 UniqueConstraint is already exists. It loops over the Relations
1257 instead of the Constraints.
1258 (Add, AddCore): The relation was added twice.
1260 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
1262 2003-09-30 Duncan Mak <duncan@ximian.com>
1264 Patches from Eran Domb <erand@mainsoft.com>.
1266 * DataRelation.cs (constructor): When the name of the relation is
1267 null, it should return an empty, not "Relation".
1269 * DataRow.cs (AcceptChanges): Added special case for
1271 (CancelEdit): Set editing flag to false.
1272 (IsNull): Check that the value is DBNull.
1274 * DataRowCollection.cs (Add): There was no check that the table of
1275 the collection is owned by a DataSet.
1277 * DataSet.cs (OnMergeFailed): Added.
1279 * UniqueConstraint.cs (AssertConstraint): There was no check that
1280 values in the row are not null, where it is a primary key
1281 column. Also check that the row has a proposed version, if not,
1282 get the current version when we compare the rows.
1284 2003-09-25 Duncan Mak <duncan@ximian.com>
1286 Patches from Eran Domb <erand@mainsoft.com>.
1288 * DataColumn.cs (Unique): Implemented.
1291 * ConstraintCollection.cs:
1292 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
1293 an Exception thrown. Details:
1294 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
1296 * DataRowCollection.cs (Add): There is no checking that there is
1297 no violation of the unique constrains.
1299 * UniqueConstraint.cs (AssertConstraint): There is no checking on
1300 all columns in the constraint.
1302 * DataTableCollection (Add): Correctly throw an Exception, more
1304 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
1305 (Remove, RemoveAt): Implemented.
1307 2003-07-31 Duncan Mak <duncan@ximian.com>
1309 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
1311 2003-07-25 Ravi Pratap <ravi@ximian.com>
1313 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
1314 method on a delegate is disallowed - fix this.
1316 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
1318 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
1319 xml serialization. Modified method of writing schema. Now it creates
1320 a XmlSchema object and serializes it using XmlSerializer.
1321 * XmlConstants.cs: Added constants for data type names.
1322 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
1323 type specified in the column.
1325 2003-04-20 Alan Tam <Tam@SiuLung.com>
1327 * DataRelationCollection.cs: Fix a bug that prevent relations
1328 from being added via DataSet.
1330 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
1332 * UniqueConstraint.cs: one tiny fix.
1334 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
1336 * DataTable.cs: Remove UniqueConstraints when adding new ones
1338 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
1340 * DataColumnCollection.cs: Little 'case sensitive' fix
1342 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
1344 * DataRow.cs: AutoIncrement handling to Constructor
1345 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
1347 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1349 * DataTable.cs: Some fixes to PrimaryKey etc...
1350 * UniqueConstraint.cs: Little clean up
1352 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1354 * DataTable.cs: Tiny fix to ToString () -method
1356 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1358 * ConstraintCollection.cs: Little fix.
1359 * DataColumn.cs: Added new internal method SetUnique()
1360 * UniqueConstraint.cs: some little fixes
1362 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
1364 * DataRowCollection.cs: Bugfixes, implementation,...
1366 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
1368 * DataColumn.cs: If DataType if set to something else than short, int
1369 or long and AutoIncrement is true, AutoIncrement is must set to false.
1371 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1374 (BeginEdit): fixed array bound problem when a column has been added.
1375 (EndEdit): just assign proposed to current as proposed is set to null.
1376 This also fixes another array boudn problem.
1378 2003-03-21 Alan Tam <Tam@SiuLung.com>
1380 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
1381 EndEdit and AcceptChanges to act correctly according to DataRowState
1383 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
1384 attached and detached from the collection.
1386 2003-03-20 Alan Tam <Tam@SiuLung.com>
1388 * DataColumn.cs: Store empty string for Expression when null is passed in.
1389 Classes generated by XSD.exe passes null by default.
1391 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
1393 * DataColumnCollection.cs: Tiny clean up
1395 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
1397 * DataColumn.cs: little fixes.
1398 * DataColumnCollection.cs: Lots of little fixes and improvments.
1400 2003-03-12 Alan Tam <Tam@SiuLung.com>
1402 * DataSet.cs: Fixed a bug that the file written does not close correctly.
1404 2003-03-08 Alan Tam <Tam@SiuLung.com>
1406 * DataRelationCollection.cs: Removed the mis-overridden methods
1407 * DataRow.cs: Fixed an attribute
1408 * DataSet.cs: Fixed the modifiers
1410 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
1412 * DataTableCollection.cs: The Contains (string name),
1413 IndexOf (string name) methods, and item[string name] indexer
1414 now behave more like .NET with respect to case-sensitivity.
1415 That is if there is an exactly matching item then this one is used.
1416 If there is only one item differing in case then it used.
1417 If there are more than one item differing in case then
1418 Contains returns false, IndexOf returns -1, and item[]
1419 throws an ArgumentException.
1421 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
1423 * ExpressionElement.cs: More implementation.
1425 2003-02-28 Alan Tam <Tam@SiuLung.com>
1426 * DataSet.cs: Changed WriteTable so that it now calls the newly written
1427 WriteObjectXml to direct the call to the respective XmlConvert method.
1428 This fixes the wrong format written to XML files of bool, float,
1429 double, DateTime and TimeSpan types.
1431 2003-02-25 Alan Tam <Tam@SiuLung.com>
1433 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
1434 * DataRelationCollection.cs: Implemented AddRange and Contains.
1435 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
1436 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
1437 Reimplemented most Add methods to eliminate duplicated checks.
1438 Centralized RelationName generation procedure in GetNextDefaultRelationName.
1440 2003-02-25 Alan Tam <Tam@SiuLung.com>
1442 * DataColumn.cs: Fixed wrong storage representation of Expression
1443 (using empty string instead of null) so that ToString() returns nothing.
1444 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
1445 auto column naming now works as expected. Reimplemented some Add methods
1446 to eliminate code duplication.
1448 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
1450 * DataTable.cs: DataTable.CaseSensitive follows parent
1451 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
1452 been changed directly from DataTable
1454 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
1456 * DataSet.cs: When CaseSensitive property is changed all of the Tables
1457 of DataSet have to change too
1459 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
1461 * InternalDataCollectionBase.cs: revert change to field
1464 * DataViewManager.cs
1467 * DataSet.cs: commented use of DesignerAttribute
1468 because it broke the build. According to MSDN,
1469 DesignerAttribute does not have a zero-argument constructor
1471 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
1473 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
1475 2003-02-18 Alan Tam <Tam@SiuLung.com>
1477 * DataRow.cs: Implemented GetParentRow and GetParentRows.
1478 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
1479 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
1480 RaisePropertyChanging.
1481 * DataTable.cs: Implemented NewRowArray.
1482 * DataTablePropertyDescriptor: Fixed a modifier.
1483 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
1484 * PropertyCollection.cs: Minor fix.
1485 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
1486 * DataRelation.cs DataRelationCollection.cs DataRow.cs
1487 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
1488 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
1489 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
1490 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
1491 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
1493 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
1495 * ExpressionElement.cs: More implementation
1497 2003-02-05 Alan Tam <Tam@SiuLung.com>
1499 * DataSet.cs: Added framework for DataSet.Update Implemented missing
1500 methods GetSchemaSerializable, GetSerializationData,
1501 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
1503 * DataTable.cs: Implemented missing methods CreateInstance and
1504 GetRowType for DataTable
1506 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
1508 * DataSet.cs: Implemented private method MapType for
1509 mapping datatypes for XmlSchema
1511 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1513 * DataView.cs: implemented Dispose.
1515 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
1517 * ExpressionElement.cs: Added new file. This file is for parsing
1518 and DataData.Select () -methods and DataColumn.Expression -property
1519 * DataTable.cs: Implemented Select(string) -method
1521 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
1523 * DataSet.cs: One little fix to writing xml
1525 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
1527 * XmlSchemaMapper.cs: Some fixes.
1528 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
1531 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
1533 * UniqueConstraint.cs: Do not set columns Unique property true
1535 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
1537 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
1539 * DataTableCollection.cs: Now names new DataTable if it doesn't
1540 already have a name.
1542 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
1544 * XmlSchemaMapper.cs: Improvments.
1545 * XmlConstaints.cs: Added more constants.
1546 * DataSet.cs: Improvments of reading and writing xml
1547 * DataColumn.cs: Added default values of properties.
1549 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
1551 * XmlSchemaMapper.cs: Some improvments
1553 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
1555 * DataRowCollection.cs: Added IndexOutOfRangeException
1556 * DataTableCollection.cs: Added OnCollectionChanging and
1557 OnCollectionChanged events.
1558 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
1559 * DataTable.cs: Implemented Copy () and Clone () methods.
1560 * XmlDataLoader.cs: some fixes.
1561 * XmlSchemaMapper.cs: comments.
1563 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1565 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
1567 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1569 * DataColumnPropertyDescriptor.cs: fixed typo.
1570 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
1571 to get the DataViewManager and removed TablePD class.
1572 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
1573 suggested by danmorg.
1575 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
1577 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
1579 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
1580 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
1582 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1584 * DataView.cs: made dataViewManager internal.
1585 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
1586 properties of the object, but the values of the columns present in a
1589 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
1590 which returns a PropertyDescriptorCollection. Created a new class
1591 derived from PropertyDescriptor that treats Table as an object whose
1592 properties are DataRowView.
1594 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1596 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
1598 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1600 * DataColumn.cs: ExtendedProperties is by default !null-
1602 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1604 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
1605 set column's ordinal.
1607 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
1610 * XmlDataLoader.cs: XmlReader closing fixes.
1611 * XmlSchemaReader.cs: Added support for ref=
1613 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
1616 - Added XmlReader and XmlWriter Closing.
1617 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
1618 * XmlSchemaMapper.cs
1619 - Much better way IMHO to map xmlschema than the old one in
1620 DataSet.cs. Its, more flexible, cleaner, ...
1622 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
1624 * XmlDataLoader.cs: Reading diffgrams.
1626 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
1628 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
1629 * DataTable.cs: Added ChanginDataColumn () for triggering
1630 DataColumnChanging event
1632 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
1634 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
1636 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
1638 * DataSet.cs: Indentations to WriteXml ()
1640 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
1643 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
1644 class XmlDataLoader.cs
1646 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
1648 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
1650 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
1652 * DataSet.cs: Started to implement ReadXml-methods.
1654 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1656 * DataSet.cs: implemented DefaultViewManager and GetList.
1658 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
1659 DataList in System.Web.
1661 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
1664 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
1667 * DataTable.cs: Fixed NullException (rollback -event)
1668 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
1670 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
1673 * DataRowCollection.cs: Moved event triggering from DataRow to
1676 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
1678 * DataSet.cs: Little fix to WriteTable () -method
1679 and DoReadXmlSchema () -method.
1681 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
1683 * DataSet.cs: Clean up to reading xmlschema. This looks much better
1684 now (work better too), but it not working correctly yet.
1686 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
1689 * DataRowCollection.cs: Added some event handlins stuff.
1690 * DataSet.cs: Some fixes.
1691 * DataTable.cs: Added event handlers.
1693 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
1695 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
1697 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
1699 * System.Data/DataRow.cs: Added internal property XmlDataID
1701 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
1703 * DataSystem.Data.DataTableCollection.cs:
1704 Removed HashTable. There could be situations where DataTable
1705 is added to collection before it hava TableName. So using
1706 HashTable is impossible.
1708 2002-11-19 Carlos Guzmán Álvarez <carlosga@telefonica.net>
1710 * DataRow.cs: an object that is equal to null
1711 should be allowed to be set in this indexer too
1714 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
1716 * DataColumnPropertyDescriptor.cs: added file
1718 * System.Data/DataRowView.cs: started implementation
1720 * DataTable.cs: stubbed more interfaces. Implemented
1721 IListSource.GetList()
1723 * DataView.cs: stubbed more interfaces. Implemented
1724 some properties and methods: GetEnumerator(),
1725 ITypedList.GetItemProperties, Item indexer, CopyTo()
1727 2002-05-18 Nick Drochak <ndrochak@gol.com>
1729 * DataRow.cs: Fix typo.