1 2004-08-06 Atsushi Enomoto <atsushi@ximian.com>
3 * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
5 2004-08-05 Atsushi Enomoto <atsushi@ximian.com>
7 * XmlConstants.cs : Added constants for "msprop" support.
8 * DataSet.cs : ExtendedProperties should be written in the schema.
11 2004-07-27 Atsushi Enomoto <atsushi@ximian.com>
13 * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
14 used. There were also some culture dependency problems to write int.
16 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
18 * XmlDataInferenceLoader.cs : It was not always filling relation
19 child table information correctly. This fixes bug #60742.
21 2004-06-23 Umadevi S <sumadevi@novell.com>
22 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
24 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
26 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
27 schema is inside the document element (as created in XmlWriteMode
28 .WriteSchema), it should read schema from that non-document element.
29 This fixes one case reported in bug #60470.
31 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
33 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
34 inference target. For bug #60470. (MS does not support schema
35 document inference and results in unconsistent dataset structure.)
37 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
39 * DataTableCollection.cs : reset the table's DataSet to null when
40 removing a table from this collection.
41 * DataTable.cs : When Namespace is not specified explicitly, its
42 Namespace property reflects DataSet's Namespace if exist.
43 This fixes bug #60469.
45 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
47 * DBConcurrentcyException.cs: CRLF to LF
48 * DataViewSetting.cs: CRLF to LF
50 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
52 * DataViewSetting.cs: renamed fields to match MS.NET
54 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
56 * DBConcurrencyException.cs: fixed serialization compatibility with
59 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
61 * ChangeLog : Fix for misspelled words.
63 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
65 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
67 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
70 - Table stores default values for columns in special default values row.
71 It is allocated once (in NewRow).
72 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
73 - OnRemoveColumn has nothing to perform by now.
75 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
78 - Changed access of original, current and proposed indexes to internal.
79 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
80 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
81 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
82 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
83 Care about Null and DBNull values is now in DataContainer.
84 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
85 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
86 - Fix in CopyState : clone column errors.
87 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
89 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
91 * DataColumnCollection.cs :
92 - Fix : Add() now delegates to Add(DataColumn).
93 - autoIncrement list holds DataColumn objects, and not just column names.
95 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
98 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
99 - DefaultValue fixes. Default value from now on is also stored in special record in
100 DataTable, so we're able to set default value for the column faster (typed).
103 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
105 * DataSet.cs : children of non-root rows were not properly written.
108 2004-06-10 Umadevi S <sumadevi@novell.com>
109 * DataRelation.cs - Constructor
110 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
112 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
114 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
116 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
118 * Constraint.cs: marked methods internal to fix public API
119 * ConstraintCollection.cs: to fix public API, use
120 DataTable.fInitInProgress to check whether initialization
121 of DataTable is in progress
122 * DataColumn.cs: added stubs for missing methods
123 * DataRowBuilder.cs: marked Table property internal to
125 * DataSet.cs: removed extra empty destructor, marked
126 OnMergeFailed internal to fix public API
127 * DataTable.cs: use fInitInProgress field to hold init
128 status, to match MS.NET
129 * DataView.cs: added missing attributes on IsOpen
131 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
133 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
134 in XmlNamespaceManager.
136 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
138 * DataSet.cs : complex table content child was not properly added
139 when it is the only one child in the parent table. Fixed bug #53959.
141 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
142 * DataTableTypeConverter.cs: added
143 * DataView.cs: added missing attribute on Table property
144 * DataViewManager.cs: moved attribute to correct property
145 * UniqueConstraint.cs: removed extra ReadOnly attribute from
146 IsPrimaryKey property
148 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
150 * DataRow.cs : ColumnsChanged event is not required in .ctor().
152 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
154 * XmlDataReader.cs : type change is required before setting value
157 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
159 * DataSet.cs : Loop-break of the last fix was incorrect.
161 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
163 * DataSet.cs : When a row has no parent row but the table has parent
164 relation(s), that row had been always ignored.
166 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
168 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
169 rejected same-named tables in different hierarchy. Thanks to Boris.
171 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
173 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
174 infinite loop. Thanks to Boris for this fix.
176 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
178 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
179 Thanks to Boris for this fix.
181 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
183 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
184 for ReadXml(). Thanks to Boris.
186 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
188 - CheckReadOnlyStatus : use typed (and faster comparing).
189 - EndEdit : bug fix - do not dispose record if it holds original version.
190 - SetValuesFromDataRecord : Take care about autoincrement columns.
193 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
195 * MergeManager.cs : don't output debug message to Console.
197 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
199 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
200 structure. Thanks to Boris Kirzner for the fix.
202 2004-05-27 Umadevi S <sumadevi@novell.com>
203 * DataRelationCollection.cs - fixed nunit test errors
205 2004-05-27 Umadevi S <sumadevi@novell.com>
206 * DataTableCollection.cs - fixed nunit test errors
208 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
210 * DataColumnCollection.cs : NullReferenceException was thrown when
211 the table was not found.
212 * DataRowCollection.cs :
213 Find() just returns null for null value under MS.NET 1.1.
214 RemoveAt() should also avoid to call AcceptChanges() like Remove().
215 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
216 directly under MS.NET (for nunit test).
218 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
220 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
221 caused problem on qualified name to get schema Field name.
223 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
225 * XmlDataReader.cs : Now data reader is namespace aware in all places.
226 When table's namespace is different, it entered to infinite loop.
228 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
229 * MergeManager.cs : AdjustSchema now updates by reference new created table,
230 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
233 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
235 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
236 * DataColumnCollection.cs : fixed parantethes.
238 - AcceptChanges : do nothing if row state is unchanged.
239 - GetChildRows, GetParentRows : bug fix (use correct index).
240 * DataRowCollection.cs : bug fix (compare all row's values).
241 * DataTable.cs : bug fix (use correct row version).
243 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
245 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
246 When content type is Mixed, text column is not required (it is
247 required only when the complex type has no particle).
248 "Repeated element" column is also created (considering maxOccurs=0
249 and complex content extension).
251 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
253 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
256 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
258 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
259 Fixed relation inference to consider attribute XPath.
261 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
263 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
266 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
268 * DataColumn.cs - removed default member attribute.
270 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
273 DataColumnChangeEventArgs.cs,
274 DataColumnCollection.cs,
276 DataRowCollection.cs,
278 Index.cs : Data storage in the row is redesigned. Now data is stored in
279 typed containers inside DataColumn. Row holds its versions as indexes inside
280 each of data container, accessed through the row that holds it.
282 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
284 * UniqueConstraint.cs - added comment.
286 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
288 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
291 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
294 XmlDataInferenceLoader.cs,
296 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
297 XmlEncode every local name to write. This should fix bug #58268.
299 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
301 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
302 Supported repeated elements. Removed MonoTODOs.
303 * XmlDataInferenceLoader.cs : Design change to support ignored
304 namespace and repeated elements.
305 * XmlSchemaDataImporter.cs : Added mapping support classes.
307 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
309 * CustomDataClassGenerator.cs :
310 Added property parent "[foo]Row" and children "Get[foo]Row" support
311 for custom DataRow classes.
312 Fixed DataColumn property accessibility (public --> internal).
314 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
316 * CustomDataClassGenerator.cs :
317 - Put classes inside custom DataSet class.
318 - Added automatic DataRelation creation support.
319 - Added Constraints creation support. That is done separate from
320 relations, since they might be independently created.
321 - Added non-MS public DataRelation fields.
322 - Removed extraneous "DataRelation type generation" code.
323 - Fixed custom_dataset.Initialize() not to create "c" field that
324 was created more than once.
325 - Implemented AddxxxRow() that takes parameters for every column.
327 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
329 * XmlSchemaDataImporter.cs : When primary key is used more than once,
330 DataRelation borked because of empty parent column name.
332 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
334 * XmlSchemaDataImporter.cs : When Creating constraints with related
335 to DataRelation creation, also set PrimaryKey to the parent table.
337 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
339 * XmlSchemaDataImporter.cs :
340 Design change to add indirect table and relation structures.
341 Support for "relation" annotation for local element.
342 Support for repeatable simple element column (maxOccurs > 1).
343 Fixed handling of Nested property on DataRelation (for globally
344 annotated relation, Nested is false).
346 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
348 * DataRow.cs : Added DataElement property to avoid storing every row-
349 element mapping. It stored even for nodes that should be removed.
351 2004-05-13 Umadevi S <sumadevi@novell.com>
353 * RelationshipConverter.cs - Stubbed this class
354 * DataRelation.cs - added TypeConveterAttribute
356 2004-05-13 Umadevi S <sumadevi@novell.com>
358 * DataColumnCollection.cs - Added ResDescriptionAttribute
359 * DataRelation.cs - Added TypeConverterAttribute
360 * DataRelationCollection.cs - Added DefaultPropertyAttribute
361 * DataRowView.cs - Added GetHashCode method with a TODO tag
362 * DataSet.cs - Added DesignerAttribute
363 * DataView.cs - Added DesignerAttribute
364 * DataViewManager.cs - Added DesignerAttribute
365 * DataViewSetting.cs - Added TypeConverterAttribute
367 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
369 * DataRow.cs : Added XmlDataElement initialization code.
371 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
373 * XmlDataInferenceLoader.cs :
374 It now requires XmlDocument as input. Improved identification of
375 DataSet element. Removed extra lines.
376 Moved boresome design notes to bottom of the source and
377 added standalone runnable driver (not included on build).
379 Update with related to the change above.
380 WriteXml() should call Flush() after writing. This fixes bug #58327.
381 * XmlSchemaDataImporter.cs :
382 Improved indentification of DataSet element.
384 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
385 * DataTable: marked initStatus enum internal
387 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
388 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
390 * DataRowView.cs: removed extra Error property
391 * DataRow.cs: reduced accessibility of CollectionChanged method
393 * DataColumnPropertyDescriptor.cs: made class internal
394 * DataColumn.cs: removed extra TypeConvertorAttribute
395 * ConstrainCollection.cs: marked PostEndInit method internal
397 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
400 In WriteXmlSchema(), when complex type contains simple type content
401 attributes must not added to XmlSchemaComplexType directly. It
402 causes schema compilation error.
403 DataRelation should not be output when related columns are hidden.
405 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
407 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
408 also expected to do ReadXml(), but I will remove that feature and
409 support column reordering).
410 * XmlSchemaDataImporter.cs : Always initialize dataset name.
411 Always set Nested and primary key for parent table.
412 * XmlDataReader.cs : Now it is used.
413 Top level element might not match to dataset name nor any table
414 name, but still possible to read content tables.
415 Handle empty element correctly in some places.
416 Handle Fragment mode (read up XmlReader to the end).
417 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
418 XmlDataInferenceLoader and XmlDataReader.
420 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
423 Eliminated CRLF injection.
424 More clear message in Clear().
425 Updates reflecting XmlSchemaDataImporter change.
426 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
427 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
428 but that depends on different behavior from ms.net).
429 Set locale also for DataTable.
430 Add xs:element only when target namespace matches to the
431 element's namespace. Otherwise, add xs:import for external namespace.
432 Put xs:sequence for dataset element's particle _only when_ actual
435 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
437 * XmlDataReader.cs : Added. This class will work better when our
438 schema inference and schema read engine gets improved. (It contains
439 standalone testable Driver class.)
441 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
443 * ForeignKeyConstraint.cs : Check step change. Existence then column
444 validity. just for tests.
445 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
448 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
450 * DataSet.cs : Ignore empty content only when output type is diffgram.
452 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
454 * CustomDataClassGenerator.cs : Modified that DataSet contains each
455 DataTable field so that each table property can access them directly.
456 (plus, modified standalone code driver code: shouldn't affect)
458 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
460 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
462 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
464 * XmlSchemaDataImporter.cs :
465 SimpleContent column support.
466 Annotated relation support.
467 Top-level element is counted only when its type is complex.
468 xs:anyType is no longer treated as complex type.
469 dataset existence is mandatory now.
470 Improved DataType and DefaultValue support.
471 Attribute namespace is properly handled now.
472 Prohibited attribute is now treated as hidden column.
473 Reject list or union simple type.
475 Still incomplete 1) to read relationship in some cases, 2) to
476 determine whether an element is dataset or table, 3) thus to
477 exclude extraneous column, 4) to remove extraneous *_Id column.
479 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
482 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
483 serialization .ctor() (thus schema read/inference should be easier).
484 DataRowSorter should consider Table's Locale.
486 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
488 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
489 use it instead of duplicating logic.
491 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
493 * ConstraintCollection.cs :
494 Use Table.CaseSensitive and Table.Locale to compare strings.
495 Duplicate constraint name exception does not occur under .NET 1.1.
497 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
499 * XmlSchemaDataImporter.cs: Added little type check.
501 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
503 * DataSet.cs: Implemented support for runtime serialization. Fixed support
504 for xml serialization.
505 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
507 2004-04-30 Umadevi S <sumadevi@novell.com>
508 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
509 * DataTableCollection.cs : Tested and removed TODO
510 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
512 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
514 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
516 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
518 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
519 constraint is defined on single column.
521 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
523 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
524 not ArgumentException (maybe changed after 1.1).
526 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
528 * DataRow.cs : When Column was added and it was AutoIncrement column,
529 it extended the item object array incorrectly.
530 (Plus tiny comment and incorrect indentation fix.)
532 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
534 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
536 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
538 * DataRow.cs : Bug fix in CopyValuesToRow().
540 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
542 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
543 each of the columns should not be unique, but only all the constraint's columns together.
545 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
548 - Added using of list of autoIncrement columns
549 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
550 - Fix in CheckNullConstraints
551 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
552 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
553 - Added onColumnRemoved() method to threat column removal accurately.
555 * DataRowCollection.cs :
556 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
557 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
560 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
562 * DataColumnCollection.cs :
564 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
565 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
566 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
569 - Uses autoincrement list of a table
571 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
573 * XmlDataLoader.cs : Even when it should ignore schema, it was
575 * XmlSchemaDataImporter.cs : DataRelation creation support.
576 Improved "DataSet" element handing. When attributes are on the
577 element, it is not a "DataSet" element.
578 Fixed parent key column name.
579 Unique name creation is not required. Just raise an error.
580 Fill facet also for attribute types.
582 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
584 * DataRow.cs : Null check for CheckReadOnlyStatus() and
585 CheckNullConstraints(), with some coding guideline fixes.
586 Type check should be done by Type instance comparison.
588 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
590 * DataColumnCollection.cs : When add a column to the collection, fill
591 auto-increment column.
593 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
595 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
597 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
599 * CustomDataClassGenerator.cs : Added.
600 * TypedDataSetGenerator.cs : Implemented Generate().
601 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
602 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
604 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
606 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
608 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
610 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
612 2004-04-23 Umadevi S (sumadevi@novell.com)
613 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
614 - Added error handling to the above methods
616 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
618 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
619 the support is incomplete yet).
621 Reverted ReadModeSchema() argument change. XmlReadMode would be
622 useful to handle IgnoreSchema.
623 Don't overwrite DataSetName when mode is not such kind.
624 Set Prefix and Namespace as well as DataSetName.
625 AllowDBNull looks set false by default for element column.
626 Set unique constraint as primary key when infering the table schema.
628 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
631 Never set null string for Prefix and Namespace.
632 In InferXmlSchema() when null XmlReader is passed, just do nothing.
633 In WriteXmlSchema(string), earlier try block.
634 In BuildSchema(), try to add serialization namespaces for each
635 namespaces in DataSet/DataTable/DataColumn.
636 Removed namespace argument from WriteColumnAsElement() and don't
637 overwrite when namespace is "". This fixes bug #57330.
638 * DataColumn.cs : For Namespace and Prefix, never set null.
640 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
642 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
643 before creating and adding foreign key constraint and relation.
645 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
647 * MergeManager.cs : In AdjustSchema() source table clone should be added
648 and not the table itself.
650 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
653 - CaseSensitive : Additional fix (removed unnesessary assignment).
654 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
656 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
658 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
660 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
663 - EndLoadData() : perfomance fix in case of null constraint violation
664 during data load (also in DataRow.cs).
665 - CaseSensitive : If DataTable belongs to DataSet it should always use
666 DataSet.CaseSensitive untill explicitly changed.
667 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
670 - Pefromance fix in case of null constraint violation
671 during data load (also in DataTable.cs).
672 - CollectionChanged() : use correct column number after new DataColumn was added
673 (differs in case some DataColumn was previosly removed).
674 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
676 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
678 * DataColumnCollection.cs : Since unique constraint is added now
679 in DataColumn.SetTable() the additional creation of constraint in
680 DataColumnCollection.Add() is redundant and causes exception - fixed.
682 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
684 * XmlDataLoader.cs : Added "never add data rows" mode.
685 Removed unused code. However, it is temporary fixes to unify
686 ReadXml() and InferXmlSchema().
687 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
689 I'll create another XmlDataLoader since there are many problems
690 such that 1) it is too waste to read the entire xml into an
691 XmlDocument, 2) it does not handle attributes correctly, and 3) it
692 must handle "ignored namespaces".
694 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
696 * Added XmlSchemaDataImporter.cs (new schema reader).
697 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
699 Let schema reading work to ReadXmlSchema().
700 Don't return ReadSchema when argument read mode was DiffGram.
702 2004-04-15 Umadevi S (sumadevi@novell.com)
703 * Updated Clone/Copy methods in DataSet along with Testcase
704 * ForeignKeyConstraint.cs - special ctor implemented
705 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).
706 * Changes in ConstraintCollection.cs for the above
707 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.
710 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
712 * XmlSchemaMapper.cs : set parent key and foreign key info to
713 DataRelation when reading refkey constraints.
714 Supply constraint name for fkey.
716 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
718 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
719 mode is Auto, just ignore the schema if there is already schema info.
720 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
722 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
725 - In MS output, XML declaration looks to have standalone decl (yes).
726 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
727 - ReadXml(reader, mode)
728 1) return originally specified mode, instead of (always) Auto.
729 2) Check empty reader.
730 3) Check diffgram schema and content separately.
731 4) When diffgram exists, remaining (the same-level) contents
733 5) Similar fact should be applied, but somewhat different.
734 InferSchema and IgnoreSchema just skips, Fragment reads both
735 schema and content, others just reads schema.
736 - Removed unused code.
738 - Read() should skip in some ReadMode.
739 - Don't compare schema element name as case-insensitive (well,
740 should schemas be checked here?)
741 - Avoided BuildDocument() not to create confusing DataSet
743 - Don't add any tables when reader has single element.
745 When target table was not found, MS.NET doesn't raise an error.
746 * XmlSchemaMapper.cs :
747 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
749 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
752 - InferXmlSchema(): Throw explicit NotImplementedException now.
753 - Don't put XML declaration everywhere. Write just for filename arg.
754 - xmlns="" should not be written. Maybe WebService problem is
755 because default namespace is overwritten. This patch will keep
756 the WS problem away and actually fixes some unit tests (i.e. use
757 explicit String.Empty for null namespace in WriteStartElement()).
758 - MoveToContent() should always be called, not only when
759 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
760 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
761 element. As to MSDN, diffgram does not contain schema.
763 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
765 * DataTable.cs: made _initStatus private so that System.Data is CLS
768 2004-04-13 Umadevi S <sumadevi@novell.com>
769 * UniqueConstraint.cs:
770 * ConstraintCollection.cs:
772 - Implemented a Constructor for UniqueConstraint.cs
773 - Used EndInit on DataTable to call a delegate which adds the
774 constraints passed to the most recent call of AddRange().Used
775 AddRange() on ConstraintCollection to check whether
776 DataTable.BeginInit has occurred. If yes, save the argument
777 constraint collection passed, then return. If no, Check whether the
778 constraints are of type UniqueConstraint and initialized with the
779 special constructor If yes Initialized the table property of this
780 UniqueConstraint object with table assosciated with the current
781 instance of ConstraintCollection class.
783 2004-04-07 Marek Safar <marek.safar@seznam.cz>
785 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
787 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
790 * DataColumnCollection.cs:
791 * DataRelationCollection.cs:
792 * DataRowCollection.cs:
793 * DataTableCollection.cs:
794 * InternalDataCollectionBase.cs:
795 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
798 2004-04-05 Jackson Harper <jackson@ximian.com>
800 * DataTable.cs: Add rows to the row list if there is no filter.
802 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
804 * DataColumn.cs : Setting Caption to null sets it to the empty string
805 (ms.net behaviour, testcase is in DataColumnTest).
807 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
810 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
812 * DataColumn.cs: In Expression setter, set the expression member even if
813 it is an empty string.
814 * DataSet.cs: Support serialization of byte[] columns.
815 * XmlDataLoader.cs: Support deserialization of Guid columns.
816 Set MappingType.Attribute to columns infered from attributes.
818 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
820 * ExpressionElements.cs : remove
821 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
822 Integration of new Mono.Data.SqlExpressions classes used in
823 DataTable.{Select, Compute}.
824 Fixes bug #55503 and lots of failures in DataTableTest.cs.
826 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
828 * Index.cs: Simple fix in ComparePartialRowNonUnique.
829 This fixes bugs #56129 and #56014.
831 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
833 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
834 stream after writing the dataset. This fixes bug #52581.
835 Also added several writer.Close into finally blocks, so writers are properly
836 closed in case of an exception.
838 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
840 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
841 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
842 * ColumnTypeConverter.cs: Added stub
843 * DefaultValueTypeConverter: Added stub
844 * ConstraintConverter.cs: Added stub
846 2004-03-04 Eran Domb <erand@mainsoft.com>
848 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
849 in MS.NET documentation (missing DataSet element etc).
851 2004-03-04 Eran Domb <erand@mainsoft.com>
854 * Index.cs : Rollback last changes.
856 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
858 * Index.cs : justa build fix.
860 2004-03-03 Eran Domb <erand@mainsoft.com>
863 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
864 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
865 This changes made for performance improvement.
867 2004-02-08 Eran Domb <erand@mainsoft.com>
869 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
871 2004-02-08 Eran Domb <erand@mainsoft.com>
873 * DataSet.cs: Fix some bugs in ReadXml().
875 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
877 * DataSet.cs: Added missing method that broke the build.
879 2004-02-04 Eran Domb <erand@mainsoft.com>
881 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
883 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
884 when all column are attributes (elements count is 0), we still want to add the relations. No relations
885 can be on simple contents.
886 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
887 (AddForeignKeys) Check that the relation has constraints attach to it.
888 * XmlConstants.cs : Added constant.
890 2004-02-04 Eran Domb <erand@mainsoft.com>
892 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
893 DoWriteXmlSchema calls BuildSchema ().
895 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
897 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
899 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
901 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
902 also be added to the dataset.
903 In WriteTable(), do not write unchanged rows when writing the original
904 version of the table.
905 Added WriteIndividualTableContent(), for writing the contents of a single
907 Changed BuildSchema and related methods, so it can generate a schema for
908 any set of tables, not just the tables of the dataset (needed for
909 single datatable serialization).
910 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
911 Also implemented some ReadXmlSchema methods.
912 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
913 instead of loading the full dataset in an XmlDocument. It is faster and
914 saves memory. Also fixed several problems when generating the changes.
915 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
916 table serialization).
918 2004-02-02 Eran Domb <erand@mainsoft.com>
920 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
921 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
922 * DataTable.cs (NewRow): Create only one DataRowBuilder.
923 Initiate new row with row id -1.
924 * DataRow.cs : Add RowId property.
925 * DataRowBuilder.cs : Add _rowId member.
926 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
928 2004-01-26 Eran Domb <erand@mainsoft.com>
930 * XmlConstants.cs : Added some constants.
931 * DataColumn.cs : Added a method to retrive AutoIncrement value.
932 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
934 * XmlDiffLoader.cs : Convert the value comming from the xml.
935 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
936 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
937 (ReadXmlSchemaElement) : Set the locale of the dataset.
938 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
939 (GetColumnType) : New method to get the column type from the attribute value.
940 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
941 and add the constraint to the table.
942 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
944 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
945 Writing more information to the schema for interoperability with ms.net.
946 Improve diffgarm writing mode.
949 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
951 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
953 2004-01-21 Eran Domb <erand@mainsoft.com>
955 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
956 Do not set the child column to be AutoIncrement.
957 Create the new column for the relation as MappingType.Hidden so they will not be serialized
958 when writing the dataset to xml.
960 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
962 * Added missing TypedDataSetGenerator.cs.
964 2004-01-08 Eran Domb <erand@mainsoft.com>
966 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
967 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
968 InferSchema, ReadSchema and IgnoreSchema.
969 * XmlDataLoader.cs : All modes use the same logic.
970 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
972 2004-01-06 Eran Domb <erand@mainsoft.com>
974 * DataRelationCollection.cs : Use IndexOf in indexer.
975 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
976 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
977 * XmlDiffLoader.cs : Reading nested tables.
978 * XmlSchemaMapper.cs : Reading the relation.
979 * XmlConstants.cs : Adding some constants.
981 2004-01-05 Jackson Harper <jackson@ximian.com>
983 * DataView.cs: Set readonly property of property descriptor. This
986 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
988 * DataRelationCollection.cs : Fixed incorrect generation of default
990 * DataSet.cs : Added missing functionality in WriteXml().
991 * XmlConstants.cs : Added new constants.
993 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
995 * DataSet.cs : Fixed incorrect WriteXml() signature.
997 2003-12-18 Jackson Harper <jackson@ximian.com>
999 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
1001 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
1003 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
1004 they take shape of xml. This fixed bug #52240
1006 2003-12-16 Tim Coleman <tim@timcoleman.com>
1007 * KeyRestrictionBehavior.cs:
1008 New stubs added for .NET 1.2
1012 2003-12-08 Eran Domb <erand@mainsoft.com>
1013 * DataColumn.cs (Expression) : Validate the expression.
1015 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
1016 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
1018 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
1019 (RejectChanges) : Detach row when state was Added.
1020 (CollectionChanged) : Fix a bug.
1022 * ExpressionElement (ValidateExpression) : Fix a bug.
1024 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
1025 a parent row in the parent table.
1026 (_validateColumns) : Fix bugs.
1028 * MergeManager.cs (AdjustSchema) : Fix a bug.
1030 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
1033 2003-11-30 Eran Domb <erand@mainsoft.com>
1034 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
1035 (Add) : Find if the new column name is the same as the one found in IndexOf.
1036 (IndexOf) : New method.
1037 (Contains) : Use new IndexOf.
1038 (IndexOf) : Use new IndexOf.
1040 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
1041 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
1043 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
1044 (Delete) : Detach row if the RowState was Added.
1045 (GetChildRows) : Get the array form the ChildTable.
1046 (GetParentRows) : Get the array from the ParenTable.
1048 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
1050 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
1052 * DataTable.cs (PrimaryKey) : Fix bugs.
1053 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
1055 * DataTableCollection.cs (Add) : Fix a bug.
1057 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
1058 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
1059 Some code style changes (tab instead of whit spaces, alignment, etc...).
1061 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
1063 * MergeManager.cs (AdjustSchema) : Fix a bug.
1067 2003-11-26 Miguel de Icaza <miguel@ximian.com>
1069 * DataSet.cs: Add a few more missing methods, code style updated
1072 2003-11-26 Tim Coleman <tim@timcoleman.com>
1074 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
1075 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
1076 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
1077 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
1078 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
1079 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
1080 * StatementCompletedEventHandler.cs UpdateOptions.cs:
1081 New classes added for NET_2_0
1082 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
1083 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
1084 Modifications to add new NET_2_0 functions
1086 2003-11-25 Tim Coleman <tim@timcoleman.com>
1090 2003-11-21 Pedro Martínez Juliá <yoros@wanadoo.es>
1092 * DataRow.cs: Detached row can be accesible (new rows from data
1093 table are detached). Closes but #51263.
1095 2003-11-19 Eran Domb <erand@mainsoft.com>
1096 * DataRow.cs : Throw exceptions if Row is Detached.
1097 (EndEdit) : Check that we are not in middle of ChangeEvent.
1098 (AcceptChanges) : Detach the row.
1100 * DataRelation.cs : throw correct exception.
1101 *UniqueConstraint.cs : throw correct exception.
1104 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1106 * DataRow.cs: Use RemoveInternal instead of Remove because the last
1107 one uses Delete and AcceptChanges.
1109 * DataRowCollection.cs: When removing, Delete and AcceptChanges
1110 method from the row are called. Added an internal method that will
1111 be used by DataRow to "physically" remove the row from the list.
1113 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1115 * DataRowCollection.cs: To follow the specification: Remove and
1116 RemoveAt should remove the row. But needed to call DeletingDataRow
1117 to prepare the deleting.
1119 * DataRow.cs: Don't call DeletingDataRow when it is called by the
1120 method Table.Rows.Remove.
1122 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1124 * DataRowCollection.cs: Make the row be deleted by itself. If not,
1125 it fails because we need to call OnRowDeleting and OnRowDeleted. It
1126 is full implemented inside DataRow.
1128 2003-11-05 Eran Domb <erand@mainsoft.com>
1129 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
1131 2003-11-04 Eran Domb <erand@mainsoft.com>
1132 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
1134 (GetChildRows) : Adding some checks.
1135 (GetParentRows) : Adding some checks. Fix a bug in implementation.
1136 (SetParentRow) : Added implementation.
1138 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
1139 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
1140 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
1141 * MergeManager.cs : Check that the target table is not null.
1143 2003-10-27 Eran Domb <erand@mainsoft.com>
1144 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
1145 can be converted to the column type.
1147 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
1149 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
1150 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
1152 * DataRowCollection.cs (Add) : Fixing a bug.
1153 (Clear) : Before clearing the array check that there is no violation of FK constraint.
1155 * DataSet.cs (Prefix) : If value is null chage it to empty string.
1156 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
1158 * ExpressionElement : Adding support for IN expresion.
1160 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
1161 (Select) : Adding support for DataViewwRowState.
1163 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
1165 * MergeManager.cs (MergeRow) : Fix bugs.
1167 2003-10-27 Eran Domb <erand@mainsoft.com>
1168 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
1169 check null values when ending loading data.
1171 * DataSet.cs (RejectChanges) : Imlementation.
1172 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
1173 change it to empty string.
1175 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
1177 2003-10-22 Eran Domb <erand@mainsoft.com>
1178 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
1180 * ConstraintCollection.cs (RamoveAt): Change implemntation.
1182 * DataTableCollection (CanRemove): Removing cast to Constraint.
1184 2003-10-22 Eran Domb <erand@mainsoft.com>
1185 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
1186 (Clear): The collection was cleared without removing the relation from the parent and child tables.
1188 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
1189 (HasChanges, Reset): Imlementation.
1191 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
\r
1192 This is because the we do not no when to turn off the flag.
1193 (Locale): Changing implementation to behave like ADO.NET.
1194 (AcceptChanges): Fix bug.
1195 (Clear): Check that this table is not referenced from a foreign key constraint.
1196 (Copy): Do not try to access a deleted row.
1197 (CopyProperties): Copy the PrimaryKey.
1198 (GetChanges, ImportRow): Implementation.
1199 (LoadDataRow): Adding implementation if the table has PrimaryKey.
1200 (ToString): Changing implementation to behave like ADO.NET.
1202 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
1204 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
1205 (HasErrors): Implementation.
1206 (Delete): Added checking for child rows of the deleted row.
1207 (EndEdit): Added checking for child row and firing events.
1208 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
1209 (GetColumnsInError): Added a check for null values in column error.
1210 (HasVersion): Added special treatment for special RowState.
1211 (CollectionChanged): More checks to avoid NullReferenceException.
1213 * DataRowCollection.cs (Remove): Fix a bug.
\r
1216 2003-10-01 Duncan Mak <duncan@ximian.com>
1218 More patches from Eran Domb <erand@mainsoft.com>.
1220 * MergeManager.cs: New file.
1222 * DataRelationCollection.cs (AddCore): Check that a
1223 UniqueConstraint is already exists. It loops over the Relations
1224 instead of the Constraints.
1225 (Add, AddCore): The relation was added twice.
1227 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
1229 2003-09-30 Duncan Mak <duncan@ximian.com>
1231 Patches from Eran Domb <erand@mainsoft.com>.
1233 * DataRelation.cs (constructor): When the name of the relation is
1234 null, it should return an empty, not "Relation".
1236 * DataRow.cs (AcceptChanges): Added special case for
1238 (CancelEdit): Set editing flag to false.
1239 (IsNull): Check that the value is DBNull.
1241 * DataRowCollection.cs (Add): There was no check that the table of
1242 the collection is owned by a DataSet.
1244 * DataSet.cs (OnMergeFailed): Added.
1246 * UniqueConstraint.cs (AssertConstraint): There was no check that
1247 values in the row are not null, where it is a primary key
1248 column. Also check that the row has a proposed version, if not,
1249 get the current version when we compare the rows.
1251 2003-09-25 Duncan Mak <duncan@ximian.com>
1253 Patches from Eran Domb <erand@mainsoft.com>.
1255 * DataColumn.cs (Unique): Implemented.
1258 * ConstraintCollection.cs:
1259 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
1260 an Exception thrown. Details:
1261 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
1263 * DataRowCollection.cs (Add): There is no checking that there is
1264 no violation of the unique constrains.
1266 * UniqueConstraint.cs (AssertConstraint): There is no checking on
1267 all columns in the constraint.
1269 * DataTableCollection (Add): Correctly throw an Exception, more
1271 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
1272 (Remove, RemoveAt): Implemented.
1274 2003-07-31 Duncan Mak <duncan@ximian.com>
1276 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
1278 2003-07-25 Ravi Pratap <ravi@ximian.com>
1280 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
1281 method on a delegate is disallowed - fix this.
1283 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
1285 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
1286 xml serialization. Modified method of writing schema. Now it creates
1287 a XmlSchema object and serializes it using XmlSerializer.
1288 * XmlConstants.cs: Added constants for data type names.
1289 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
1290 type specified in the column.
1292 2003-04-20 Alan Tam <Tam@SiuLung.com>
1294 * DataRelationCollection.cs: Fix a bug that prevent relations
1295 from being added via DataSet.
1297 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
1299 * UniqueConstraint.cs: one tiny fix.
1301 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
1303 * DataTable.cs: Remove UniqueConstraints when adding new ones
1305 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
1307 * DataColumnCollection.cs: Little 'case sensitive' fix
1309 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
1311 * DataRow.cs: AutoIncrement handling to Constructor
1312 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
1314 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1316 * DataTable.cs: Some fixes to PrimaryKey etc...
1317 * UniqueConstraint.cs: Little clean up
1319 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1321 * DataTable.cs: Tiny fix to ToString () -method
1323 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1325 * ConstraintCollection.cs: Little fix.
1326 * DataColumn.cs: Added new internal method SetUnique()
1327 * UniqueConstraint.cs: some little fixes
1329 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
1331 * DataRowCollection.cs: Bugfixes, implementation,...
1333 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
1335 * DataColumn.cs: If DataType if set to something else than short, int
1336 or long and AutoIncrement is true, AutoIncrement is must set to false.
1338 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1341 (BeginEdit): fixed array bound problem when a column has been added.
1342 (EndEdit): just assign proposed to current as proposed is set to null.
1343 This also fixes another array boudn problem.
1345 2003-03-21 Alan Tam <Tam@SiuLung.com>
1347 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
1348 EndEdit and AcceptChanges to act correctly according to DataRowState
1350 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
1351 attached and detached from the collection.
1353 2003-03-20 Alan Tam <Tam@SiuLung.com>
1355 * DataColumn.cs: Store empty string for Expression when null is passed in.
1356 Classes generated by XSD.exe passes null by default.
1358 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
1360 * DataColumnCollection.cs: Tiny clean up
1362 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
1364 * DataColumn.cs: little fixes.
1365 * DataColumnCollection.cs: Lots of little fixes and improvments.
1367 2003-03-12 Alan Tam <Tam@SiuLung.com>
1369 * DataSet.cs: Fixed a bug that the file written does not close correctly.
1371 2003-03-08 Alan Tam <Tam@SiuLung.com>
1373 * DataRelationCollection.cs: Removed the mis-overridden methods
1374 * DataRow.cs: Fixed an attribute
1375 * DataSet.cs: Fixed the modifiers
1377 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
1379 * DataTableCollection.cs: The Contains (string name),
1380 IndexOf (string name) methods, and item[string name] indexer
1381 now behave more like .NET with respect to case-sensitivity.
1382 That is if there is an exactly matching item then this one is used.
1383 If there is only one item differing in case then it used.
1384 If there are more than one item differing in case then
1385 Contains returns false, IndexOf returns -1, and item[]
1386 throws an ArgumentException.
1388 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
1390 * ExpressionElement.cs: More implementation.
1392 2003-02-28 Alan Tam <Tam@SiuLung.com>
1393 * DataSet.cs: Changed WriteTable so that it now calls the newly written
1394 WriteObjectXml to direct the call to the respective XmlConvert method.
1395 This fixes the wrong format written to XML files of bool, float,
1396 double, DateTime and TimeSpan types.
1398 2003-02-25 Alan Tam <Tam@SiuLung.com>
1400 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
1401 * DataRelationCollection.cs: Implemented AddRange and Contains.
1402 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
1403 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
1404 Reimplemented most Add methods to eliminate duplicated checks.
1405 Centralized RelationName generation procedure in GetNextDefaultRelationName.
1407 2003-02-25 Alan Tam <Tam@SiuLung.com>
1409 * DataColumn.cs: Fixed wrong storage representation of Expression
1410 (using empty string instead of null) so that ToString() returns nothing.
1411 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
1412 auto column naming now works as expected. Reimplemented some Add methods
1413 to eliminate code duplication.
1415 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
1417 * DataTable.cs: DataTable.CaseSensitive follows parent
1418 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
1419 been changed directly from DataTable
1421 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
1423 * DataSet.cs: When CaseSensitive property is changed all of the Tables
1424 of DataSet have to change too
1426 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
1428 * InternalDataCollectionBase.cs: revert change to field
1431 * DataViewManager.cs
1434 * DataSet.cs: commented use of DesignerAttribute
1435 because it broke the build. According to MSDN,
1436 DesignerAttribute does not have a zero-argument constructor
1438 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
1440 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
1442 2003-02-18 Alan Tam <Tam@SiuLung.com>
1444 * DataRow.cs: Implemented GetParentRow and GetParentRows.
1445 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
1446 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
1447 RaisePropertyChanging.
1448 * DataTable.cs: Implemented NewRowArray.
1449 * DataTablePropertyDescriptor: Fixed a modifier.
1450 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
1451 * PropertyCollection.cs: Minor fix.
1452 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
1453 * DataRelation.cs DataRelationCollection.cs DataRow.cs
1454 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
1455 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
1456 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
1457 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
1458 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
1460 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
1462 * ExpressionElement.cs: More implementation
1464 2003-02-05 Alan Tam <Tam@SiuLung.com>
1466 * DataSet.cs: Added framework for DataSet.Update Implemented missing
1467 methods GetSchemaSerializable, GetSerializationData,
1468 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
1470 * DataTable.cs: Implemented missing methods CreateInstance and
1471 GetRowType for DataTable
1473 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
1475 * DataSet.cs: Implemented private method MapType for
1476 mapping datatypes for XmlSchema
1478 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1480 * DataView.cs: implemented Dispose.
1482 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
1484 * ExpressionElement.cs: Added new file. This file is for parsing
1485 and DataData.Select () -methods and DataColumn.Expression -property
1486 * DataTable.cs: Implemented Select(string) -method
1488 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
1490 * DataSet.cs: One little fix to writing xml
1492 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
1494 * XmlSchemaMapper.cs: Some fixes.
1495 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
1498 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
1500 * UniqueConstraint.cs: Do not set columns Unique property true
1502 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
1504 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
1506 * DataTableCollection.cs: Now names new DataTable if it doesn't
1507 already have a name.
1509 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
1511 * XmlSchemaMapper.cs: Improvments.
1512 * XmlConstaints.cs: Added more constants.
1513 * DataSet.cs: Improvments of reading and writing xml
1514 * DataColumn.cs: Added default values of properties.
1516 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
1518 * XmlSchemaMapper.cs: Some improvments
1520 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
1522 * DataRowCollection.cs: Added IndexOutOfRangeException
1523 * DataTableCollection.cs: Added OnCollectionChanging and
1524 OnCollectionChanged events.
1525 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
1526 * DataTable.cs: Implemented Copy () and Clone () methods.
1527 * XmlDataLoader.cs: some fixes.
1528 * XmlSchemaMapper.cs: comments.
1530 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1532 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
1534 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1536 * DataColumnPropertyDescriptor.cs: fixed typo.
1537 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
1538 to get the DataViewManager and removed TablePD class.
1539 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
1540 suggested by danmorg.
1542 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
1544 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
1546 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
1547 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
1549 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1551 * DataView.cs: made dataViewManager internal.
1552 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
1553 properties of the object, but the values of the columns present in a
1556 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
1557 which returns a PropertyDescriptorCollection. Created a new class
1558 derived from PropertyDescriptor that treats Table as an object whose
1559 properties are DataRowView.
1561 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1563 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
1565 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1567 * DataColumn.cs: ExtendedProperties is by default !null-
1569 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1571 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
1572 set column's ordinal.
1574 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
1577 * XmlDataLoader.cs: XmlReader closing fixes.
1578 * XmlSchemaReader.cs: Added support for ref=
1580 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
1583 - Added XmlReader and XmlWriter Closing.
1584 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
1585 * XmlSchemaMapper.cs
1586 - Much better way IMHO to map xmlschema than the old one in
1587 DataSet.cs. Its, more flexible, cleaner, ...
1589 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
1591 * XmlDataLoader.cs: Reading diffgrams.
1593 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
1595 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
1596 * DataTable.cs: Added ChanginDataColumn () for triggering
1597 DataColumnChanging event
1599 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
1601 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
1603 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
1605 * DataSet.cs: Indentations to WriteXml ()
1607 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
1610 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
1611 class XmlDataLoader.cs
1613 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
1615 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
1617 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
1619 * DataSet.cs: Started to implement ReadXml-methods.
1621 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1623 * DataSet.cs: implemented DefaultViewManager and GetList.
1625 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
1626 DataList in System.Web.
1628 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
1631 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
1634 * DataTable.cs: Fixed NullException (rollback -event)
1635 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
1637 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
1640 * DataRowCollection.cs: Moved event triggering from DataRow to
1643 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
1645 * DataSet.cs: Little fix to WriteTable () -method
1646 and DoReadXmlSchema () -method.
1648 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
1650 * DataSet.cs: Clean up to reading xmlschema. This looks much better
1651 now (work better too), but it not working correctly yet.
1653 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
1656 * DataRowCollection.cs: Added some event handlins stuff.
1657 * DataSet.cs: Some fixes.
1658 * DataTable.cs: Added event handlers.
1660 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
1662 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
1664 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
1666 * System.Data/DataRow.cs: Added internal property XmlDataID
1668 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
1670 * DataSystem.Data.DataTableCollection.cs:
1671 Removed HashTable. There could be situations where DataTable
1672 is added to collection before it hava TableName. So using
1673 HashTable is impossible.
1675 2002-11-19 Carlos Guzmán Álvarez <carlosga@telefonica.net>
1677 * DataRow.cs: an object that is equal to null
1678 should be allowed to be set in this indexer too
1681 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
1683 * DataColumnPropertyDescriptor.cs: added file
1685 * System.Data/DataRowView.cs: started implementation
1687 * DataTable.cs: stubbed more interfaces. Implemented
1688 IListSource.GetList()
1690 * DataView.cs: stubbed more interfaces. Implemented
1691 some properties and methods: GetEnumerator(),
1692 ITypedList.GetItemProperties, Item indexer, CopyTo()
1694 2002-05-18 Nick Drochak <ndrochak@gol.com>
1696 * DataRow.cs: Fix typo.