1 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
3 * XmlDataInferenceLoader.cs : It was not always filling relation
4 child table information correctly. This fixes bug #60742.
6 2004-06-23 Umadevi S <sumadevi@novell.com>
7 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
9 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
11 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
12 schema is inside the document element (as created in XmlWriteMode
13 .WriteSchema), it should read schema from that non-document element.
14 This fixes one case reported in bug #60470.
16 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
18 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
19 inference target. For bug #60470. (MS does not support schema
20 document inference and results in unconsistent dataset structure.)
22 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
24 * DataTableCollection.cs : reset the table's DataSet to null when
25 removing a table from this collection.
26 * DataTable.cs : When Namespace is not specified explicitly, its
27 Namespace property reflects DataSet's Namespace if exist.
28 This fixes bug #60469.
30 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
32 * DBConcurrentcyException.cs: CRLF to LF
33 * DataViewSetting.cs: CRLF to LF
35 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
37 * DataViewSetting.cs: renamed fields to match MS.NET
39 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
41 * DBConcurrencyException.cs: fixed serialization compatibility with
44 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
46 * ChangeLog : Fix for misspelled words.
48 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
50 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
52 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
55 - Table stores default values for columns in special default values row.
56 It is allocated once (in NewRow).
57 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
58 - OnRemoveColumn has nothing to perform by now.
60 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
63 - Changed access of original, current and proposed indexes to internal.
64 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
65 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
66 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
67 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
68 Care about Null and DBNull values is now in DataContainer.
69 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
70 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
71 - Fix in CopyState : clone column errors.
72 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
74 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
76 * DataColumnCollection.cs :
77 - Fix : Add() now delegates to Add(DataColumn).
78 - autoIncrement list holds DataColumn objects, and not just column names.
80 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
83 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
84 - DefaultValue fixes. Default value from now on is also stored in special record in
85 DataTable, so we're able to set default value for the column faster (typed).
88 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
90 * DataSet.cs : children of non-root rows were not properly written.
93 2004-06-10 Umadevi S <sumadevi@novell.com>
94 * DataRelation.cs - Constructor
95 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
97 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
99 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
101 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
103 * Constraint.cs: marked methods internal to fix public API
104 * ConstraintCollection.cs: to fix public API, use
105 DataTable.fInitInProgress to check whether initialization
106 of DataTable is in progress
107 * DataColumn.cs: added stubs for missing methods
108 * DataRowBuilder.cs: marked Table property internal to
110 * DataSet.cs: removed extra empty destructor, marked
111 OnMergeFailed internal to fix public API
112 * DataTable.cs: use fInitInProgress field to hold init
113 status, to match MS.NET
114 * DataView.cs: added missing attributes on IsOpen
116 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
118 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
119 in XmlNamespaceManager.
121 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
123 * DataSet.cs : complex table content child was not properly added
124 when it is the only one child in the parent table. Fixed bug #53959.
126 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
127 * DataTableTypeConverter.cs: added
128 * DataView.cs: added missing attribute on Table property
129 * DataViewManager.cs: moved attribute to correct property
130 * UniqueConstraint.cs: removed extra ReadOnly attribute from
131 IsPrimaryKey property
133 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
135 * DataRow.cs : ColumnsChanged event is not required in .ctor().
137 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
139 * XmlDataReader.cs : type change is required before setting value
142 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
144 * DataSet.cs : Loop-break of the last fix was incorrect.
146 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
148 * DataSet.cs : When a row has no parent row but the table has parent
149 relation(s), that row had been always ignored.
151 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
153 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
154 rejected same-named tables in different hierarchy. Thanks to Boris.
156 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
158 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
159 infinite loop. Thanks to Boris for this fix.
161 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
163 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
164 Thanks to Boris for this fix.
166 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
168 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
169 for ReadXml(). Thanks to Boris.
171 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
173 - CheckReadOnlyStatus : use typed (and faster comparing).
174 - EndEdit : bug fix - do not dispose record if it holds original version.
175 - SetValuesFromDataRecord : Take care about autoincrement columns.
178 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
180 * MergeManager.cs : don't output debug message to Console.
182 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
184 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
185 structure. Thanks to Boris Kirzner for the fix.
187 2004-05-27 Umadevi S <sumadevi@novell.com>
188 * DataRelationCollection.cs - fixed nunit test errors
190 2004-05-27 Umadevi S <sumadevi@novell.com>
191 * DataTableCollection.cs - fixed nunit test errors
193 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
195 * DataColumnCollection.cs : NullReferenceException was thrown when
196 the table was not found.
197 * DataRowCollection.cs :
198 Find() just returns null for null value under MS.NET 1.1.
199 RemoveAt() should also avoid to call AcceptChanges() like Remove().
200 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
201 directly under MS.NET (for nunit test).
203 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
205 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
206 caused problem on qualified name to get schema Field name.
208 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
210 * XmlDataReader.cs : Now data reader is namespace aware in all places.
211 When table's namespace is different, it entered to infinite loop.
213 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
214 * MergeManager.cs : AdjustSchema now updates by reference new created table,
215 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
218 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
220 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
221 * DataColumnCollection.cs : fixed parantethes.
223 - AcceptChanges : do nothing if row state is unchanged.
224 - GetChildRows, GetParentRows : bug fix (use correct index).
225 * DataRowCollection.cs : bug fix (compare all row's values).
226 * DataTable.cs : bug fix (use correct row version).
228 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
230 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
231 When content type is Mixed, text column is not required (it is
232 required only when the complex type has no particle).
233 "Repeated element" column is also created (considering maxOccurs=0
234 and complex content extension).
236 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
238 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
241 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
243 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
244 Fixed relation inference to consider attribute XPath.
246 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
248 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
251 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
253 * DataColumn.cs - removed default member attribute.
255 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
258 DataColumnChangeEventArgs.cs,
259 DataColumnCollection.cs,
261 DataRowCollection.cs,
263 Index.cs : Data storage in the row is redesigned. Now data is stored in
264 typed containers inside DataColumn. Row holds its versions as indexes inside
265 each of data container, accessed through the row that holds it.
267 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
269 * UniqueConstraint.cs - added comment.
271 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
273 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
276 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
279 XmlDataInferenceLoader.cs,
281 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
282 XmlEncode every local name to write. This should fix bug #58268.
284 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
286 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
287 Supported repeated elements. Removed MonoTODOs.
288 * XmlDataInferenceLoader.cs : Design change to support ignored
289 namespace and repeated elements.
290 * XmlSchemaDataImporter.cs : Added mapping support classes.
292 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
294 * CustomDataClassGenerator.cs :
295 Added property parent "[foo]Row" and children "Get[foo]Row" support
296 for custom DataRow classes.
297 Fixed DataColumn property accessibility (public --> internal).
299 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
301 * CustomDataClassGenerator.cs :
302 - Put classes inside custom DataSet class.
303 - Added automatic DataRelation creation support.
304 - Added Constraints creation support. That is done separate from
305 relations, since they might be independently created.
306 - Added non-MS public DataRelation fields.
307 - Removed extraneous "DataRelation type generation" code.
308 - Fixed custom_dataset.Initialize() not to create "c" field that
309 was created more than once.
310 - Implemented AddxxxRow() that takes parameters for every column.
312 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
314 * XmlSchemaDataImporter.cs : When primary key is used more than once,
315 DataRelation borked because of empty parent column name.
317 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
319 * XmlSchemaDataImporter.cs : When Creating constraints with related
320 to DataRelation creation, also set PrimaryKey to the parent table.
322 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
324 * XmlSchemaDataImporter.cs :
325 Design change to add indirect table and relation structures.
326 Support for "relation" annotation for local element.
327 Support for repeatable simple element column (maxOccurs > 1).
328 Fixed handling of Nested property on DataRelation (for globally
329 annotated relation, Nested is false).
331 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
333 * DataRow.cs : Added DataElement property to avoid storing every row-
334 element mapping. It stored even for nodes that should be removed.
336 2004-05-13 Umadevi S <sumadevi@novell.com>
338 * RelationshipConverter.cs - Stubbed this class
339 * DataRelation.cs - added TypeConveterAttribute
341 2004-05-13 Umadevi S <sumadevi@novell.com>
343 * DataColumnCollection.cs - Added ResDescriptionAttribute
344 * DataRelation.cs - Added TypeConverterAttribute
345 * DataRelationCollection.cs - Added DefaultPropertyAttribute
346 * DataRowView.cs - Added GetHashCode method with a TODO tag
347 * DataSet.cs - Added DesignerAttribute
348 * DataView.cs - Added DesignerAttribute
349 * DataViewManager.cs - Added DesignerAttribute
350 * DataViewSetting.cs - Added TypeConverterAttribute
352 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
354 * DataRow.cs : Added XmlDataElement initialization code.
356 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
358 * XmlDataInferenceLoader.cs :
359 It now requires XmlDocument as input. Improved identification of
360 DataSet element. Removed extra lines.
361 Moved boresome design notes to bottom of the source and
362 added standalone runnable driver (not included on build).
364 Update with related to the change above.
365 WriteXml() should call Flush() after writing. This fixes bug #58327.
366 * XmlSchemaDataImporter.cs :
367 Improved indentification of DataSet element.
369 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
370 * DataTable: marked initStatus enum internal
372 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
373 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
375 * DataRowView.cs: removed extra Error property
376 * DataRow.cs: reduced accessibility of CollectionChanged method
378 * DataColumnPropertyDescriptor.cs: made class internal
379 * DataColumn.cs: removed extra TypeConvertorAttribute
380 * ConstrainCollection.cs: marked PostEndInit method internal
382 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
385 In WriteXmlSchema(), when complex type contains simple type content
386 attributes must not added to XmlSchemaComplexType directly. It
387 causes schema compilation error.
388 DataRelation should not be output when related columns are hidden.
390 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
392 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
393 also expected to do ReadXml(), but I will remove that feature and
394 support column reordering).
395 * XmlSchemaDataImporter.cs : Always initialize dataset name.
396 Always set Nested and primary key for parent table.
397 * XmlDataReader.cs : Now it is used.
398 Top level element might not match to dataset name nor any table
399 name, but still possible to read content tables.
400 Handle empty element correctly in some places.
401 Handle Fragment mode (read up XmlReader to the end).
402 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
403 XmlDataInferenceLoader and XmlDataReader.
405 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
408 Eliminated CRLF injection.
409 More clear message in Clear().
410 Updates reflecting XmlSchemaDataImporter change.
411 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
412 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
413 but that depends on different behavior from ms.net).
414 Set locale also for DataTable.
415 Add xs:element only when target namespace matches to the
416 element's namespace. Otherwise, add xs:import for external namespace.
417 Put xs:sequence for dataset element's particle _only when_ actual
420 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
422 * XmlDataReader.cs : Added. This class will work better when our
423 schema inference and schema read engine gets improved. (It contains
424 standalone testable Driver class.)
426 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
428 * ForeignKeyConstraint.cs : Check step change. Existence then column
429 validity. just for tests.
430 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
433 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
435 * DataSet.cs : Ignore empty content only when output type is diffgram.
437 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
439 * CustomDataClassGenerator.cs : Modified that DataSet contains each
440 DataTable field so that each table property can access them directly.
441 (plus, modified standalone code driver code: shouldn't affect)
443 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
445 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
447 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
449 * XmlSchemaDataImporter.cs :
450 SimpleContent column support.
451 Annotated relation support.
452 Top-level element is counted only when its type is complex.
453 xs:anyType is no longer treated as complex type.
454 dataset existence is mandatory now.
455 Improved DataType and DefaultValue support.
456 Attribute namespace is properly handled now.
457 Prohibited attribute is now treated as hidden column.
458 Reject list or union simple type.
460 Still incomplete 1) to read relationship in some cases, 2) to
461 determine whether an element is dataset or table, 3) thus to
462 exclude extraneous column, 4) to remove extraneous *_Id column.
464 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
467 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
468 serialization .ctor() (thus schema read/inference should be easier).
469 DataRowSorter should consider Table's Locale.
471 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
473 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
474 use it instead of duplicating logic.
476 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
478 * ConstraintCollection.cs :
479 Use Table.CaseSensitive and Table.Locale to compare strings.
480 Duplicate constraint name exception does not occur under .NET 1.1.
482 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
484 * XmlSchemaDataImporter.cs: Added little type check.
486 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
488 * DataSet.cs: Implemented support for runtime serialization. Fixed support
489 for xml serialization.
490 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
492 2004-04-30 Umadevi S <sumadevi@novell.com>
493 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
494 * DataTableCollection.cs : Tested and removed TODO
495 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
497 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
499 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
501 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
503 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
504 constraint is defined on single column.
506 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
508 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
509 not ArgumentException (maybe changed after 1.1).
511 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
513 * DataRow.cs : When Column was added and it was AutoIncrement column,
514 it extended the item object array incorrectly.
515 (Plus tiny comment and incorrect indentation fix.)
517 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
519 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
521 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
523 * DataRow.cs : Bug fix in CopyValuesToRow().
525 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
527 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
528 each of the columns should not be unique, but only all the constraint's columns together.
530 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
533 - Added using of list of autoIncrement columns
534 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
535 - Fix in CheckNullConstraints
536 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
537 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
538 - Added onColumnRemoved() method to threat column removal accurately.
540 * DataRowCollection.cs :
541 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
542 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
545 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
547 * DataColumnCollection.cs :
549 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
550 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
551 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
554 - Uses autoincrement list of a table
556 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
558 * XmlDataLoader.cs : Even when it should ignore schema, it was
560 * XmlSchemaDataImporter.cs : DataRelation creation support.
561 Improved "DataSet" element handing. When attributes are on the
562 element, it is not a "DataSet" element.
563 Fixed parent key column name.
564 Unique name creation is not required. Just raise an error.
565 Fill facet also for attribute types.
567 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
569 * DataRow.cs : Null check for CheckReadOnlyStatus() and
570 CheckNullConstraints(), with some coding guideline fixes.
571 Type check should be done by Type instance comparison.
573 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
575 * DataColumnCollection.cs : When add a column to the collection, fill
576 auto-increment column.
578 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
580 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
582 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
584 * CustomDataClassGenerator.cs : Added.
585 * TypedDataSetGenerator.cs : Implemented Generate().
586 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
587 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
589 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
591 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
593 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
595 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
597 2004-04-23 Umadevi S (sumadevi@novell.com)
598 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
599 - Added error handling to the above methods
601 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
603 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
604 the support is incomplete yet).
606 Reverted ReadModeSchema() argument change. XmlReadMode would be
607 useful to handle IgnoreSchema.
608 Don't overwrite DataSetName when mode is not such kind.
609 Set Prefix and Namespace as well as DataSetName.
610 AllowDBNull looks set false by default for element column.
611 Set unique constraint as primary key when infering the table schema.
613 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
616 Never set null string for Prefix and Namespace.
617 In InferXmlSchema() when null XmlReader is passed, just do nothing.
618 In WriteXmlSchema(string), earlier try block.
619 In BuildSchema(), try to add serialization namespaces for each
620 namespaces in DataSet/DataTable/DataColumn.
621 Removed namespace argument from WriteColumnAsElement() and don't
622 overwrite when namespace is "". This fixes bug #57330.
623 * DataColumn.cs : For Namespace and Prefix, never set null.
625 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
627 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
628 before creating and adding foreign key constraint and relation.
630 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
632 * MergeManager.cs : In AdjustSchema() source table clone should be added
633 and not the table itself.
635 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
638 - CaseSensitive : Additional fix (removed unnesessary assignment).
639 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
641 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
643 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
645 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
648 - EndLoadData() : perfomance fix in case of null constraint violation
649 during data load (also in DataRow.cs).
650 - CaseSensitive : If DataTable belongs to DataSet it should always use
651 DataSet.CaseSensitive untill explicitly changed.
652 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
655 - Pefromance fix in case of null constraint violation
656 during data load (also in DataTable.cs).
657 - CollectionChanged() : use correct column number after new DataColumn was added
658 (differs in case some DataColumn was previosly removed).
659 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
661 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
663 * DataColumnCollection.cs : Since unique constraint is added now
664 in DataColumn.SetTable() the additional creation of constraint in
665 DataColumnCollection.Add() is redundant and causes exception - fixed.
667 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
669 * XmlDataLoader.cs : Added "never add data rows" mode.
670 Removed unused code. However, it is temporary fixes to unify
671 ReadXml() and InferXmlSchema().
672 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
674 I'll create another XmlDataLoader since there are many problems
675 such that 1) it is too waste to read the entire xml into an
676 XmlDocument, 2) it does not handle attributes correctly, and 3) it
677 must handle "ignored namespaces".
679 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
681 * Added XmlSchemaDataImporter.cs (new schema reader).
682 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
684 Let schema reading work to ReadXmlSchema().
685 Don't return ReadSchema when argument read mode was DiffGram.
687 2004-04-15 Umadevi S (sumadevi@novell.com)
688 * Updated Clone/Copy methods in DataSet along with Testcase
689 * ForeignKeyConstraint.cs - special ctor implemented
690 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).
691 * Changes in ConstraintCollection.cs for the above
692 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.
695 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
697 * XmlSchemaMapper.cs : set parent key and foreign key info to
698 DataRelation when reading refkey constraints.
699 Supply constraint name for fkey.
701 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
703 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
704 mode is Auto, just ignore the schema if there is already schema info.
705 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
707 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
710 - In MS output, XML declaration looks to have standalone decl (yes).
711 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
712 - ReadXml(reader, mode)
713 1) return originally specified mode, instead of (always) Auto.
714 2) Check empty reader.
715 3) Check diffgram schema and content separately.
716 4) When diffgram exists, remaining (the same-level) contents
718 5) Similar fact should be applied, but somewhat different.
719 InferSchema and IgnoreSchema just skips, Fragment reads both
720 schema and content, others just reads schema.
721 - Removed unused code.
723 - Read() should skip in some ReadMode.
724 - Don't compare schema element name as case-insensitive (well,
725 should schemas be checked here?)
726 - Avoided BuildDocument() not to create confusing DataSet
728 - Don't add any tables when reader has single element.
730 When target table was not found, MS.NET doesn't raise an error.
731 * XmlSchemaMapper.cs :
732 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
734 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
737 - InferXmlSchema(): Throw explicit NotImplementedException now.
738 - Don't put XML declaration everywhere. Write just for filename arg.
739 - xmlns="" should not be written. Maybe WebService problem is
740 because default namespace is overwritten. This patch will keep
741 the WS problem away and actually fixes some unit tests (i.e. use
742 explicit String.Empty for null namespace in WriteStartElement()).
743 - MoveToContent() should always be called, not only when
744 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
745 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
746 element. As to MSDN, diffgram does not contain schema.
748 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
750 * DataTable.cs: made _initStatus private so that System.Data is CLS
753 2004-04-13 Umadevi S <sumadevi@novell.com>
754 * UniqueConstraint.cs:
755 * ConstraintCollection.cs:
757 - Implemented a Constructor for UniqueConstraint.cs
758 - Used EndInit on DataTable to call a delegate which adds the
759 constraints passed to the most recent call of AddRange().Used
760 AddRange() on ConstraintCollection to check whether
761 DataTable.BeginInit has occurred. If yes, save the argument
762 constraint collection passed, then return. If no, Check whether the
763 constraints are of type UniqueConstraint and initialized with the
764 special constructor If yes Initialized the table property of this
765 UniqueConstraint object with table assosciated with the current
766 instance of ConstraintCollection class.
768 2004-04-07 Marek Safar <marek.safar@seznam.cz>
770 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
772 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
775 * DataColumnCollection.cs:
776 * DataRelationCollection.cs:
777 * DataRowCollection.cs:
778 * DataTableCollection.cs:
779 * InternalDataCollectionBase.cs:
780 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
783 2004-04-05 Jackson Harper <jackson@ximian.com>
785 * DataTable.cs: Add rows to the row list if there is no filter.
787 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
789 * DataColumn.cs : Setting Caption to null sets it to the empty string
790 (ms.net behaviour, testcase is in DataColumnTest).
792 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
795 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
797 * DataColumn.cs: In Expression setter, set the expression member even if
798 it is an empty string.
799 * DataSet.cs: Support serialization of byte[] columns.
800 * XmlDataLoader.cs: Support deserialization of Guid columns.
801 Set MappingType.Attribute to columns infered from attributes.
803 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
805 * ExpressionElements.cs : remove
806 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
807 Integration of new Mono.Data.SqlExpressions classes used in
808 DataTable.{Select, Compute}.
809 Fixes bug #55503 and lots of failures in DataTableTest.cs.
811 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
813 * Index.cs: Simple fix in ComparePartialRowNonUnique.
814 This fixes bugs #56129 and #56014.
816 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
818 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
819 stream after writing the dataset. This fixes bug #52581.
820 Also added several writer.Close into finally blocks, so writers are properly
821 closed in case of an exception.
823 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
825 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
826 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
827 * ColumnTypeConverter.cs: Added stub
828 * DefaultValueTypeConverter: Added stub
829 * ConstraintConverter.cs: Added stub
831 2004-03-04 Eran Domb <erand@mainsoft.com>
833 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
834 in MS.NET documentation (missing DataSet element etc).
836 2004-03-04 Eran Domb <erand@mainsoft.com>
839 * Index.cs : Rollback last changes.
841 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
843 * Index.cs : justa build fix.
845 2004-03-03 Eran Domb <erand@mainsoft.com>
848 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
849 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
850 This changes made for performance improvement.
852 2004-02-08 Eran Domb <erand@mainsoft.com>
854 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
856 2004-02-08 Eran Domb <erand@mainsoft.com>
858 * DataSet.cs: Fix some bugs in ReadXml().
860 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
862 * DataSet.cs: Added missing method that broke the build.
864 2004-02-04 Eran Domb <erand@mainsoft.com>
866 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
868 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
869 when all column are attributes (elements count is 0), we still want to add the relations. No relations
870 can be on simple contents.
871 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
872 (AddForeignKeys) Check that the relation has constraints attach to it.
873 * XmlConstants.cs : Added constant.
875 2004-02-04 Eran Domb <erand@mainsoft.com>
877 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
878 DoWriteXmlSchema calls BuildSchema ().
880 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
882 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
884 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
886 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
887 also be added to the dataset.
888 In WriteTable(), do not write unchanged rows when writing the original
889 version of the table.
890 Added WriteIndividualTableContent(), for writing the contents of a single
892 Changed BuildSchema and related methods, so it can generate a schema for
893 any set of tables, not just the tables of the dataset (needed for
894 single datatable serialization).
895 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
896 Also implemented some ReadXmlSchema methods.
897 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
898 instead of loading the full dataset in an XmlDocument. It is faster and
899 saves memory. Also fixed several problems when generating the changes.
900 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
901 table serialization).
903 2004-02-02 Eran Domb <erand@mainsoft.com>
905 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
906 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
907 * DataTable.cs (NewRow): Create only one DataRowBuilder.
908 Initiate new row with row id -1.
909 * DataRow.cs : Add RowId property.
910 * DataRowBuilder.cs : Add _rowId member.
911 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
913 2004-01-26 Eran Domb <erand@mainsoft.com>
915 * XmlConstants.cs : Added some constants.
916 * DataColumn.cs : Added a method to retrive AutoIncrement value.
917 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
919 * XmlDiffLoader.cs : Convert the value comming from the xml.
920 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
921 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
922 (ReadXmlSchemaElement) : Set the locale of the dataset.
923 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
924 (GetColumnType) : New method to get the column type from the attribute value.
925 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
926 and add the constraint to the table.
927 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
929 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
930 Writing more information to the schema for interoperability with ms.net.
931 Improve diffgarm writing mode.
934 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
936 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
938 2004-01-21 Eran Domb <erand@mainsoft.com>
940 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
941 Do not set the child column to be AutoIncrement.
942 Create the new column for the relation as MappingType.Hidden so they will not be serialized
943 when writing the dataset to xml.
945 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
947 * Added missing TypedDataSetGenerator.cs.
949 2004-01-08 Eran Domb <erand@mainsoft.com>
951 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
952 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
953 InferSchema, ReadSchema and IgnoreSchema.
954 * XmlDataLoader.cs : All modes use the same logic.
955 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
957 2004-01-06 Eran Domb <erand@mainsoft.com>
959 * DataRelationCollection.cs : Use IndexOf in indexer.
960 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
961 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
962 * XmlDiffLoader.cs : Reading nested tables.
963 * XmlSchemaMapper.cs : Reading the relation.
964 * XmlConstants.cs : Adding some constants.
966 2004-01-05 Jackson Harper <jackson@ximian.com>
968 * DataView.cs: Set readonly property of property descriptor. This
971 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
973 * DataRelationCollection.cs : Fixed incorrect generation of default
975 * DataSet.cs : Added missing functionality in WriteXml().
976 * XmlConstants.cs : Added new constants.
978 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
980 * DataSet.cs : Fixed incorrect WriteXml() signature.
982 2003-12-18 Jackson Harper <jackson@ximian.com>
984 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
986 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
988 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
989 they take shape of xml. This fixed bug #52240
991 2003-12-16 Tim Coleman <tim@timcoleman.com>
992 * KeyRestrictionBehavior.cs:
993 New stubs added for .NET 1.2
997 2003-12-08 Eran Domb <erand@mainsoft.com>
998 * DataColumn.cs (Expression) : Validate the expression.
1000 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
1001 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
1003 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
1004 (RejectChanges) : Detach row when state was Added.
1005 (CollectionChanged) : Fix a bug.
1007 * ExpressionElement (ValidateExpression) : Fix a bug.
1009 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
1010 a parent row in the parent table.
1011 (_validateColumns) : Fix bugs.
1013 * MergeManager.cs (AdjustSchema) : Fix a bug.
1015 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
1018 2003-11-30 Eran Domb <erand@mainsoft.com>
1019 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
1020 (Add) : Find if the new column name is the same as the one found in IndexOf.
1021 (IndexOf) : New method.
1022 (Contains) : Use new IndexOf.
1023 (IndexOf) : Use new IndexOf.
1025 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
1026 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
1028 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
1029 (Delete) : Detach row if the RowState was Added.
1030 (GetChildRows) : Get the array form the ChildTable.
1031 (GetParentRows) : Get the array from the ParenTable.
1033 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
1035 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
1037 * DataTable.cs (PrimaryKey) : Fix bugs.
1038 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
1040 * DataTableCollection.cs (Add) : Fix a bug.
1042 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
1043 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
1044 Some code style changes (tab instead of whit spaces, alignment, etc...).
1046 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
1048 * MergeManager.cs (AdjustSchema) : Fix a bug.
1052 2003-11-26 Miguel de Icaza <miguel@ximian.com>
1054 * DataSet.cs: Add a few more missing methods, code style updated
1057 2003-11-26 Tim Coleman <tim@timcoleman.com>
1059 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
1060 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
1061 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
1062 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
1063 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
1064 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
1065 * StatementCompletedEventHandler.cs UpdateOptions.cs:
1066 New classes added for NET_2_0
1067 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
1068 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
1069 Modifications to add new NET_2_0 functions
1071 2003-11-25 Tim Coleman <tim@timcoleman.com>
1075 2003-11-21 Pedro Martínez Juliá <yoros@wanadoo.es>
1077 * DataRow.cs: Detached row can be accesible (new rows from data
1078 table are detached). Closes but #51263.
1080 2003-11-19 Eran Domb <erand@mainsoft.com>
1081 * DataRow.cs : Throw exceptions if Row is Detached.
1082 (EndEdit) : Check that we are not in middle of ChangeEvent.
1083 (AcceptChanges) : Detach the row.
1085 * DataRelation.cs : throw correct exception.
1086 *UniqueConstraint.cs : throw correct exception.
1089 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1091 * DataRow.cs: Use RemoveInternal instead of Remove because the last
1092 one uses Delete and AcceptChanges.
1094 * DataRowCollection.cs: When removing, Delete and AcceptChanges
1095 method from the row are called. Added an internal method that will
1096 be used by DataRow to "physically" remove the row from the list.
1098 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1100 * DataRowCollection.cs: To follow the specification: Remove and
1101 RemoveAt should remove the row. But needed to call DeletingDataRow
1102 to prepare the deleting.
1104 * DataRow.cs: Don't call DeletingDataRow when it is called by the
1105 method Table.Rows.Remove.
1107 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1109 * DataRowCollection.cs: Make the row be deleted by itself. If not,
1110 it fails because we need to call OnRowDeleting and OnRowDeleted. It
1111 is full implemented inside DataRow.
1113 2003-11-05 Eran Domb <erand@mainsoft.com>
1114 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
1116 2003-11-04 Eran Domb <erand@mainsoft.com>
1117 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
1119 (GetChildRows) : Adding some checks.
1120 (GetParentRows) : Adding some checks. Fix a bug in implementation.
1121 (SetParentRow) : Added implementation.
1123 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
1124 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
1125 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
1126 * MergeManager.cs : Check that the target table is not null.
1128 2003-10-27 Eran Domb <erand@mainsoft.com>
1129 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
1130 can be converted to the column type.
1132 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
1134 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
1135 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
1137 * DataRowCollection.cs (Add) : Fixing a bug.
1138 (Clear) : Before clearing the array check that there is no violation of FK constraint.
1140 * DataSet.cs (Prefix) : If value is null chage it to empty string.
1141 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
1143 * ExpressionElement : Adding support for IN expresion.
1145 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
1146 (Select) : Adding support for DataViewwRowState.
1148 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
1150 * MergeManager.cs (MergeRow) : Fix bugs.
1152 2003-10-27 Eran Domb <erand@mainsoft.com>
1153 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
1154 check null values when ending loading data.
1156 * DataSet.cs (RejectChanges) : Imlementation.
1157 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
1158 change it to empty string.
1160 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
1162 2003-10-22 Eran Domb <erand@mainsoft.com>
1163 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
1165 * ConstraintCollection.cs (RamoveAt): Change implemntation.
1167 * DataTableCollection (CanRemove): Removing cast to Constraint.
1169 2003-10-22 Eran Domb <erand@mainsoft.com>
1170 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
1171 (Clear): The collection was cleared without removing the relation from the parent and child tables.
1173 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
1174 (HasChanges, Reset): Imlementation.
1176 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
\r
1177 This is because the we do not no when to turn off the flag.
1178 (Locale): Changing implementation to behave like ADO.NET.
1179 (AcceptChanges): Fix bug.
1180 (Clear): Check that this table is not referenced from a foreign key constraint.
1181 (Copy): Do not try to access a deleted row.
1182 (CopyProperties): Copy the PrimaryKey.
1183 (GetChanges, ImportRow): Implementation.
1184 (LoadDataRow): Adding implementation if the table has PrimaryKey.
1185 (ToString): Changing implementation to behave like ADO.NET.
1187 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
1189 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
1190 (HasErrors): Implementation.
1191 (Delete): Added checking for child rows of the deleted row.
1192 (EndEdit): Added checking for child row and firing events.
1193 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
1194 (GetColumnsInError): Added a check for null values in column error.
1195 (HasVersion): Added special treatment for special RowState.
1196 (CollectionChanged): More checks to avoid NullReferenceException.
1198 * DataRowCollection.cs (Remove): Fix a bug.
\r
1201 2003-10-01 Duncan Mak <duncan@ximian.com>
1203 More patches from Eran Domb <erand@mainsoft.com>.
1205 * MergeManager.cs: New file.
1207 * DataRelationCollection.cs (AddCore): Check that a
1208 UniqueConstraint is already exists. It loops over the Relations
1209 instead of the Constraints.
1210 (Add, AddCore): The relation was added twice.
1212 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
1214 2003-09-30 Duncan Mak <duncan@ximian.com>
1216 Patches from Eran Domb <erand@mainsoft.com>.
1218 * DataRelation.cs (constructor): When the name of the relation is
1219 null, it should return an empty, not "Relation".
1221 * DataRow.cs (AcceptChanges): Added special case for
1223 (CancelEdit): Set editing flag to false.
1224 (IsNull): Check that the value is DBNull.
1226 * DataRowCollection.cs (Add): There was no check that the table of
1227 the collection is owned by a DataSet.
1229 * DataSet.cs (OnMergeFailed): Added.
1231 * UniqueConstraint.cs (AssertConstraint): There was no check that
1232 values in the row are not null, where it is a primary key
1233 column. Also check that the row has a proposed version, if not,
1234 get the current version when we compare the rows.
1236 2003-09-25 Duncan Mak <duncan@ximian.com>
1238 Patches from Eran Domb <erand@mainsoft.com>.
1240 * DataColumn.cs (Unique): Implemented.
1243 * ConstraintCollection.cs:
1244 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
1245 an Exception thrown. Details:
1246 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
1248 * DataRowCollection.cs (Add): There is no checking that there is
1249 no violation of the unique constrains.
1251 * UniqueConstraint.cs (AssertConstraint): There is no checking on
1252 all columns in the constraint.
1254 * DataTableCollection (Add): Correctly throw an Exception, more
1256 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
1257 (Remove, RemoveAt): Implemented.
1259 2003-07-31 Duncan Mak <duncan@ximian.com>
1261 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
1263 2003-07-25 Ravi Pratap <ravi@ximian.com>
1265 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
1266 method on a delegate is disallowed - fix this.
1268 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
1270 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
1271 xml serialization. Modified method of writing schema. Now it creates
1272 a XmlSchema object and serializes it using XmlSerializer.
1273 * XmlConstants.cs: Added constants for data type names.
1274 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
1275 type specified in the column.
1277 2003-04-20 Alan Tam <Tam@SiuLung.com>
1279 * DataRelationCollection.cs: Fix a bug that prevent relations
1280 from being added via DataSet.
1282 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
1284 * UniqueConstraint.cs: one tiny fix.
1286 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
1288 * DataTable.cs: Remove UniqueConstraints when adding new ones
1290 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
1292 * DataColumnCollection.cs: Little 'case sensitive' fix
1294 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
1296 * DataRow.cs: AutoIncrement handling to Constructor
1297 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
1299 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1301 * DataTable.cs: Some fixes to PrimaryKey etc...
1302 * UniqueConstraint.cs: Little clean up
1304 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1306 * DataTable.cs: Tiny fix to ToString () -method
1308 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1310 * ConstraintCollection.cs: Little fix.
1311 * DataColumn.cs: Added new internal method SetUnique()
1312 * UniqueConstraint.cs: some little fixes
1314 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
1316 * DataRowCollection.cs: Bugfixes, implementation,...
1318 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
1320 * DataColumn.cs: If DataType if set to something else than short, int
1321 or long and AutoIncrement is true, AutoIncrement is must set to false.
1323 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1326 (BeginEdit): fixed array bound problem when a column has been added.
1327 (EndEdit): just assign proposed to current as proposed is set to null.
1328 This also fixes another array boudn problem.
1330 2003-03-21 Alan Tam <Tam@SiuLung.com>
1332 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
1333 EndEdit and AcceptChanges to act correctly according to DataRowState
1335 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
1336 attached and detached from the collection.
1338 2003-03-20 Alan Tam <Tam@SiuLung.com>
1340 * DataColumn.cs: Store empty string for Expression when null is passed in.
1341 Classes generated by XSD.exe passes null by default.
1343 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
1345 * DataColumnCollection.cs: Tiny clean up
1347 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
1349 * DataColumn.cs: little fixes.
1350 * DataColumnCollection.cs: Lots of little fixes and improvments.
1352 2003-03-12 Alan Tam <Tam@SiuLung.com>
1354 * DataSet.cs: Fixed a bug that the file written does not close correctly.
1356 2003-03-08 Alan Tam <Tam@SiuLung.com>
1358 * DataRelationCollection.cs: Removed the mis-overridden methods
1359 * DataRow.cs: Fixed an attribute
1360 * DataSet.cs: Fixed the modifiers
1362 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
1364 * DataTableCollection.cs: The Contains (string name),
1365 IndexOf (string name) methods, and item[string name] indexer
1366 now behave more like .NET with respect to case-sensitivity.
1367 That is if there is an exactly matching item then this one is used.
1368 If there is only one item differing in case then it used.
1369 If there are more than one item differing in case then
1370 Contains returns false, IndexOf returns -1, and item[]
1371 throws an ArgumentException.
1373 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
1375 * ExpressionElement.cs: More implementation.
1377 2003-02-28 Alan Tam <Tam@SiuLung.com>
1378 * DataSet.cs: Changed WriteTable so that it now calls the newly written
1379 WriteObjectXml to direct the call to the respective XmlConvert method.
1380 This fixes the wrong format written to XML files of bool, float,
1381 double, DateTime and TimeSpan types.
1383 2003-02-25 Alan Tam <Tam@SiuLung.com>
1385 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
1386 * DataRelationCollection.cs: Implemented AddRange and Contains.
1387 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
1388 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
1389 Reimplemented most Add methods to eliminate duplicated checks.
1390 Centralized RelationName generation procedure in GetNextDefaultRelationName.
1392 2003-02-25 Alan Tam <Tam@SiuLung.com>
1394 * DataColumn.cs: Fixed wrong storage representation of Expression
1395 (using empty string instead of null) so that ToString() returns nothing.
1396 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
1397 auto column naming now works as expected. Reimplemented some Add methods
1398 to eliminate code duplication.
1400 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
1402 * DataTable.cs: DataTable.CaseSensitive follows parent
1403 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
1404 been changed directly from DataTable
1406 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
1408 * DataSet.cs: When CaseSensitive property is changed all of the Tables
1409 of DataSet have to change too
1411 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
1413 * InternalDataCollectionBase.cs: revert change to field
1416 * DataViewManager.cs
1419 * DataSet.cs: commented use of DesignerAttribute
1420 because it broke the build. According to MSDN,
1421 DesignerAttribute does not have a zero-argument constructor
1423 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
1425 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
1427 2003-02-18 Alan Tam <Tam@SiuLung.com>
1429 * DataRow.cs: Implemented GetParentRow and GetParentRows.
1430 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
1431 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
1432 RaisePropertyChanging.
1433 * DataTable.cs: Implemented NewRowArray.
1434 * DataTablePropertyDescriptor: Fixed a modifier.
1435 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
1436 * PropertyCollection.cs: Minor fix.
1437 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
1438 * DataRelation.cs DataRelationCollection.cs DataRow.cs
1439 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
1440 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
1441 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
1442 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
1443 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
1445 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
1447 * ExpressionElement.cs: More implementation
1449 2003-02-05 Alan Tam <Tam@SiuLung.com>
1451 * DataSet.cs: Added framework for DataSet.Update Implemented missing
1452 methods GetSchemaSerializable, GetSerializationData,
1453 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
1455 * DataTable.cs: Implemented missing methods CreateInstance and
1456 GetRowType for DataTable
1458 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
1460 * DataSet.cs: Implemented private method MapType for
1461 mapping datatypes for XmlSchema
1463 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1465 * DataView.cs: implemented Dispose.
1467 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
1469 * ExpressionElement.cs: Added new file. This file is for parsing
1470 and DataData.Select () -methods and DataColumn.Expression -property
1471 * DataTable.cs: Implemented Select(string) -method
1473 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
1475 * DataSet.cs: One little fix to writing xml
1477 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
1479 * XmlSchemaMapper.cs: Some fixes.
1480 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
1483 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
1485 * UniqueConstraint.cs: Do not set columns Unique property true
1487 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
1489 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
1491 * DataTableCollection.cs: Now names new DataTable if it doesn't
1492 already have a name.
1494 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
1496 * XmlSchemaMapper.cs: Improvments.
1497 * XmlConstaints.cs: Added more constants.
1498 * DataSet.cs: Improvments of reading and writing xml
1499 * DataColumn.cs: Added default values of properties.
1501 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
1503 * XmlSchemaMapper.cs: Some improvments
1505 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
1507 * DataRowCollection.cs: Added IndexOutOfRangeException
1508 * DataTableCollection.cs: Added OnCollectionChanging and
1509 OnCollectionChanged events.
1510 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
1511 * DataTable.cs: Implemented Copy () and Clone () methods.
1512 * XmlDataLoader.cs: some fixes.
1513 * XmlSchemaMapper.cs: comments.
1515 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1517 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
1519 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1521 * DataColumnPropertyDescriptor.cs: fixed typo.
1522 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
1523 to get the DataViewManager and removed TablePD class.
1524 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
1525 suggested by danmorg.
1527 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
1529 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
1531 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
1532 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
1534 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1536 * DataView.cs: made dataViewManager internal.
1537 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
1538 properties of the object, but the values of the columns present in a
1541 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
1542 which returns a PropertyDescriptorCollection. Created a new class
1543 derived from PropertyDescriptor that treats Table as an object whose
1544 properties are DataRowView.
1546 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1548 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
1550 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1552 * DataColumn.cs: ExtendedProperties is by default !null-
1554 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1556 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
1557 set column's ordinal.
1559 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
1562 * XmlDataLoader.cs: XmlReader closing fixes.
1563 * XmlSchemaReader.cs: Added support for ref=
1565 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
1568 - Added XmlReader and XmlWriter Closing.
1569 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
1570 * XmlSchemaMapper.cs
1571 - Much better way IMHO to map xmlschema than the old one in
1572 DataSet.cs. Its, more flexible, cleaner, ...
1574 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
1576 * XmlDataLoader.cs: Reading diffgrams.
1578 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
1580 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
1581 * DataTable.cs: Added ChanginDataColumn () for triggering
1582 DataColumnChanging event
1584 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
1586 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
1588 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
1590 * DataSet.cs: Indentations to WriteXml ()
1592 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
1595 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
1596 class XmlDataLoader.cs
1598 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
1600 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
1602 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
1604 * DataSet.cs: Started to implement ReadXml-methods.
1606 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1608 * DataSet.cs: implemented DefaultViewManager and GetList.
1610 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
1611 DataList in System.Web.
1613 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
1616 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
1619 * DataTable.cs: Fixed NullException (rollback -event)
1620 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
1622 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
1625 * DataRowCollection.cs: Moved event triggering from DataRow to
1628 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
1630 * DataSet.cs: Little fix to WriteTable () -method
1631 and DoReadXmlSchema () -method.
1633 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
1635 * DataSet.cs: Clean up to reading xmlschema. This looks much better
1636 now (work better too), but it not working correctly yet.
1638 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
1641 * DataRowCollection.cs: Added some event handlins stuff.
1642 * DataSet.cs: Some fixes.
1643 * DataTable.cs: Added event handlers.
1645 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
1647 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
1649 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
1651 * System.Data/DataRow.cs: Added internal property XmlDataID
1653 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
1655 * DataSystem.Data.DataTableCollection.cs:
1656 Removed HashTable. There could be situations where DataTable
1657 is added to collection before it hava TableName. So using
1658 HashTable is impossible.
1660 2002-11-19 Carlos Guzmán Álvarez <carlosga@telefonica.net>
1662 * DataRow.cs: an object that is equal to null
1663 should be allowed to be set in this indexer too
1666 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
1668 * DataColumnPropertyDescriptor.cs: added file
1670 * System.Data/DataRowView.cs: started implementation
1672 * DataTable.cs: stubbed more interfaces. Implemented
1673 IListSource.GetList()
1675 * DataView.cs: stubbed more interfaces. Implemented
1676 some properties and methods: GetEnumerator(),
1677 ITypedList.GetItemProperties, Item indexer, CopyTo()
1679 2002-05-18 Nick Drochak <ndrochak@gol.com>
1681 * DataRow.cs: Fix typo.