1 2004-08-18 Umadevi S <sumadevi@novell.com>
2 * DataView.cs - Completed most of the event handling.
3 Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
4 Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
5 * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
7 2004-08-06 Atsushi Enomoto <atsushi@ximian.com>
9 * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
11 2004-08-05 Atsushi Enomoto <atsushi@ximian.com>
13 * XmlConstants.cs : Added constants for "msprop" support.
14 * DataSet.cs : ExtendedProperties should be written in the schema.
15 This fixes bug #61233.
17 2004-07-27 Atsushi Enomoto <atsushi@ximian.com>
19 * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
20 used. There were also some culture dependency problems to write int.
22 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
24 * XmlDataInferenceLoader.cs : It was not always filling relation
25 child table information correctly. This fixes bug #60742.
27 2004-06-23 Umadevi S <sumadevi@novell.com>
28 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
30 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
32 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
33 schema is inside the document element (as created in XmlWriteMode
34 .WriteSchema), it should read schema from that non-document element.
35 This fixes one case reported in bug #60470.
37 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
39 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
40 inference target. For bug #60470. (MS does not support schema
41 document inference and results in unconsistent dataset structure.)
43 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
45 * DataTableCollection.cs : reset the table's DataSet to null when
46 removing a table from this collection.
47 * DataTable.cs : When Namespace is not specified explicitly, its
48 Namespace property reflects DataSet's Namespace if exist.
49 This fixes bug #60469.
51 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
53 * DBConcurrentcyException.cs: CRLF to LF
54 * DataViewSetting.cs: CRLF to LF
56 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
58 * DataViewSetting.cs: renamed fields to match MS.NET
60 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
62 * DBConcurrencyException.cs: fixed serialization compatibility with
65 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
67 * ChangeLog : Fix for misspelled words.
69 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
71 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
73 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
76 - Table stores default values for columns in special default values row.
77 It is allocated once (in NewRow).
78 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
79 - OnRemoveColumn has nothing to perform by now.
81 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
84 - Changed access of original, current and proposed indexes to internal.
85 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
86 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
87 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
88 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
89 Care about Null and DBNull values is now in DataContainer.
90 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
91 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
92 - Fix in CopyState : clone column errors.
93 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
95 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
97 * DataColumnCollection.cs :
98 - Fix : Add() now delegates to Add(DataColumn).
99 - autoIncrement list holds DataColumn objects, and not just column names.
101 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
104 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
105 - DefaultValue fixes. Default value from now on is also stored in special record in
106 DataTable, so we're able to set default value for the column faster (typed).
109 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
111 * DataSet.cs : children of non-root rows were not properly written.
114 2004-06-10 Umadevi S <sumadevi@novell.com>
115 * DataRelation.cs - Constructor
116 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
118 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
120 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
122 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
124 * Constraint.cs: marked methods internal to fix public API
125 * ConstraintCollection.cs: to fix public API, use
126 DataTable.fInitInProgress to check whether initialization
127 of DataTable is in progress
128 * DataColumn.cs: added stubs for missing methods
129 * DataRowBuilder.cs: marked Table property internal to
131 * DataSet.cs: removed extra empty destructor, marked
132 OnMergeFailed internal to fix public API
133 * DataTable.cs: use fInitInProgress field to hold init
134 status, to match MS.NET
135 * DataView.cs: added missing attributes on IsOpen
137 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
139 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
140 in XmlNamespaceManager.
142 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
144 * DataSet.cs : complex table content child was not properly added
145 when it is the only one child in the parent table. Fixed bug #53959.
147 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
148 * DataTableTypeConverter.cs: added
149 * DataView.cs: added missing attribute on Table property
150 * DataViewManager.cs: moved attribute to correct property
151 * UniqueConstraint.cs: removed extra ReadOnly attribute from
152 IsPrimaryKey property
154 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
156 * DataRow.cs : ColumnsChanged event is not required in .ctor().
158 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
160 * XmlDataReader.cs : type change is required before setting value
163 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
165 * DataSet.cs : Loop-break of the last fix was incorrect.
167 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
169 * DataSet.cs : When a row has no parent row but the table has parent
170 relation(s), that row had been always ignored.
172 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
174 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
175 rejected same-named tables in different hierarchy. Thanks to Boris.
177 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
179 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
180 infinite loop. Thanks to Boris for this fix.
182 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
184 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
185 Thanks to Boris for this fix.
187 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
189 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
190 for ReadXml(). Thanks to Boris.
192 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
194 - CheckReadOnlyStatus : use typed (and faster comparing).
195 - EndEdit : bug fix - do not dispose record if it holds original version.
196 - SetValuesFromDataRecord : Take care about autoincrement columns.
199 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
201 * MergeManager.cs : don't output debug message to Console.
203 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
205 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
206 structure. Thanks to Boris Kirzner for the fix.
208 2004-05-27 Umadevi S <sumadevi@novell.com>
209 * DataRelationCollection.cs - fixed nunit test errors
211 2004-05-27 Umadevi S <sumadevi@novell.com>
212 * DataTableCollection.cs - fixed nunit test errors
214 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
216 * DataColumnCollection.cs : NullReferenceException was thrown when
217 the table was not found.
218 * DataRowCollection.cs :
219 Find() just returns null for null value under MS.NET 1.1.
220 RemoveAt() should also avoid to call AcceptChanges() like Remove().
221 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
222 directly under MS.NET (for nunit test).
224 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
226 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
227 caused problem on qualified name to get schema Field name.
229 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
231 * XmlDataReader.cs : Now data reader is namespace aware in all places.
232 When table's namespace is different, it entered to infinite loop.
234 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
235 * MergeManager.cs : AdjustSchema now updates by reference new created table,
236 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
239 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
241 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
242 * DataColumnCollection.cs : fixed parantethes.
244 - AcceptChanges : do nothing if row state is unchanged.
245 - GetChildRows, GetParentRows : bug fix (use correct index).
246 * DataRowCollection.cs : bug fix (compare all row's values).
247 * DataTable.cs : bug fix (use correct row version).
249 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
251 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
252 When content type is Mixed, text column is not required (it is
253 required only when the complex type has no particle).
254 "Repeated element" column is also created (considering maxOccurs=0
255 and complex content extension).
257 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
259 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
262 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
264 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
265 Fixed relation inference to consider attribute XPath.
267 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
269 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
272 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
274 * DataColumn.cs - removed default member attribute.
276 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
279 DataColumnChangeEventArgs.cs,
280 DataColumnCollection.cs,
282 DataRowCollection.cs,
284 Index.cs : Data storage in the row is redesigned. Now data is stored in
285 typed containers inside DataColumn. Row holds its versions as indexes inside
286 each of data container, accessed through the row that holds it.
288 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
290 * UniqueConstraint.cs - added comment.
292 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
294 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
297 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
300 XmlDataInferenceLoader.cs,
302 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
303 XmlEncode every local name to write. This should fix bug #58268.
305 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
307 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
308 Supported repeated elements. Removed MonoTODOs.
309 * XmlDataInferenceLoader.cs : Design change to support ignored
310 namespace and repeated elements.
311 * XmlSchemaDataImporter.cs : Added mapping support classes.
313 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
315 * CustomDataClassGenerator.cs :
316 Added property parent "[foo]Row" and children "Get[foo]Row" support
317 for custom DataRow classes.
318 Fixed DataColumn property accessibility (public --> internal).
320 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
322 * CustomDataClassGenerator.cs :
323 - Put classes inside custom DataSet class.
324 - Added automatic DataRelation creation support.
325 - Added Constraints creation support. That is done separate from
326 relations, since they might be independently created.
327 - Added non-MS public DataRelation fields.
328 - Removed extraneous "DataRelation type generation" code.
329 - Fixed custom_dataset.Initialize() not to create "c" field that
330 was created more than once.
331 - Implemented AddxxxRow() that takes parameters for every column.
333 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
335 * XmlSchemaDataImporter.cs : When primary key is used more than once,
336 DataRelation borked because of empty parent column name.
338 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
340 * XmlSchemaDataImporter.cs : When Creating constraints with related
341 to DataRelation creation, also set PrimaryKey to the parent table.
343 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
345 * XmlSchemaDataImporter.cs :
346 Design change to add indirect table and relation structures.
347 Support for "relation" annotation for local element.
348 Support for repeatable simple element column (maxOccurs > 1).
349 Fixed handling of Nested property on DataRelation (for globally
350 annotated relation, Nested is false).
352 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
354 * DataRow.cs : Added DataElement property to avoid storing every row-
355 element mapping. It stored even for nodes that should be removed.
357 2004-05-13 Umadevi S <sumadevi@novell.com>
359 * RelationshipConverter.cs - Stubbed this class
360 * DataRelation.cs - added TypeConveterAttribute
362 2004-05-13 Umadevi S <sumadevi@novell.com>
364 * DataColumnCollection.cs - Added ResDescriptionAttribute
365 * DataRelation.cs - Added TypeConverterAttribute
366 * DataRelationCollection.cs - Added DefaultPropertyAttribute
367 * DataRowView.cs - Added GetHashCode method with a TODO tag
368 * DataSet.cs - Added DesignerAttribute
369 * DataView.cs - Added DesignerAttribute
370 * DataViewManager.cs - Added DesignerAttribute
371 * DataViewSetting.cs - Added TypeConverterAttribute
373 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
375 * DataRow.cs : Added XmlDataElement initialization code.
377 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
379 * XmlDataInferenceLoader.cs :
380 It now requires XmlDocument as input. Improved identification of
381 DataSet element. Removed extra lines.
382 Moved boresome design notes to bottom of the source and
383 added standalone runnable driver (not included on build).
385 Update with related to the change above.
386 WriteXml() should call Flush() after writing. This fixes bug #58327.
387 * XmlSchemaDataImporter.cs :
388 Improved indentification of DataSet element.
390 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
391 * DataTable: marked initStatus enum internal
393 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
394 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
396 * DataRowView.cs: removed extra Error property
397 * DataRow.cs: reduced accessibility of CollectionChanged method
399 * DataColumnPropertyDescriptor.cs: made class internal
400 * DataColumn.cs: removed extra TypeConvertorAttribute
401 * ConstrainCollection.cs: marked PostEndInit method internal
403 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
406 In WriteXmlSchema(), when complex type contains simple type content
407 attributes must not added to XmlSchemaComplexType directly. It
408 causes schema compilation error.
409 DataRelation should not be output when related columns are hidden.
411 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
413 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
414 also expected to do ReadXml(), but I will remove that feature and
415 support column reordering).
416 * XmlSchemaDataImporter.cs : Always initialize dataset name.
417 Always set Nested and primary key for parent table.
418 * XmlDataReader.cs : Now it is used.
419 Top level element might not match to dataset name nor any table
420 name, but still possible to read content tables.
421 Handle empty element correctly in some places.
422 Handle Fragment mode (read up XmlReader to the end).
423 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
424 XmlDataInferenceLoader and XmlDataReader.
426 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
429 Eliminated CRLF injection.
430 More clear message in Clear().
431 Updates reflecting XmlSchemaDataImporter change.
432 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
433 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
434 but that depends on different behavior from ms.net).
435 Set locale also for DataTable.
436 Add xs:element only when target namespace matches to the
437 element's namespace. Otherwise, add xs:import for external namespace.
438 Put xs:sequence for dataset element's particle _only when_ actual
441 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
443 * XmlDataReader.cs : Added. This class will work better when our
444 schema inference and schema read engine gets improved. (It contains
445 standalone testable Driver class.)
447 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
449 * ForeignKeyConstraint.cs : Check step change. Existence then column
450 validity. just for tests.
451 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
454 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
456 * DataSet.cs : Ignore empty content only when output type is diffgram.
458 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
460 * CustomDataClassGenerator.cs : Modified that DataSet contains each
461 DataTable field so that each table property can access them directly.
462 (plus, modified standalone code driver code: shouldn't affect)
464 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
466 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
468 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
470 * XmlSchemaDataImporter.cs :
471 SimpleContent column support.
472 Annotated relation support.
473 Top-level element is counted only when its type is complex.
474 xs:anyType is no longer treated as complex type.
475 dataset existence is mandatory now.
476 Improved DataType and DefaultValue support.
477 Attribute namespace is properly handled now.
478 Prohibited attribute is now treated as hidden column.
479 Reject list or union simple type.
481 Still incomplete 1) to read relationship in some cases, 2) to
482 determine whether an element is dataset or table, 3) thus to
483 exclude extraneous column, 4) to remove extraneous *_Id column.
485 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
488 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
489 serialization .ctor() (thus schema read/inference should be easier).
490 DataRowSorter should consider Table's Locale.
492 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
494 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
495 use it instead of duplicating logic.
497 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
499 * ConstraintCollection.cs :
500 Use Table.CaseSensitive and Table.Locale to compare strings.
501 Duplicate constraint name exception does not occur under .NET 1.1.
503 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
505 * XmlSchemaDataImporter.cs: Added little type check.
507 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
509 * DataSet.cs: Implemented support for runtime serialization. Fixed support
510 for xml serialization.
511 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
513 2004-04-30 Umadevi S <sumadevi@novell.com>
514 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
515 * DataTableCollection.cs : Tested and removed TODO
516 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
518 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
520 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
522 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
524 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
525 constraint is defined on single column.
527 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
529 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
530 not ArgumentException (maybe changed after 1.1).
532 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
534 * DataRow.cs : When Column was added and it was AutoIncrement column,
535 it extended the item object array incorrectly.
536 (Plus tiny comment and incorrect indentation fix.)
538 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
540 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
542 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
544 * DataRow.cs : Bug fix in CopyValuesToRow().
546 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
548 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
549 each of the columns should not be unique, but only all the constraint's columns together.
551 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
554 - Added using of list of autoIncrement columns
555 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
556 - Fix in CheckNullConstraints
557 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
558 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
559 - Added onColumnRemoved() method to threat column removal accurately.
561 * DataRowCollection.cs :
562 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
563 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
566 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
568 * DataColumnCollection.cs :
570 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
571 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
572 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
575 - Uses autoincrement list of a table
577 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
579 * XmlDataLoader.cs : Even when it should ignore schema, it was
581 * XmlSchemaDataImporter.cs : DataRelation creation support.
582 Improved "DataSet" element handing. When attributes are on the
583 element, it is not a "DataSet" element.
584 Fixed parent key column name.
585 Unique name creation is not required. Just raise an error.
586 Fill facet also for attribute types.
588 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
590 * DataRow.cs : Null check for CheckReadOnlyStatus() and
591 CheckNullConstraints(), with some coding guideline fixes.
592 Type check should be done by Type instance comparison.
594 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
596 * DataColumnCollection.cs : When add a column to the collection, fill
597 auto-increment column.
599 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
601 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
603 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
605 * CustomDataClassGenerator.cs : Added.
606 * TypedDataSetGenerator.cs : Implemented Generate().
607 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
608 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
610 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
612 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
614 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
616 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
618 2004-04-23 Umadevi S (sumadevi@novell.com)
619 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
620 - Added error handling to the above methods
622 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
624 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
625 the support is incomplete yet).
627 Reverted ReadModeSchema() argument change. XmlReadMode would be
628 useful to handle IgnoreSchema.
629 Don't overwrite DataSetName when mode is not such kind.
630 Set Prefix and Namespace as well as DataSetName.
631 AllowDBNull looks set false by default for element column.
632 Set unique constraint as primary key when infering the table schema.
634 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
637 Never set null string for Prefix and Namespace.
638 In InferXmlSchema() when null XmlReader is passed, just do nothing.
639 In WriteXmlSchema(string), earlier try block.
640 In BuildSchema(), try to add serialization namespaces for each
641 namespaces in DataSet/DataTable/DataColumn.
642 Removed namespace argument from WriteColumnAsElement() and don't
643 overwrite when namespace is "". This fixes bug #57330.
644 * DataColumn.cs : For Namespace and Prefix, never set null.
646 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
648 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
649 before creating and adding foreign key constraint and relation.
651 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
653 * MergeManager.cs : In AdjustSchema() source table clone should be added
654 and not the table itself.
656 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
659 - CaseSensitive : Additional fix (removed unnesessary assignment).
660 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
662 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
664 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
666 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
669 - EndLoadData() : perfomance fix in case of null constraint violation
670 during data load (also in DataRow.cs).
671 - CaseSensitive : If DataTable belongs to DataSet it should always use
672 DataSet.CaseSensitive untill explicitly changed.
673 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
676 - Pefromance fix in case of null constraint violation
677 during data load (also in DataTable.cs).
678 - CollectionChanged() : use correct column number after new DataColumn was added
679 (differs in case some DataColumn was previosly removed).
680 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
682 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
684 * DataColumnCollection.cs : Since unique constraint is added now
685 in DataColumn.SetTable() the additional creation of constraint in
686 DataColumnCollection.Add() is redundant and causes exception - fixed.
688 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
690 * XmlDataLoader.cs : Added "never add data rows" mode.
691 Removed unused code. However, it is temporary fixes to unify
692 ReadXml() and InferXmlSchema().
693 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
695 I'll create another XmlDataLoader since there are many problems
696 such that 1) it is too waste to read the entire xml into an
697 XmlDocument, 2) it does not handle attributes correctly, and 3) it
698 must handle "ignored namespaces".
700 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
702 * Added XmlSchemaDataImporter.cs (new schema reader).
703 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
705 Let schema reading work to ReadXmlSchema().
706 Don't return ReadSchema when argument read mode was DiffGram.
708 2004-04-15 Umadevi S (sumadevi@novell.com)
709 * Updated Clone/Copy methods in DataSet along with Testcase
710 * ForeignKeyConstraint.cs - special ctor implemented
711 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).
712 * Changes in ConstraintCollection.cs for the above
713 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.
716 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
718 * XmlSchemaMapper.cs : set parent key and foreign key info to
719 DataRelation when reading refkey constraints.
720 Supply constraint name for fkey.
722 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
724 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
725 mode is Auto, just ignore the schema if there is already schema info.
726 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
728 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
731 - In MS output, XML declaration looks to have standalone decl (yes).
732 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
733 - ReadXml(reader, mode)
734 1) return originally specified mode, instead of (always) Auto.
735 2) Check empty reader.
736 3) Check diffgram schema and content separately.
737 4) When diffgram exists, remaining (the same-level) contents
739 5) Similar fact should be applied, but somewhat different.
740 InferSchema and IgnoreSchema just skips, Fragment reads both
741 schema and content, others just reads schema.
742 - Removed unused code.
744 - Read() should skip in some ReadMode.
745 - Don't compare schema element name as case-insensitive (well,
746 should schemas be checked here?)
747 - Avoided BuildDocument() not to create confusing DataSet
749 - Don't add any tables when reader has single element.
751 When target table was not found, MS.NET doesn't raise an error.
752 * XmlSchemaMapper.cs :
753 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
755 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
758 - InferXmlSchema(): Throw explicit NotImplementedException now.
759 - Don't put XML declaration everywhere. Write just for filename arg.
760 - xmlns="" should not be written. Maybe WebService problem is
761 because default namespace is overwritten. This patch will keep
762 the WS problem away and actually fixes some unit tests (i.e. use
763 explicit String.Empty for null namespace in WriteStartElement()).
764 - MoveToContent() should always be called, not only when
765 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
766 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
767 element. As to MSDN, diffgram does not contain schema.
769 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
771 * DataTable.cs: made _initStatus private so that System.Data is CLS
774 2004-04-13 Umadevi S <sumadevi@novell.com>
775 * UniqueConstraint.cs:
776 * ConstraintCollection.cs:
778 - Implemented a Constructor for UniqueConstraint.cs
779 - Used EndInit on DataTable to call a delegate which adds the
780 constraints passed to the most recent call of AddRange().Used
781 AddRange() on ConstraintCollection to check whether
782 DataTable.BeginInit has occurred. If yes, save the argument
783 constraint collection passed, then return. If no, Check whether the
784 constraints are of type UniqueConstraint and initialized with the
785 special constructor If yes Initialized the table property of this
786 UniqueConstraint object with table assosciated with the current
787 instance of ConstraintCollection class.
789 2004-04-07 Marek Safar <marek.safar@seznam.cz>
791 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
793 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
796 * DataColumnCollection.cs:
797 * DataRelationCollection.cs:
798 * DataRowCollection.cs:
799 * DataTableCollection.cs:
800 * InternalDataCollectionBase.cs:
801 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
804 2004-04-05 Jackson Harper <jackson@ximian.com>
806 * DataTable.cs: Add rows to the row list if there is no filter.
808 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
810 * DataColumn.cs : Setting Caption to null sets it to the empty string
811 (ms.net behaviour, testcase is in DataColumnTest).
813 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
816 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
818 * DataColumn.cs: In Expression setter, set the expression member even if
819 it is an empty string.
820 * DataSet.cs: Support serialization of byte[] columns.
821 * XmlDataLoader.cs: Support deserialization of Guid columns.
822 Set MappingType.Attribute to columns infered from attributes.
824 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
826 * ExpressionElements.cs : remove
827 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
828 Integration of new Mono.Data.SqlExpressions classes used in
829 DataTable.{Select, Compute}.
830 Fixes bug #55503 and lots of failures in DataTableTest.cs.
832 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
834 * Index.cs: Simple fix in ComparePartialRowNonUnique.
835 This fixes bugs #56129 and #56014.
837 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
839 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
840 stream after writing the dataset. This fixes bug #52581.
841 Also added several writer.Close into finally blocks, so writers are properly
842 closed in case of an exception.
844 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
846 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
847 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
848 * ColumnTypeConverter.cs: Added stub
849 * DefaultValueTypeConverter: Added stub
850 * ConstraintConverter.cs: Added stub
852 2004-03-04 Eran Domb <erand@mainsoft.com>
854 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
855 in MS.NET documentation (missing DataSet element etc).
857 2004-03-04 Eran Domb <erand@mainsoft.com>
860 * Index.cs : Rollback last changes.
862 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
864 * Index.cs : justa build fix.
866 2004-03-03 Eran Domb <erand@mainsoft.com>
869 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
870 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
871 This changes made for performance improvement.
873 2004-02-08 Eran Domb <erand@mainsoft.com>
875 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
877 2004-02-08 Eran Domb <erand@mainsoft.com>
879 * DataSet.cs: Fix some bugs in ReadXml().
881 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
883 * DataSet.cs: Added missing method that broke the build.
885 2004-02-04 Eran Domb <erand@mainsoft.com>
887 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
889 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
890 when all column are attributes (elements count is 0), we still want to add the relations. No relations
891 can be on simple contents.
892 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
893 (AddForeignKeys) Check that the relation has constraints attach to it.
894 * XmlConstants.cs : Added constant.
896 2004-02-04 Eran Domb <erand@mainsoft.com>
898 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
899 DoWriteXmlSchema calls BuildSchema ().
901 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
903 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
905 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
907 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
908 also be added to the dataset.
909 In WriteTable(), do not write unchanged rows when writing the original
910 version of the table.
911 Added WriteIndividualTableContent(), for writing the contents of a single
913 Changed BuildSchema and related methods, so it can generate a schema for
914 any set of tables, not just the tables of the dataset (needed for
915 single datatable serialization).
916 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
917 Also implemented some ReadXmlSchema methods.
918 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
919 instead of loading the full dataset in an XmlDocument. It is faster and
920 saves memory. Also fixed several problems when generating the changes.
921 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
922 table serialization).
924 2004-02-02 Eran Domb <erand@mainsoft.com>
926 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
927 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
928 * DataTable.cs (NewRow): Create only one DataRowBuilder.
929 Initiate new row with row id -1.
930 * DataRow.cs : Add RowId property.
931 * DataRowBuilder.cs : Add _rowId member.
932 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
934 2004-01-26 Eran Domb <erand@mainsoft.com>
936 * XmlConstants.cs : Added some constants.
937 * DataColumn.cs : Added a method to retrive AutoIncrement value.
938 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
940 * XmlDiffLoader.cs : Convert the value comming from the xml.
941 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
942 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
943 (ReadXmlSchemaElement) : Set the locale of the dataset.
944 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
945 (GetColumnType) : New method to get the column type from the attribute value.
946 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
947 and add the constraint to the table.
948 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
950 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
951 Writing more information to the schema for interoperability with ms.net.
952 Improve diffgarm writing mode.
955 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
957 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
959 2004-01-21 Eran Domb <erand@mainsoft.com>
961 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
962 Do not set the child column to be AutoIncrement.
963 Create the new column for the relation as MappingType.Hidden so they will not be serialized
964 when writing the dataset to xml.
966 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
968 * Added missing TypedDataSetGenerator.cs.
970 2004-01-08 Eran Domb <erand@mainsoft.com>
972 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
973 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
974 InferSchema, ReadSchema and IgnoreSchema.
975 * XmlDataLoader.cs : All modes use the same logic.
976 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
978 2004-01-06 Eran Domb <erand@mainsoft.com>
980 * DataRelationCollection.cs : Use IndexOf in indexer.
981 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
982 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
983 * XmlDiffLoader.cs : Reading nested tables.
984 * XmlSchemaMapper.cs : Reading the relation.
985 * XmlConstants.cs : Adding some constants.
987 2004-01-05 Jackson Harper <jackson@ximian.com>
989 * DataView.cs: Set readonly property of property descriptor. This
992 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
994 * DataRelationCollection.cs : Fixed incorrect generation of default
996 * DataSet.cs : Added missing functionality in WriteXml().
997 * XmlConstants.cs : Added new constants.
999 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
1001 * DataSet.cs : Fixed incorrect WriteXml() signature.
1003 2003-12-18 Jackson Harper <jackson@ximian.com>
1005 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
1007 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
1009 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
1010 they take shape of xml. This fixed bug #52240
1012 2003-12-16 Tim Coleman <tim@timcoleman.com>
1013 * KeyRestrictionBehavior.cs:
1014 New stubs added for .NET 1.2
1018 2003-12-08 Eran Domb <erand@mainsoft.com>
1019 * DataColumn.cs (Expression) : Validate the expression.
1021 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
1022 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
1024 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
1025 (RejectChanges) : Detach row when state was Added.
1026 (CollectionChanged) : Fix a bug.
1028 * ExpressionElement (ValidateExpression) : Fix a bug.
1030 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
1031 a parent row in the parent table.
1032 (_validateColumns) : Fix bugs.
1034 * MergeManager.cs (AdjustSchema) : Fix a bug.
1036 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
1039 2003-11-30 Eran Domb <erand@mainsoft.com>
1040 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
1041 (Add) : Find if the new column name is the same as the one found in IndexOf.
1042 (IndexOf) : New method.
1043 (Contains) : Use new IndexOf.
1044 (IndexOf) : Use new IndexOf.
1046 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
1047 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
1049 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
1050 (Delete) : Detach row if the RowState was Added.
1051 (GetChildRows) : Get the array form the ChildTable.
1052 (GetParentRows) : Get the array from the ParenTable.
1054 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
1056 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
1058 * DataTable.cs (PrimaryKey) : Fix bugs.
1059 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
1061 * DataTableCollection.cs (Add) : Fix a bug.
1063 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
1064 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
1065 Some code style changes (tab instead of whit spaces, alignment, etc...).
1067 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
1069 * MergeManager.cs (AdjustSchema) : Fix a bug.
1073 2003-11-26 Miguel de Icaza <miguel@ximian.com>
1075 * DataSet.cs: Add a few more missing methods, code style updated
1078 2003-11-26 Tim Coleman <tim@timcoleman.com>
1080 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
1081 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
1082 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
1083 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
1084 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
1085 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
1086 * StatementCompletedEventHandler.cs UpdateOptions.cs:
1087 New classes added for NET_2_0
1088 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
1089 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
1090 Modifications to add new NET_2_0 functions
1092 2003-11-25 Tim Coleman <tim@timcoleman.com>
1096 2003-11-21 Pedro Martínez Juliá <yoros@wanadoo.es>
1098 * DataRow.cs: Detached row can be accesible (new rows from data
1099 table are detached). Closes but #51263.
1101 2003-11-19 Eran Domb <erand@mainsoft.com>
1102 * DataRow.cs : Throw exceptions if Row is Detached.
1103 (EndEdit) : Check that we are not in middle of ChangeEvent.
1104 (AcceptChanges) : Detach the row.
1106 * DataRelation.cs : throw correct exception.
1107 *UniqueConstraint.cs : throw correct exception.
1110 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1112 * DataRow.cs: Use RemoveInternal instead of Remove because the last
1113 one uses Delete and AcceptChanges.
1115 * DataRowCollection.cs: When removing, Delete and AcceptChanges
1116 method from the row are called. Added an internal method that will
1117 be used by DataRow to "physically" remove the row from the list.
1119 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1121 * DataRowCollection.cs: To follow the specification: Remove and
1122 RemoveAt should remove the row. But needed to call DeletingDataRow
1123 to prepare the deleting.
1125 * DataRow.cs: Don't call DeletingDataRow when it is called by the
1126 method Table.Rows.Remove.
1128 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1130 * DataRowCollection.cs: Make the row be deleted by itself. If not,
1131 it fails because we need to call OnRowDeleting and OnRowDeleted. It
1132 is full implemented inside DataRow.
1134 2003-11-05 Eran Domb <erand@mainsoft.com>
1135 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
1137 2003-11-04 Eran Domb <erand@mainsoft.com>
1138 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
1140 (GetChildRows) : Adding some checks.
1141 (GetParentRows) : Adding some checks. Fix a bug in implementation.
1142 (SetParentRow) : Added implementation.
1144 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
1145 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
1146 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
1147 * MergeManager.cs : Check that the target table is not null.
1149 2003-10-27 Eran Domb <erand@mainsoft.com>
1150 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
1151 can be converted to the column type.
1153 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
1155 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
1156 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
1158 * DataRowCollection.cs (Add) : Fixing a bug.
1159 (Clear) : Before clearing the array check that there is no violation of FK constraint.
1161 * DataSet.cs (Prefix) : If value is null chage it to empty string.
1162 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
1164 * ExpressionElement : Adding support for IN expresion.
1166 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
1167 (Select) : Adding support for DataViewwRowState.
1169 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
1171 * MergeManager.cs (MergeRow) : Fix bugs.
1173 2003-10-27 Eran Domb <erand@mainsoft.com>
1174 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
1175 check null values when ending loading data.
1177 * DataSet.cs (RejectChanges) : Imlementation.
1178 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
1179 change it to empty string.
1181 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
1183 2003-10-22 Eran Domb <erand@mainsoft.com>
1184 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
1186 * ConstraintCollection.cs (RamoveAt): Change implemntation.
1188 * DataTableCollection (CanRemove): Removing cast to Constraint.
1190 2003-10-22 Eran Domb <erand@mainsoft.com>
1191 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
1192 (Clear): The collection was cleared without removing the relation from the parent and child tables.
1194 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
1195 (HasChanges, Reset): Imlementation.
1197 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
\r
1198 This is because the we do not no when to turn off the flag.
1199 (Locale): Changing implementation to behave like ADO.NET.
1200 (AcceptChanges): Fix bug.
1201 (Clear): Check that this table is not referenced from a foreign key constraint.
1202 (Copy): Do not try to access a deleted row.
1203 (CopyProperties): Copy the PrimaryKey.
1204 (GetChanges, ImportRow): Implementation.
1205 (LoadDataRow): Adding implementation if the table has PrimaryKey.
1206 (ToString): Changing implementation to behave like ADO.NET.
1208 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
1210 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
1211 (HasErrors): Implementation.
1212 (Delete): Added checking for child rows of the deleted row.
1213 (EndEdit): Added checking for child row and firing events.
1214 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
1215 (GetColumnsInError): Added a check for null values in column error.
1216 (HasVersion): Added special treatment for special RowState.
1217 (CollectionChanged): More checks to avoid NullReferenceException.
1219 * DataRowCollection.cs (Remove): Fix a bug.
\r
1222 2003-10-01 Duncan Mak <duncan@ximian.com>
1224 More patches from Eran Domb <erand@mainsoft.com>.
1226 * MergeManager.cs: New file.
1228 * DataRelationCollection.cs (AddCore): Check that a
1229 UniqueConstraint is already exists. It loops over the Relations
1230 instead of the Constraints.
1231 (Add, AddCore): The relation was added twice.
1233 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
1235 2003-09-30 Duncan Mak <duncan@ximian.com>
1237 Patches from Eran Domb <erand@mainsoft.com>.
1239 * DataRelation.cs (constructor): When the name of the relation is
1240 null, it should return an empty, not "Relation".
1242 * DataRow.cs (AcceptChanges): Added special case for
1244 (CancelEdit): Set editing flag to false.
1245 (IsNull): Check that the value is DBNull.
1247 * DataRowCollection.cs (Add): There was no check that the table of
1248 the collection is owned by a DataSet.
1250 * DataSet.cs (OnMergeFailed): Added.
1252 * UniqueConstraint.cs (AssertConstraint): There was no check that
1253 values in the row are not null, where it is a primary key
1254 column. Also check that the row has a proposed version, if not,
1255 get the current version when we compare the rows.
1257 2003-09-25 Duncan Mak <duncan@ximian.com>
1259 Patches from Eran Domb <erand@mainsoft.com>.
1261 * DataColumn.cs (Unique): Implemented.
1264 * ConstraintCollection.cs:
1265 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
1266 an Exception thrown. Details:
1267 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
1269 * DataRowCollection.cs (Add): There is no checking that there is
1270 no violation of the unique constrains.
1272 * UniqueConstraint.cs (AssertConstraint): There is no checking on
1273 all columns in the constraint.
1275 * DataTableCollection (Add): Correctly throw an Exception, more
1277 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
1278 (Remove, RemoveAt): Implemented.
1280 2003-07-31 Duncan Mak <duncan@ximian.com>
1282 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
1284 2003-07-25 Ravi Pratap <ravi@ximian.com>
1286 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
1287 method on a delegate is disallowed - fix this.
1289 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
1291 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
1292 xml serialization. Modified method of writing schema. Now it creates
1293 a XmlSchema object and serializes it using XmlSerializer.
1294 * XmlConstants.cs: Added constants for data type names.
1295 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
1296 type specified in the column.
1298 2003-04-20 Alan Tam <Tam@SiuLung.com>
1300 * DataRelationCollection.cs: Fix a bug that prevent relations
1301 from being added via DataSet.
1303 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
1305 * UniqueConstraint.cs: one tiny fix.
1307 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
1309 * DataTable.cs: Remove UniqueConstraints when adding new ones
1311 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
1313 * DataColumnCollection.cs: Little 'case sensitive' fix
1315 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
1317 * DataRow.cs: AutoIncrement handling to Constructor
1318 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
1320 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1322 * DataTable.cs: Some fixes to PrimaryKey etc...
1323 * UniqueConstraint.cs: Little clean up
1325 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1327 * DataTable.cs: Tiny fix to ToString () -method
1329 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1331 * ConstraintCollection.cs: Little fix.
1332 * DataColumn.cs: Added new internal method SetUnique()
1333 * UniqueConstraint.cs: some little fixes
1335 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
1337 * DataRowCollection.cs: Bugfixes, implementation,...
1339 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
1341 * DataColumn.cs: If DataType if set to something else than short, int
1342 or long and AutoIncrement is true, AutoIncrement is must set to false.
1344 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1347 (BeginEdit): fixed array bound problem when a column has been added.
1348 (EndEdit): just assign proposed to current as proposed is set to null.
1349 This also fixes another array boudn problem.
1351 2003-03-21 Alan Tam <Tam@SiuLung.com>
1353 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
1354 EndEdit and AcceptChanges to act correctly according to DataRowState
1356 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
1357 attached and detached from the collection.
1359 2003-03-20 Alan Tam <Tam@SiuLung.com>
1361 * DataColumn.cs: Store empty string for Expression when null is passed in.
1362 Classes generated by XSD.exe passes null by default.
1364 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
1366 * DataColumnCollection.cs: Tiny clean up
1368 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
1370 * DataColumn.cs: little fixes.
1371 * DataColumnCollection.cs: Lots of little fixes and improvments.
1373 2003-03-12 Alan Tam <Tam@SiuLung.com>
1375 * DataSet.cs: Fixed a bug that the file written does not close correctly.
1377 2003-03-08 Alan Tam <Tam@SiuLung.com>
1379 * DataRelationCollection.cs: Removed the mis-overridden methods
1380 * DataRow.cs: Fixed an attribute
1381 * DataSet.cs: Fixed the modifiers
1383 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
1385 * DataTableCollection.cs: The Contains (string name),
1386 IndexOf (string name) methods, and item[string name] indexer
1387 now behave more like .NET with respect to case-sensitivity.
1388 That is if there is an exactly matching item then this one is used.
1389 If there is only one item differing in case then it used.
1390 If there are more than one item differing in case then
1391 Contains returns false, IndexOf returns -1, and item[]
1392 throws an ArgumentException.
1394 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
1396 * ExpressionElement.cs: More implementation.
1398 2003-02-28 Alan Tam <Tam@SiuLung.com>
1399 * DataSet.cs: Changed WriteTable so that it now calls the newly written
1400 WriteObjectXml to direct the call to the respective XmlConvert method.
1401 This fixes the wrong format written to XML files of bool, float,
1402 double, DateTime and TimeSpan types.
1404 2003-02-25 Alan Tam <Tam@SiuLung.com>
1406 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
1407 * DataRelationCollection.cs: Implemented AddRange and Contains.
1408 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
1409 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
1410 Reimplemented most Add methods to eliminate duplicated checks.
1411 Centralized RelationName generation procedure in GetNextDefaultRelationName.
1413 2003-02-25 Alan Tam <Tam@SiuLung.com>
1415 * DataColumn.cs: Fixed wrong storage representation of Expression
1416 (using empty string instead of null) so that ToString() returns nothing.
1417 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
1418 auto column naming now works as expected. Reimplemented some Add methods
1419 to eliminate code duplication.
1421 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
1423 * DataTable.cs: DataTable.CaseSensitive follows parent
1424 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
1425 been changed directly from DataTable
1427 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
1429 * DataSet.cs: When CaseSensitive property is changed all of the Tables
1430 of DataSet have to change too
1432 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
1434 * InternalDataCollectionBase.cs: revert change to field
1437 * DataViewManager.cs
1440 * DataSet.cs: commented use of DesignerAttribute
1441 because it broke the build. According to MSDN,
1442 DesignerAttribute does not have a zero-argument constructor
1444 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
1446 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
1448 2003-02-18 Alan Tam <Tam@SiuLung.com>
1450 * DataRow.cs: Implemented GetParentRow and GetParentRows.
1451 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
1452 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
1453 RaisePropertyChanging.
1454 * DataTable.cs: Implemented NewRowArray.
1455 * DataTablePropertyDescriptor: Fixed a modifier.
1456 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
1457 * PropertyCollection.cs: Minor fix.
1458 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
1459 * DataRelation.cs DataRelationCollection.cs DataRow.cs
1460 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
1461 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
1462 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
1463 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
1464 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
1466 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
1468 * ExpressionElement.cs: More implementation
1470 2003-02-05 Alan Tam <Tam@SiuLung.com>
1472 * DataSet.cs: Added framework for DataSet.Update Implemented missing
1473 methods GetSchemaSerializable, GetSerializationData,
1474 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
1476 * DataTable.cs: Implemented missing methods CreateInstance and
1477 GetRowType for DataTable
1479 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
1481 * DataSet.cs: Implemented private method MapType for
1482 mapping datatypes for XmlSchema
1484 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1486 * DataView.cs: implemented Dispose.
1488 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
1490 * ExpressionElement.cs: Added new file. This file is for parsing
1491 and DataData.Select () -methods and DataColumn.Expression -property
1492 * DataTable.cs: Implemented Select(string) -method
1494 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
1496 * DataSet.cs: One little fix to writing xml
1498 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
1500 * XmlSchemaMapper.cs: Some fixes.
1501 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
1504 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
1506 * UniqueConstraint.cs: Do not set columns Unique property true
1508 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
1510 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
1512 * DataTableCollection.cs: Now names new DataTable if it doesn't
1513 already have a name.
1515 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
1517 * XmlSchemaMapper.cs: Improvments.
1518 * XmlConstaints.cs: Added more constants.
1519 * DataSet.cs: Improvments of reading and writing xml
1520 * DataColumn.cs: Added default values of properties.
1522 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
1524 * XmlSchemaMapper.cs: Some improvments
1526 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
1528 * DataRowCollection.cs: Added IndexOutOfRangeException
1529 * DataTableCollection.cs: Added OnCollectionChanging and
1530 OnCollectionChanged events.
1531 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
1532 * DataTable.cs: Implemented Copy () and Clone () methods.
1533 * XmlDataLoader.cs: some fixes.
1534 * XmlSchemaMapper.cs: comments.
1536 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1538 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
1540 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1542 * DataColumnPropertyDescriptor.cs: fixed typo.
1543 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
1544 to get the DataViewManager and removed TablePD class.
1545 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
1546 suggested by danmorg.
1548 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
1550 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
1552 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
1553 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
1555 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1557 * DataView.cs: made dataViewManager internal.
1558 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
1559 properties of the object, but the values of the columns present in a
1562 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
1563 which returns a PropertyDescriptorCollection. Created a new class
1564 derived from PropertyDescriptor that treats Table as an object whose
1565 properties are DataRowView.
1567 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1569 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
1571 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1573 * DataColumn.cs: ExtendedProperties is by default !null-
1575 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1577 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
1578 set column's ordinal.
1580 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
1583 * XmlDataLoader.cs: XmlReader closing fixes.
1584 * XmlSchemaReader.cs: Added support for ref=
1586 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
1589 - Added XmlReader and XmlWriter Closing.
1590 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
1591 * XmlSchemaMapper.cs
1592 - Much better way IMHO to map xmlschema than the old one in
1593 DataSet.cs. Its, more flexible, cleaner, ...
1595 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
1597 * XmlDataLoader.cs: Reading diffgrams.
1599 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
1601 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
1602 * DataTable.cs: Added ChanginDataColumn () for triggering
1603 DataColumnChanging event
1605 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
1607 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
1609 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
1611 * DataSet.cs: Indentations to WriteXml ()
1613 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
1616 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
1617 class XmlDataLoader.cs
1619 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
1621 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
1623 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
1625 * DataSet.cs: Started to implement ReadXml-methods.
1627 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1629 * DataSet.cs: implemented DefaultViewManager and GetList.
1631 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
1632 DataList in System.Web.
1634 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
1637 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
1640 * DataTable.cs: Fixed NullException (rollback -event)
1641 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
1643 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
1646 * DataRowCollection.cs: Moved event triggering from DataRow to
1649 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
1651 * DataSet.cs: Little fix to WriteTable () -method
1652 and DoReadXmlSchema () -method.
1654 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
1656 * DataSet.cs: Clean up to reading xmlschema. This looks much better
1657 now (work better too), but it not working correctly yet.
1659 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
1662 * DataRowCollection.cs: Added some event handlins stuff.
1663 * DataSet.cs: Some fixes.
1664 * DataTable.cs: Added event handlers.
1666 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
1668 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
1670 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
1672 * System.Data/DataRow.cs: Added internal property XmlDataID
1674 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
1676 * DataSystem.Data.DataTableCollection.cs:
1677 Removed HashTable. There could be situations where DataTable
1678 is added to collection before it hava TableName. So using
1679 HashTable is impossible.
1681 2002-11-19 Carlos Guzmán Álvarez <carlosga@telefonica.net>
1683 * DataRow.cs: an object that is equal to null
1684 should be allowed to be set in this indexer too
1687 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
1689 * DataColumnPropertyDescriptor.cs: added file
1691 * System.Data/DataRowView.cs: started implementation
1693 * DataTable.cs: stubbed more interfaces. Implemented
1694 IListSource.GetList()
1696 * DataView.cs: stubbed more interfaces. Implemented
1697 some properties and methods: GetEnumerator(),
1698 ITypedList.GetItemProperties, Item indexer, CopyTo()
1700 2002-05-18 Nick Drochak <ndrochak@gol.com>
1702 * DataRow.cs: Fix typo.