1 2004-09-28 Umadevi S <sumadevi@novell.com>
2 * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
4 2004-09-24 Sureshkumar T <tsureshkumar@novell.com>
6 * DataSet.cs : Don't check constraints for dataset clear
7 * DataRowCollection.cs : check for EnforceConstraints flag
8 before checking foriegn key constraints in Clear method
9 * DataTable.cs : Redundant checking removed in Clear method as it is
10 checked in DataRowCollection.Clear method.
13 2004-09-19 Sureshkumar T <tsureshkumar@novell.com>
14 * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
15 hence, adding a row cache is necessary if the original row happens to be current.
18 2004-08-23 Martin Baulig <martin@ximian.com>
20 * XmlDataInferenceLoader.cs (Driver): Make this class internal,
23 2004-08-18 Umadevi S <sumadevi@novell.com>
24 * DataView.cs - Completed most of the event handling.
25 Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
26 Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
27 * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
29 2004-08-06 Atsushi Enomoto <atsushi@ximian.com>
31 * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
33 2004-08-05 Atsushi Enomoto <atsushi@ximian.com>
35 * XmlConstants.cs : Added constants for "msprop" support.
36 * DataSet.cs : ExtendedProperties should be written in the schema.
37 This fixes bug #61233.
39 2004-07-27 Atsushi Enomoto <atsushi@ximian.com>
41 * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
42 used. There were also some culture dependency problems to write int.
44 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
46 * XmlDataInferenceLoader.cs : It was not always filling relation
47 child table information correctly. This fixes bug #60742.
49 2004-06-23 Umadevi S <sumadevi@novell.com>
50 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
52 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
54 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
55 schema is inside the document element (as created in XmlWriteMode
56 .WriteSchema), it should read schema from that non-document element.
57 This fixes one case reported in bug #60470.
59 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
61 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
62 inference target. For bug #60470. (MS does not support schema
63 document inference and results in unconsistent dataset structure.)
65 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
67 * DataTableCollection.cs : reset the table's DataSet to null when
68 removing a table from this collection.
69 * DataTable.cs : When Namespace is not specified explicitly, its
70 Namespace property reflects DataSet's Namespace if exist.
71 This fixes bug #60469.
73 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
75 * DBConcurrentcyException.cs: CRLF to LF
76 * DataViewSetting.cs: CRLF to LF
78 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
80 * DataViewSetting.cs: renamed fields to match MS.NET
82 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
84 * DBConcurrencyException.cs: fixed serialization compatibility with
87 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
89 * ChangeLog : Fix for misspelled words.
91 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
93 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
95 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
98 - Table stores default values for columns in special default values row.
99 It is allocated once (in NewRow).
100 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
101 - OnRemoveColumn has nothing to perform by now.
103 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
106 - Changed access of original, current and proposed indexes to internal.
107 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
108 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
109 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
110 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
111 Care about Null and DBNull values is now in DataContainer.
112 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
113 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
114 - Fix in CopyState : clone column errors.
115 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
117 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
119 * DataColumnCollection.cs :
120 - Fix : Add() now delegates to Add(DataColumn).
121 - autoIncrement list holds DataColumn objects, and not just column names.
123 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
126 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
127 - DefaultValue fixes. Default value from now on is also stored in special record in
128 DataTable, so we're able to set default value for the column faster (typed).
131 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
133 * DataSet.cs : children of non-root rows were not properly written.
136 2004-06-10 Umadevi S <sumadevi@novell.com>
137 * DataRelation.cs - Constructor
138 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
140 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
142 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
144 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
146 * Constraint.cs: marked methods internal to fix public API
147 * ConstraintCollection.cs: to fix public API, use
148 DataTable.fInitInProgress to check whether initialization
149 of DataTable is in progress
150 * DataColumn.cs: added stubs for missing methods
151 * DataRowBuilder.cs: marked Table property internal to
153 * DataSet.cs: removed extra empty destructor, marked
154 OnMergeFailed internal to fix public API
155 * DataTable.cs: use fInitInProgress field to hold init
156 status, to match MS.NET
157 * DataView.cs: added missing attributes on IsOpen
159 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
161 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
162 in XmlNamespaceManager.
164 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
166 * DataSet.cs : complex table content child was not properly added
167 when it is the only one child in the parent table. Fixed bug #53959.
169 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
170 * DataTableTypeConverter.cs: added
171 * DataView.cs: added missing attribute on Table property
172 * DataViewManager.cs: moved attribute to correct property
173 * UniqueConstraint.cs: removed extra ReadOnly attribute from
174 IsPrimaryKey property
176 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
178 * DataRow.cs : ColumnsChanged event is not required in .ctor().
180 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
182 * XmlDataReader.cs : type change is required before setting value
185 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
187 * DataSet.cs : Loop-break of the last fix was incorrect.
189 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
191 * DataSet.cs : When a row has no parent row but the table has parent
192 relation(s), that row had been always ignored.
194 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
196 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
197 rejected same-named tables in different hierarchy. Thanks to Boris.
199 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
201 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
202 infinite loop. Thanks to Boris for this fix.
204 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
206 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
207 Thanks to Boris for this fix.
209 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
211 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
212 for ReadXml(). Thanks to Boris.
214 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
216 - CheckReadOnlyStatus : use typed (and faster comparing).
217 - EndEdit : bug fix - do not dispose record if it holds original version.
218 - SetValuesFromDataRecord : Take care about autoincrement columns.
221 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
223 * MergeManager.cs : don't output debug message to Console.
225 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
227 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
228 structure. Thanks to Boris Kirzner for the fix.
230 2004-05-27 Umadevi S <sumadevi@novell.com>
231 * DataRelationCollection.cs - fixed nunit test errors
233 2004-05-27 Umadevi S <sumadevi@novell.com>
234 * DataTableCollection.cs - fixed nunit test errors
236 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
238 * DataColumnCollection.cs : NullReferenceException was thrown when
239 the table was not found.
240 * DataRowCollection.cs :
241 Find() just returns null for null value under MS.NET 1.1.
242 RemoveAt() should also avoid to call AcceptChanges() like Remove().
243 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
244 directly under MS.NET (for nunit test).
246 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
248 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
249 caused problem on qualified name to get schema Field name.
251 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
253 * XmlDataReader.cs : Now data reader is namespace aware in all places.
254 When table's namespace is different, it entered to infinite loop.
256 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
257 * MergeManager.cs : AdjustSchema now updates by reference new created table,
258 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
261 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
263 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
264 * DataColumnCollection.cs : fixed parantethes.
266 - AcceptChanges : do nothing if row state is unchanged.
267 - GetChildRows, GetParentRows : bug fix (use correct index).
268 * DataRowCollection.cs : bug fix (compare all row's values).
269 * DataTable.cs : bug fix (use correct row version).
271 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
273 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
274 When content type is Mixed, text column is not required (it is
275 required only when the complex type has no particle).
276 "Repeated element" column is also created (considering maxOccurs=0
277 and complex content extension).
279 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
281 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
284 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
286 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
287 Fixed relation inference to consider attribute XPath.
289 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
291 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
294 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
296 * DataColumn.cs - removed default member attribute.
298 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
301 DataColumnChangeEventArgs.cs,
302 DataColumnCollection.cs,
304 DataRowCollection.cs,
306 Index.cs : Data storage in the row is redesigned. Now data is stored in
307 typed containers inside DataColumn. Row holds its versions as indexes inside
308 each of data container, accessed through the row that holds it.
310 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
312 * UniqueConstraint.cs - added comment.
314 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
316 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
319 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
322 XmlDataInferenceLoader.cs,
324 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
325 XmlEncode every local name to write. This should fix bug #58268.
327 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
329 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
330 Supported repeated elements. Removed MonoTODOs.
331 * XmlDataInferenceLoader.cs : Design change to support ignored
332 namespace and repeated elements.
333 * XmlSchemaDataImporter.cs : Added mapping support classes.
335 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
337 * CustomDataClassGenerator.cs :
338 Added property parent "[foo]Row" and children "Get[foo]Row" support
339 for custom DataRow classes.
340 Fixed DataColumn property accessibility (public --> internal).
342 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
344 * CustomDataClassGenerator.cs :
345 - Put classes inside custom DataSet class.
346 - Added automatic DataRelation creation support.
347 - Added Constraints creation support. That is done separate from
348 relations, since they might be independently created.
349 - Added non-MS public DataRelation fields.
350 - Removed extraneous "DataRelation type generation" code.
351 - Fixed custom_dataset.Initialize() not to create "c" field that
352 was created more than once.
353 - Implemented AddxxxRow() that takes parameters for every column.
355 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
357 * XmlSchemaDataImporter.cs : When primary key is used more than once,
358 DataRelation borked because of empty parent column name.
360 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
362 * XmlSchemaDataImporter.cs : When Creating constraints with related
363 to DataRelation creation, also set PrimaryKey to the parent table.
365 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
367 * XmlSchemaDataImporter.cs :
368 Design change to add indirect table and relation structures.
369 Support for "relation" annotation for local element.
370 Support for repeatable simple element column (maxOccurs > 1).
371 Fixed handling of Nested property on DataRelation (for globally
372 annotated relation, Nested is false).
374 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
376 * DataRow.cs : Added DataElement property to avoid storing every row-
377 element mapping. It stored even for nodes that should be removed.
379 2004-05-13 Umadevi S <sumadevi@novell.com>
381 * RelationshipConverter.cs - Stubbed this class
382 * DataRelation.cs - added TypeConveterAttribute
384 2004-05-13 Umadevi S <sumadevi@novell.com>
386 * DataColumnCollection.cs - Added ResDescriptionAttribute
387 * DataRelation.cs - Added TypeConverterAttribute
388 * DataRelationCollection.cs - Added DefaultPropertyAttribute
389 * DataRowView.cs - Added GetHashCode method with a TODO tag
390 * DataSet.cs - Added DesignerAttribute
391 * DataView.cs - Added DesignerAttribute
392 * DataViewManager.cs - Added DesignerAttribute
393 * DataViewSetting.cs - Added TypeConverterAttribute
395 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
397 * DataRow.cs : Added XmlDataElement initialization code.
399 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
401 * XmlDataInferenceLoader.cs :
402 It now requires XmlDocument as input. Improved identification of
403 DataSet element. Removed extra lines.
404 Moved boresome design notes to bottom of the source and
405 added standalone runnable driver (not included on build).
407 Update with related to the change above.
408 WriteXml() should call Flush() after writing. This fixes bug #58327.
409 * XmlSchemaDataImporter.cs :
410 Improved indentification of DataSet element.
412 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
413 * DataTable: marked initStatus enum internal
415 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
416 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
418 * DataRowView.cs: removed extra Error property
419 * DataRow.cs: reduced accessibility of CollectionChanged method
421 * DataColumnPropertyDescriptor.cs: made class internal
422 * DataColumn.cs: removed extra TypeConvertorAttribute
423 * ConstrainCollection.cs: marked PostEndInit method internal
425 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
428 In WriteXmlSchema(), when complex type contains simple type content
429 attributes must not added to XmlSchemaComplexType directly. It
430 causes schema compilation error.
431 DataRelation should not be output when related columns are hidden.
433 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
435 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
436 also expected to do ReadXml(), but I will remove that feature and
437 support column reordering).
438 * XmlSchemaDataImporter.cs : Always initialize dataset name.
439 Always set Nested and primary key for parent table.
440 * XmlDataReader.cs : Now it is used.
441 Top level element might not match to dataset name nor any table
442 name, but still possible to read content tables.
443 Handle empty element correctly in some places.
444 Handle Fragment mode (read up XmlReader to the end).
445 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
446 XmlDataInferenceLoader and XmlDataReader.
448 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
451 Eliminated CRLF injection.
452 More clear message in Clear().
453 Updates reflecting XmlSchemaDataImporter change.
454 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
455 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
456 but that depends on different behavior from ms.net).
457 Set locale also for DataTable.
458 Add xs:element only when target namespace matches to the
459 element's namespace. Otherwise, add xs:import for external namespace.
460 Put xs:sequence for dataset element's particle _only when_ actual
463 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
465 * XmlDataReader.cs : Added. This class will work better when our
466 schema inference and schema read engine gets improved. (It contains
467 standalone testable Driver class.)
469 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
471 * ForeignKeyConstraint.cs : Check step change. Existence then column
472 validity. just for tests.
473 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
476 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
478 * DataSet.cs : Ignore empty content only when output type is diffgram.
480 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
482 * CustomDataClassGenerator.cs : Modified that DataSet contains each
483 DataTable field so that each table property can access them directly.
484 (plus, modified standalone code driver code: shouldn't affect)
486 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
488 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
490 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
492 * XmlSchemaDataImporter.cs :
493 SimpleContent column support.
494 Annotated relation support.
495 Top-level element is counted only when its type is complex.
496 xs:anyType is no longer treated as complex type.
497 dataset existence is mandatory now.
498 Improved DataType and DefaultValue support.
499 Attribute namespace is properly handled now.
500 Prohibited attribute is now treated as hidden column.
501 Reject list or union simple type.
503 Still incomplete 1) to read relationship in some cases, 2) to
504 determine whether an element is dataset or table, 3) thus to
505 exclude extraneous column, 4) to remove extraneous *_Id column.
507 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
510 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
511 serialization .ctor() (thus schema read/inference should be easier).
512 DataRowSorter should consider Table's Locale.
514 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
516 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
517 use it instead of duplicating logic.
519 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
521 * ConstraintCollection.cs :
522 Use Table.CaseSensitive and Table.Locale to compare strings.
523 Duplicate constraint name exception does not occur under .NET 1.1.
525 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
527 * XmlSchemaDataImporter.cs: Added little type check.
529 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
531 * DataSet.cs: Implemented support for runtime serialization. Fixed support
532 for xml serialization.
533 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
535 2004-04-30 Umadevi S <sumadevi@novell.com>
536 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
537 * DataTableCollection.cs : Tested and removed TODO
538 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
540 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
542 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
544 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
546 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
547 constraint is defined on single column.
549 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
551 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
552 not ArgumentException (maybe changed after 1.1).
554 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
556 * DataRow.cs : When Column was added and it was AutoIncrement column,
557 it extended the item object array incorrectly.
558 (Plus tiny comment and incorrect indentation fix.)
560 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
562 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
564 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
566 * DataRow.cs : Bug fix in CopyValuesToRow().
568 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
570 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
571 each of the columns should not be unique, but only all the constraint's columns together.
573 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
576 - Added using of list of autoIncrement columns
577 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
578 - Fix in CheckNullConstraints
579 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
580 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
581 - Added onColumnRemoved() method to threat column removal accurately.
583 * DataRowCollection.cs :
584 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
585 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
588 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
590 * DataColumnCollection.cs :
592 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
593 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
594 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
597 - Uses autoincrement list of a table
599 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
601 * XmlDataLoader.cs : Even when it should ignore schema, it was
603 * XmlSchemaDataImporter.cs : DataRelation creation support.
604 Improved "DataSet" element handing. When attributes are on the
605 element, it is not a "DataSet" element.
606 Fixed parent key column name.
607 Unique name creation is not required. Just raise an error.
608 Fill facet also for attribute types.
610 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
612 * DataRow.cs : Null check for CheckReadOnlyStatus() and
613 CheckNullConstraints(), with some coding guideline fixes.
614 Type check should be done by Type instance comparison.
616 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
618 * DataColumnCollection.cs : When add a column to the collection, fill
619 auto-increment column.
621 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
623 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
625 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
627 * CustomDataClassGenerator.cs : Added.
628 * TypedDataSetGenerator.cs : Implemented Generate().
629 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
630 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
632 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
634 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
636 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
638 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
640 2004-04-23 Umadevi S (sumadevi@novell.com)
641 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
642 - Added error handling to the above methods
644 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
646 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
647 the support is incomplete yet).
649 Reverted ReadModeSchema() argument change. XmlReadMode would be
650 useful to handle IgnoreSchema.
651 Don't overwrite DataSetName when mode is not such kind.
652 Set Prefix and Namespace as well as DataSetName.
653 AllowDBNull looks set false by default for element column.
654 Set unique constraint as primary key when infering the table schema.
656 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
659 Never set null string for Prefix and Namespace.
660 In InferXmlSchema() when null XmlReader is passed, just do nothing.
661 In WriteXmlSchema(string), earlier try block.
662 In BuildSchema(), try to add serialization namespaces for each
663 namespaces in DataSet/DataTable/DataColumn.
664 Removed namespace argument from WriteColumnAsElement() and don't
665 overwrite when namespace is "". This fixes bug #57330.
666 * DataColumn.cs : For Namespace and Prefix, never set null.
668 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
670 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
671 before creating and adding foreign key constraint and relation.
673 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
675 * MergeManager.cs : In AdjustSchema() source table clone should be added
676 and not the table itself.
678 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
681 - CaseSensitive : Additional fix (removed unnesessary assignment).
682 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
684 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
686 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
688 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
691 - EndLoadData() : perfomance fix in case of null constraint violation
692 during data load (also in DataRow.cs).
693 - CaseSensitive : If DataTable belongs to DataSet it should always use
694 DataSet.CaseSensitive untill explicitly changed.
695 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
698 - Pefromance fix in case of null constraint violation
699 during data load (also in DataTable.cs).
700 - CollectionChanged() : use correct column number after new DataColumn was added
701 (differs in case some DataColumn was previosly removed).
702 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
704 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
706 * DataColumnCollection.cs : Since unique constraint is added now
707 in DataColumn.SetTable() the additional creation of constraint in
708 DataColumnCollection.Add() is redundant and causes exception - fixed.
710 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
712 * XmlDataLoader.cs : Added "never add data rows" mode.
713 Removed unused code. However, it is temporary fixes to unify
714 ReadXml() and InferXmlSchema().
715 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
717 I'll create another XmlDataLoader since there are many problems
718 such that 1) it is too waste to read the entire xml into an
719 XmlDocument, 2) it does not handle attributes correctly, and 3) it
720 must handle "ignored namespaces".
722 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
724 * Added XmlSchemaDataImporter.cs (new schema reader).
725 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
727 Let schema reading work to ReadXmlSchema().
728 Don't return ReadSchema when argument read mode was DiffGram.
730 2004-04-15 Umadevi S (sumadevi@novell.com)
731 * Updated Clone/Copy methods in DataSet along with Testcase
732 * ForeignKeyConstraint.cs - special ctor implemented
733 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).
734 * Changes in ConstraintCollection.cs for the above
735 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.
738 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
740 * XmlSchemaMapper.cs : set parent key and foreign key info to
741 DataRelation when reading refkey constraints.
742 Supply constraint name for fkey.
744 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
746 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
747 mode is Auto, just ignore the schema if there is already schema info.
748 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
750 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
753 - In MS output, XML declaration looks to have standalone decl (yes).
754 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
755 - ReadXml(reader, mode)
756 1) return originally specified mode, instead of (always) Auto.
757 2) Check empty reader.
758 3) Check diffgram schema and content separately.
759 4) When diffgram exists, remaining (the same-level) contents
761 5) Similar fact should be applied, but somewhat different.
762 InferSchema and IgnoreSchema just skips, Fragment reads both
763 schema and content, others just reads schema.
764 - Removed unused code.
766 - Read() should skip in some ReadMode.
767 - Don't compare schema element name as case-insensitive (well,
768 should schemas be checked here?)
769 - Avoided BuildDocument() not to create confusing DataSet
771 - Don't add any tables when reader has single element.
773 When target table was not found, MS.NET doesn't raise an error.
774 * XmlSchemaMapper.cs :
775 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
777 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
780 - InferXmlSchema(): Throw explicit NotImplementedException now.
781 - Don't put XML declaration everywhere. Write just for filename arg.
782 - xmlns="" should not be written. Maybe WebService problem is
783 because default namespace is overwritten. This patch will keep
784 the WS problem away and actually fixes some unit tests (i.e. use
785 explicit String.Empty for null namespace in WriteStartElement()).
786 - MoveToContent() should always be called, not only when
787 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
788 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
789 element. As to MSDN, diffgram does not contain schema.
791 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
793 * DataTable.cs: made _initStatus private so that System.Data is CLS
796 2004-04-13 Umadevi S <sumadevi@novell.com>
797 * UniqueConstraint.cs:
798 * ConstraintCollection.cs:
800 - Implemented a Constructor for UniqueConstraint.cs
801 - Used EndInit on DataTable to call a delegate which adds the
802 constraints passed to the most recent call of AddRange().Used
803 AddRange() on ConstraintCollection to check whether
804 DataTable.BeginInit has occurred. If yes, save the argument
805 constraint collection passed, then return. If no, Check whether the
806 constraints are of type UniqueConstraint and initialized with the
807 special constructor If yes Initialized the table property of this
808 UniqueConstraint object with table assosciated with the current
809 instance of ConstraintCollection class.
811 2004-04-07 Marek Safar <marek.safar@seznam.cz>
813 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
815 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
818 * DataColumnCollection.cs:
819 * DataRelationCollection.cs:
820 * DataRowCollection.cs:
821 * DataTableCollection.cs:
822 * InternalDataCollectionBase.cs:
823 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
826 2004-04-05 Jackson Harper <jackson@ximian.com>
828 * DataTable.cs: Add rows to the row list if there is no filter.
830 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
832 * DataColumn.cs : Setting Caption to null sets it to the empty string
833 (ms.net behaviour, testcase is in DataColumnTest).
835 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
838 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
840 * DataColumn.cs: In Expression setter, set the expression member even if
841 it is an empty string.
842 * DataSet.cs: Support serialization of byte[] columns.
843 * XmlDataLoader.cs: Support deserialization of Guid columns.
844 Set MappingType.Attribute to columns infered from attributes.
846 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
848 * ExpressionElements.cs : remove
849 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
850 Integration of new Mono.Data.SqlExpressions classes used in
851 DataTable.{Select, Compute}.
852 Fixes bug #55503 and lots of failures in DataTableTest.cs.
854 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
856 * Index.cs: Simple fix in ComparePartialRowNonUnique.
857 This fixes bugs #56129 and #56014.
859 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
861 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
862 stream after writing the dataset. This fixes bug #52581.
863 Also added several writer.Close into finally blocks, so writers are properly
864 closed in case of an exception.
866 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
868 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
869 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
870 * ColumnTypeConverter.cs: Added stub
871 * DefaultValueTypeConverter: Added stub
872 * ConstraintConverter.cs: Added stub
874 2004-03-04 Eran Domb <erand@mainsoft.com>
876 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
877 in MS.NET documentation (missing DataSet element etc).
879 2004-03-04 Eran Domb <erand@mainsoft.com>
882 * Index.cs : Rollback last changes.
884 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
886 * Index.cs : justa build fix.
888 2004-03-03 Eran Domb <erand@mainsoft.com>
891 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
892 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
893 This changes made for performance improvement.
895 2004-02-08 Eran Domb <erand@mainsoft.com>
897 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
899 2004-02-08 Eran Domb <erand@mainsoft.com>
901 * DataSet.cs: Fix some bugs in ReadXml().
903 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
905 * DataSet.cs: Added missing method that broke the build.
907 2004-02-04 Eran Domb <erand@mainsoft.com>
909 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
911 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
912 when all column are attributes (elements count is 0), we still want to add the relations. No relations
913 can be on simple contents.
914 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
915 (AddForeignKeys) Check that the relation has constraints attach to it.
916 * XmlConstants.cs : Added constant.
918 2004-02-04 Eran Domb <erand@mainsoft.com>
920 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
921 DoWriteXmlSchema calls BuildSchema ().
923 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
925 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
927 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
929 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
930 also be added to the dataset.
931 In WriteTable(), do not write unchanged rows when writing the original
932 version of the table.
933 Added WriteIndividualTableContent(), for writing the contents of a single
935 Changed BuildSchema and related methods, so it can generate a schema for
936 any set of tables, not just the tables of the dataset (needed for
937 single datatable serialization).
938 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
939 Also implemented some ReadXmlSchema methods.
940 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
941 instead of loading the full dataset in an XmlDocument. It is faster and
942 saves memory. Also fixed several problems when generating the changes.
943 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
944 table serialization).
946 2004-02-02 Eran Domb <erand@mainsoft.com>
948 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
949 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
950 * DataTable.cs (NewRow): Create only one DataRowBuilder.
951 Initiate new row with row id -1.
952 * DataRow.cs : Add RowId property.
953 * DataRowBuilder.cs : Add _rowId member.
954 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
956 2004-01-26 Eran Domb <erand@mainsoft.com>
958 * XmlConstants.cs : Added some constants.
959 * DataColumn.cs : Added a method to retrive AutoIncrement value.
960 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
962 * XmlDiffLoader.cs : Convert the value comming from the xml.
963 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
964 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
965 (ReadXmlSchemaElement) : Set the locale of the dataset.
966 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
967 (GetColumnType) : New method to get the column type from the attribute value.
968 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
969 and add the constraint to the table.
970 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
972 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
973 Writing more information to the schema for interoperability with ms.net.
974 Improve diffgarm writing mode.
977 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
979 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
981 2004-01-21 Eran Domb <erand@mainsoft.com>
983 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
984 Do not set the child column to be AutoIncrement.
985 Create the new column for the relation as MappingType.Hidden so they will not be serialized
986 when writing the dataset to xml.
988 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
990 * Added missing TypedDataSetGenerator.cs.
992 2004-01-08 Eran Domb <erand@mainsoft.com>
994 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
995 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
996 InferSchema, ReadSchema and IgnoreSchema.
997 * XmlDataLoader.cs : All modes use the same logic.
998 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
1000 2004-01-06 Eran Domb <erand@mainsoft.com>
1002 * DataRelationCollection.cs : Use IndexOf in indexer.
1003 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
1004 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
1005 * XmlDiffLoader.cs : Reading nested tables.
1006 * XmlSchemaMapper.cs : Reading the relation.
1007 * XmlConstants.cs : Adding some constants.
1009 2004-01-05 Jackson Harper <jackson@ximian.com>
1011 * DataView.cs: Set readonly property of property descriptor. This
1014 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
1016 * DataRelationCollection.cs : Fixed incorrect generation of default
1018 * DataSet.cs : Added missing functionality in WriteXml().
1019 * XmlConstants.cs : Added new constants.
1021 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
1023 * DataSet.cs : Fixed incorrect WriteXml() signature.
1025 2003-12-18 Jackson Harper <jackson@ximian.com>
1027 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
1029 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
1031 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
1032 they take shape of xml. This fixed bug #52240
1034 2003-12-16 Tim Coleman <tim@timcoleman.com>
1035 * KeyRestrictionBehavior.cs:
1036 New stubs added for .NET 1.2
1040 2003-12-08 Eran Domb <erand@mainsoft.com>
1041 * DataColumn.cs (Expression) : Validate the expression.
1043 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
1044 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
1046 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
1047 (RejectChanges) : Detach row when state was Added.
1048 (CollectionChanged) : Fix a bug.
1050 * ExpressionElement (ValidateExpression) : Fix a bug.
1052 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
1053 a parent row in the parent table.
1054 (_validateColumns) : Fix bugs.
1056 * MergeManager.cs (AdjustSchema) : Fix a bug.
1058 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
1061 2003-11-30 Eran Domb <erand@mainsoft.com>
1062 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
1063 (Add) : Find if the new column name is the same as the one found in IndexOf.
1064 (IndexOf) : New method.
1065 (Contains) : Use new IndexOf.
1066 (IndexOf) : Use new IndexOf.
1068 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
1069 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
1071 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
1072 (Delete) : Detach row if the RowState was Added.
1073 (GetChildRows) : Get the array form the ChildTable.
1074 (GetParentRows) : Get the array from the ParenTable.
1076 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
1078 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
1080 * DataTable.cs (PrimaryKey) : Fix bugs.
1081 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
1083 * DataTableCollection.cs (Add) : Fix a bug.
1085 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
1086 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
1087 Some code style changes (tab instead of whit spaces, alignment, etc...).
1089 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
1091 * MergeManager.cs (AdjustSchema) : Fix a bug.
1095 2003-11-26 Miguel de Icaza <miguel@ximian.com>
1097 * DataSet.cs: Add a few more missing methods, code style updated
1100 2003-11-26 Tim Coleman <tim@timcoleman.com>
1102 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
1103 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
1104 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
1105 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
1106 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
1107 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
1108 * StatementCompletedEventHandler.cs UpdateOptions.cs:
1109 New classes added for NET_2_0
1110 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
1111 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
1112 Modifications to add new NET_2_0 functions
1114 2003-11-25 Tim Coleman <tim@timcoleman.com>
1118 2003-11-21 Pedro Martínez Juliá <yoros@wanadoo.es>
1120 * DataRow.cs: Detached row can be accesible (new rows from data
1121 table are detached). Closes but #51263.
1123 2003-11-19 Eran Domb <erand@mainsoft.com>
1124 * DataRow.cs : Throw exceptions if Row is Detached.
1125 (EndEdit) : Check that we are not in middle of ChangeEvent.
1126 (AcceptChanges) : Detach the row.
1128 * DataRelation.cs : throw correct exception.
1129 *UniqueConstraint.cs : throw correct exception.
1132 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1134 * DataRow.cs: Use RemoveInternal instead of Remove because the last
1135 one uses Delete and AcceptChanges.
1137 * DataRowCollection.cs: When removing, Delete and AcceptChanges
1138 method from the row are called. Added an internal method that will
1139 be used by DataRow to "physically" remove the row from the list.
1141 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1143 * DataRowCollection.cs: To follow the specification: Remove and
1144 RemoveAt should remove the row. But needed to call DeletingDataRow
1145 to prepare the deleting.
1147 * DataRow.cs: Don't call DeletingDataRow when it is called by the
1148 method Table.Rows.Remove.
1150 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1152 * DataRowCollection.cs: Make the row be deleted by itself. If not,
1153 it fails because we need to call OnRowDeleting and OnRowDeleted. It
1154 is full implemented inside DataRow.
1156 2003-11-05 Eran Domb <erand@mainsoft.com>
1157 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
1159 2003-11-04 Eran Domb <erand@mainsoft.com>
1160 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
1162 (GetChildRows) : Adding some checks.
1163 (GetParentRows) : Adding some checks. Fix a bug in implementation.
1164 (SetParentRow) : Added implementation.
1166 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
1167 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
1168 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
1169 * MergeManager.cs : Check that the target table is not null.
1171 2003-10-27 Eran Domb <erand@mainsoft.com>
1172 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
1173 can be converted to the column type.
1175 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
1177 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
1178 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
1180 * DataRowCollection.cs (Add) : Fixing a bug.
1181 (Clear) : Before clearing the array check that there is no violation of FK constraint.
1183 * DataSet.cs (Prefix) : If value is null chage it to empty string.
1184 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
1186 * ExpressionElement : Adding support for IN expresion.
1188 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
1189 (Select) : Adding support for DataViewwRowState.
1191 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
1193 * MergeManager.cs (MergeRow) : Fix bugs.
1195 2003-10-27 Eran Domb <erand@mainsoft.com>
1196 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
1197 check null values when ending loading data.
1199 * DataSet.cs (RejectChanges) : Imlementation.
1200 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
1201 change it to empty string.
1203 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
1205 2003-10-22 Eran Domb <erand@mainsoft.com>
1206 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
1208 * ConstraintCollection.cs (RamoveAt): Change implemntation.
1210 * DataTableCollection (CanRemove): Removing cast to Constraint.
1212 2003-10-22 Eran Domb <erand@mainsoft.com>
1213 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
1214 (Clear): The collection was cleared without removing the relation from the parent and child tables.
1216 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
1217 (HasChanges, Reset): Imlementation.
1219 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
\r
1220 This is because the we do not no when to turn off the flag.
1221 (Locale): Changing implementation to behave like ADO.NET.
1222 (AcceptChanges): Fix bug.
1223 (Clear): Check that this table is not referenced from a foreign key constraint.
1224 (Copy): Do not try to access a deleted row.
1225 (CopyProperties): Copy the PrimaryKey.
1226 (GetChanges, ImportRow): Implementation.
1227 (LoadDataRow): Adding implementation if the table has PrimaryKey.
1228 (ToString): Changing implementation to behave like ADO.NET.
1230 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
1232 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
1233 (HasErrors): Implementation.
1234 (Delete): Added checking for child rows of the deleted row.
1235 (EndEdit): Added checking for child row and firing events.
1236 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
1237 (GetColumnsInError): Added a check for null values in column error.
1238 (HasVersion): Added special treatment for special RowState.
1239 (CollectionChanged): More checks to avoid NullReferenceException.
1241 * DataRowCollection.cs (Remove): Fix a bug.
\r
1244 2003-10-01 Duncan Mak <duncan@ximian.com>
1246 More patches from Eran Domb <erand@mainsoft.com>.
1248 * MergeManager.cs: New file.
1250 * DataRelationCollection.cs (AddCore): Check that a
1251 UniqueConstraint is already exists. It loops over the Relations
1252 instead of the Constraints.
1253 (Add, AddCore): The relation was added twice.
1255 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
1257 2003-09-30 Duncan Mak <duncan@ximian.com>
1259 Patches from Eran Domb <erand@mainsoft.com>.
1261 * DataRelation.cs (constructor): When the name of the relation is
1262 null, it should return an empty, not "Relation".
1264 * DataRow.cs (AcceptChanges): Added special case for
1266 (CancelEdit): Set editing flag to false.
1267 (IsNull): Check that the value is DBNull.
1269 * DataRowCollection.cs (Add): There was no check that the table of
1270 the collection is owned by a DataSet.
1272 * DataSet.cs (OnMergeFailed): Added.
1274 * UniqueConstraint.cs (AssertConstraint): There was no check that
1275 values in the row are not null, where it is a primary key
1276 column. Also check that the row has a proposed version, if not,
1277 get the current version when we compare the rows.
1279 2003-09-25 Duncan Mak <duncan@ximian.com>
1281 Patches from Eran Domb <erand@mainsoft.com>.
1283 * DataColumn.cs (Unique): Implemented.
1286 * ConstraintCollection.cs:
1287 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
1288 an Exception thrown. Details:
1289 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
1291 * DataRowCollection.cs (Add): There is no checking that there is
1292 no violation of the unique constrains.
1294 * UniqueConstraint.cs (AssertConstraint): There is no checking on
1295 all columns in the constraint.
1297 * DataTableCollection (Add): Correctly throw an Exception, more
1299 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
1300 (Remove, RemoveAt): Implemented.
1302 2003-07-31 Duncan Mak <duncan@ximian.com>
1304 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
1306 2003-07-25 Ravi Pratap <ravi@ximian.com>
1308 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
1309 method on a delegate is disallowed - fix this.
1311 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
1313 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
1314 xml serialization. Modified method of writing schema. Now it creates
1315 a XmlSchema object and serializes it using XmlSerializer.
1316 * XmlConstants.cs: Added constants for data type names.
1317 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
1318 type specified in the column.
1320 2003-04-20 Alan Tam <Tam@SiuLung.com>
1322 * DataRelationCollection.cs: Fix a bug that prevent relations
1323 from being added via DataSet.
1325 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
1327 * UniqueConstraint.cs: one tiny fix.
1329 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
1331 * DataTable.cs: Remove UniqueConstraints when adding new ones
1333 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
1335 * DataColumnCollection.cs: Little 'case sensitive' fix
1337 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
1339 * DataRow.cs: AutoIncrement handling to Constructor
1340 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
1342 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1344 * DataTable.cs: Some fixes to PrimaryKey etc...
1345 * UniqueConstraint.cs: Little clean up
1347 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1349 * DataTable.cs: Tiny fix to ToString () -method
1351 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1353 * ConstraintCollection.cs: Little fix.
1354 * DataColumn.cs: Added new internal method SetUnique()
1355 * UniqueConstraint.cs: some little fixes
1357 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
1359 * DataRowCollection.cs: Bugfixes, implementation,...
1361 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
1363 * DataColumn.cs: If DataType if set to something else than short, int
1364 or long and AutoIncrement is true, AutoIncrement is must set to false.
1366 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1369 (BeginEdit): fixed array bound problem when a column has been added.
1370 (EndEdit): just assign proposed to current as proposed is set to null.
1371 This also fixes another array boudn problem.
1373 2003-03-21 Alan Tam <Tam@SiuLung.com>
1375 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
1376 EndEdit and AcceptChanges to act correctly according to DataRowState
1378 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
1379 attached and detached from the collection.
1381 2003-03-20 Alan Tam <Tam@SiuLung.com>
1383 * DataColumn.cs: Store empty string for Expression when null is passed in.
1384 Classes generated by XSD.exe passes null by default.
1386 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
1388 * DataColumnCollection.cs: Tiny clean up
1390 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
1392 * DataColumn.cs: little fixes.
1393 * DataColumnCollection.cs: Lots of little fixes and improvments.
1395 2003-03-12 Alan Tam <Tam@SiuLung.com>
1397 * DataSet.cs: Fixed a bug that the file written does not close correctly.
1399 2003-03-08 Alan Tam <Tam@SiuLung.com>
1401 * DataRelationCollection.cs: Removed the mis-overridden methods
1402 * DataRow.cs: Fixed an attribute
1403 * DataSet.cs: Fixed the modifiers
1405 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
1407 * DataTableCollection.cs: The Contains (string name),
1408 IndexOf (string name) methods, and item[string name] indexer
1409 now behave more like .NET with respect to case-sensitivity.
1410 That is if there is an exactly matching item then this one is used.
1411 If there is only one item differing in case then it used.
1412 If there are more than one item differing in case then
1413 Contains returns false, IndexOf returns -1, and item[]
1414 throws an ArgumentException.
1416 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
1418 * ExpressionElement.cs: More implementation.
1420 2003-02-28 Alan Tam <Tam@SiuLung.com>
1421 * DataSet.cs: Changed WriteTable so that it now calls the newly written
1422 WriteObjectXml to direct the call to the respective XmlConvert method.
1423 This fixes the wrong format written to XML files of bool, float,
1424 double, DateTime and TimeSpan types.
1426 2003-02-25 Alan Tam <Tam@SiuLung.com>
1428 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
1429 * DataRelationCollection.cs: Implemented AddRange and Contains.
1430 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
1431 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
1432 Reimplemented most Add methods to eliminate duplicated checks.
1433 Centralized RelationName generation procedure in GetNextDefaultRelationName.
1435 2003-02-25 Alan Tam <Tam@SiuLung.com>
1437 * DataColumn.cs: Fixed wrong storage representation of Expression
1438 (using empty string instead of null) so that ToString() returns nothing.
1439 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
1440 auto column naming now works as expected. Reimplemented some Add methods
1441 to eliminate code duplication.
1443 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
1445 * DataTable.cs: DataTable.CaseSensitive follows parent
1446 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
1447 been changed directly from DataTable
1449 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
1451 * DataSet.cs: When CaseSensitive property is changed all of the Tables
1452 of DataSet have to change too
1454 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
1456 * InternalDataCollectionBase.cs: revert change to field
1459 * DataViewManager.cs
1462 * DataSet.cs: commented use of DesignerAttribute
1463 because it broke the build. According to MSDN,
1464 DesignerAttribute does not have a zero-argument constructor
1466 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
1468 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
1470 2003-02-18 Alan Tam <Tam@SiuLung.com>
1472 * DataRow.cs: Implemented GetParentRow and GetParentRows.
1473 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
1474 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
1475 RaisePropertyChanging.
1476 * DataTable.cs: Implemented NewRowArray.
1477 * DataTablePropertyDescriptor: Fixed a modifier.
1478 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
1479 * PropertyCollection.cs: Minor fix.
1480 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
1481 * DataRelation.cs DataRelationCollection.cs DataRow.cs
1482 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
1483 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
1484 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
1485 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
1486 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
1488 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
1490 * ExpressionElement.cs: More implementation
1492 2003-02-05 Alan Tam <Tam@SiuLung.com>
1494 * DataSet.cs: Added framework for DataSet.Update Implemented missing
1495 methods GetSchemaSerializable, GetSerializationData,
1496 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
1498 * DataTable.cs: Implemented missing methods CreateInstance and
1499 GetRowType for DataTable
1501 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
1503 * DataSet.cs: Implemented private method MapType for
1504 mapping datatypes for XmlSchema
1506 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1508 * DataView.cs: implemented Dispose.
1510 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
1512 * ExpressionElement.cs: Added new file. This file is for parsing
1513 and DataData.Select () -methods and DataColumn.Expression -property
1514 * DataTable.cs: Implemented Select(string) -method
1516 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
1518 * DataSet.cs: One little fix to writing xml
1520 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
1522 * XmlSchemaMapper.cs: Some fixes.
1523 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
1526 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
1528 * UniqueConstraint.cs: Do not set columns Unique property true
1530 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
1532 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
1534 * DataTableCollection.cs: Now names new DataTable if it doesn't
1535 already have a name.
1537 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
1539 * XmlSchemaMapper.cs: Improvments.
1540 * XmlConstaints.cs: Added more constants.
1541 * DataSet.cs: Improvments of reading and writing xml
1542 * DataColumn.cs: Added default values of properties.
1544 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
1546 * XmlSchemaMapper.cs: Some improvments
1548 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
1550 * DataRowCollection.cs: Added IndexOutOfRangeException
1551 * DataTableCollection.cs: Added OnCollectionChanging and
1552 OnCollectionChanged events.
1553 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
1554 * DataTable.cs: Implemented Copy () and Clone () methods.
1555 * XmlDataLoader.cs: some fixes.
1556 * XmlSchemaMapper.cs: comments.
1558 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1560 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
1562 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1564 * DataColumnPropertyDescriptor.cs: fixed typo.
1565 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
1566 to get the DataViewManager and removed TablePD class.
1567 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
1568 suggested by danmorg.
1570 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
1572 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
1574 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
1575 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
1577 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1579 * DataView.cs: made dataViewManager internal.
1580 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
1581 properties of the object, but the values of the columns present in a
1584 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
1585 which returns a PropertyDescriptorCollection. Created a new class
1586 derived from PropertyDescriptor that treats Table as an object whose
1587 properties are DataRowView.
1589 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1591 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
1593 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1595 * DataColumn.cs: ExtendedProperties is by default !null-
1597 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1599 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
1600 set column's ordinal.
1602 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
1605 * XmlDataLoader.cs: XmlReader closing fixes.
1606 * XmlSchemaReader.cs: Added support for ref=
1608 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
1611 - Added XmlReader and XmlWriter Closing.
1612 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
1613 * XmlSchemaMapper.cs
1614 - Much better way IMHO to map xmlschema than the old one in
1615 DataSet.cs. Its, more flexible, cleaner, ...
1617 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
1619 * XmlDataLoader.cs: Reading diffgrams.
1621 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
1623 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
1624 * DataTable.cs: Added ChanginDataColumn () for triggering
1625 DataColumnChanging event
1627 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
1629 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
1631 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
1633 * DataSet.cs: Indentations to WriteXml ()
1635 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
1638 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
1639 class XmlDataLoader.cs
1641 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
1643 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
1645 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
1647 * DataSet.cs: Started to implement ReadXml-methods.
1649 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1651 * DataSet.cs: implemented DefaultViewManager and GetList.
1653 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
1654 DataList in System.Web.
1656 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
1659 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
1662 * DataTable.cs: Fixed NullException (rollback -event)
1663 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
1665 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
1668 * DataRowCollection.cs: Moved event triggering from DataRow to
1671 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
1673 * DataSet.cs: Little fix to WriteTable () -method
1674 and DoReadXmlSchema () -method.
1676 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
1678 * DataSet.cs: Clean up to reading xmlschema. This looks much better
1679 now (work better too), but it not working correctly yet.
1681 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
1684 * DataRowCollection.cs: Added some event handlins stuff.
1685 * DataSet.cs: Some fixes.
1686 * DataTable.cs: Added event handlers.
1688 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
1690 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
1692 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
1694 * System.Data/DataRow.cs: Added internal property XmlDataID
1696 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
1698 * DataSystem.Data.DataTableCollection.cs:
1699 Removed HashTable. There could be situations where DataTable
1700 is added to collection before it hava TableName. So using
1701 HashTable is impossible.
1703 2002-11-19 Carlos Guzmán Álvarez <carlosga@telefonica.net>
1705 * DataRow.cs: an object that is equal to null
1706 should be allowed to be set in this indexer too
1709 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
1711 * DataColumnPropertyDescriptor.cs: added file
1713 * System.Data/DataRowView.cs: started implementation
1715 * DataTable.cs: stubbed more interfaces. Implemented
1716 IListSource.GetList()
1718 * DataView.cs: stubbed more interfaces. Implemented
1719 some properties and methods: GetEnumerator(),
1720 ITypedList.GetItemProperties, Item indexer, CopyTo()
1722 2002-05-18 Nick Drochak <ndrochak@gol.com>
1724 * DataRow.cs: Fix typo.