1 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
4 - Changed access of original, current and proposed indexes to internal.
5 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
6 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
7 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
8 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
9 Care about Null and DBNull values is now in DataContainer.
10 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
11 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
12 - Fix in CopyState : clone column errors.
13 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
15 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
17 * DataColumnCollection.cs :
18 - Fix : Add() now delegates to Add(DataColumn).
19 - autoIncrement list holds DataColumn objects, and not just column names.
21 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
24 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
25 - DefaultValue fixes. Default value from now on is also stored in special record in
26 DataTable, so we're able to set default value for the column faster (typed).
29 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
31 * DataSet.cs : children of non-root rows were not properly written.
34 2004-06-10 Umadevi S <sumadevi@novell.com>
35 * DataRelation.cs - Constructor
36 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
38 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
40 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
42 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
44 * Constraint.cs: marked methods internal to fix public API
45 * ConstraintCollection.cs: to fix public API, use
46 DataTable.fInitInProgress to check whether initialization
47 of DataTable is in progress
48 * DataColumn.cs: added stubs for missing methods
49 * DataRowBuilder.cs: marked Table property internal to
51 * DataSet.cs: removed extra empty destructor, marked
52 OnMergeFailed internal to fix public API
53 * DataTable.cs: use fInitInProgress field to hold init
54 status, to match MS.NET
55 * DataView.cs: added missing attributes on IsOpen
57 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
59 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
60 in XmlNamespaceManager.
62 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
64 * DataSet.cs : complex table content child was not properly added
65 when it is the only one child in the parent table. Fixed bug #53959.
67 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
68 * DataTableTypeConverter.cs: added
69 * DataView.cs: added missing attribute on Table property
70 * DataViewManager.cs: moved attribute to correct property
71 * UniqueConstraint.cs: removed extra ReadOnly attribute from
74 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
76 * DataRow.cs : ColumnsChanged event is not required in .ctor().
78 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
80 * XmlDataReader.cs : type change is required before setting value
83 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
85 * DataSet.cs : Loop-break of the last fix was incorrect.
87 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
89 * DataSet.cs : When a row has no parent row but the table has parent
90 relation(s), that row had been always ignored.
92 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
94 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
95 rejected same-named tables in different hierarchy. Thanks to Boris.
97 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
99 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
100 infinite loop. Thanks to Boris for this fix.
102 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
104 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
105 Thanks to Boris for this fix.
107 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
109 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
110 for ReadXml(). Thanks to Boris.
112 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
114 - CheckReadOnlyStatus : use typed (and faster comparing).
115 - EndEdit : bug fix - do not dispose record if it holds original version.
116 - SetValuesFromDataRecord : Take care about autoincrement columns.
119 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
121 * MergeManager.cs : don't output debug message to Console.
123 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
125 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
126 structure. Thanks to Boris Kirzner for the fix.
128 2004-05-27 Umadevi S <sumadevi@novell.com>
129 * DataRelationCollection.cs - fixed nunit test errors
131 2004-05-27 Umadevi S <sumadevi@novell.com>
132 * DataTableCollection.cs - fixed nunit test errors
134 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
136 * DataColumnCollection.cs : NullReferenceException was thrown when
137 the table was not found.
138 * DataRowCollection.cs :
139 Find() just returns null for null value under MS.NET 1.1.
140 RemoveAt() should also avoid to call AcceptChanges() like Remove().
141 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
142 directly under MS.NET (for nunit test).
144 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
146 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
147 caused problem on qualified name to get schema Field name.
149 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
151 * XmlDataReader.cs : Now data reader is namespace aware in all places.
152 When table's namespace is different, it entered to infinite loop.
154 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
155 * MergeManager.cs : AdjustSchema now updates by reference new created table,
156 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
159 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
161 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
162 * DataColumnCollection.cs : fixed parantethes.
164 - AcceptChanges : do nothing if row state is unchanged.
165 - GetChildRows, GetParentRows : bug fix (use correct index).
166 * DataRowCollection.cs : bug fix (compare all row's values).
167 * DataTable.cs : bug fix (use correct row version).
169 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
171 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
172 When content type is Mixed, text column is not required (it is
173 required only when the complex type has no particle).
174 "Repeated element" column is also created (considering maxOccurs=0
175 and complex content extension).
177 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
179 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
182 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
184 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
185 Fixed relation inference to consider attribute XPath.
187 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
189 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
192 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
194 * DataColumn.cs - removed default member attribute.
196 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
199 DataColumnChangeEventArgs.cs,
200 DataColumnCollection.cs,
202 DataRowCollection.cs,
204 Index.cs : Data storage in the row is redesigned. Now data is stored in
205 typed containers inside DataColumn. Row holds its versions as indexes inside
206 each of data container, accessed through the row that holds it.
208 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
210 * UniqueConstraint.cs - added comment.
212 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
214 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
217 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
220 XmlDataInferenceLoader.cs,
222 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
223 XmlEncode every local name to write. This should fix bug #58268.
225 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
227 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
228 Supported repeated elements. Removed MonoTODOs.
229 * XmlDataInferenceLoader.cs : Design change to support ignored
230 namespace and repeated elements.
231 * XmlSchemaDataImporter.cs : Added mapping support classes.
233 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
235 * CustomDataClassGenerator.cs :
236 Added property parent "[foo]Row" and children "Get[foo]Row" support
237 for custom DataRow classes.
238 Fixed DataColumn property accessibility (public --> internal).
240 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
242 * CustomDataClassGenerator.cs :
243 - Put classes inside custom DataSet class.
244 - Added automatic DataRelation creation support.
245 - Added Constraints creation support. That is done separate from
246 relations, since they might be independently created.
247 - Added non-MS public DataRelation fields.
248 - Removed extraneous "DataRelation type generation" code.
249 - Fixed custom_dataset.Initialize() not to create "c" field that
250 was created more than once.
251 - Implemented AddxxxRow() that takes parameters for every column.
253 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
255 * XmlSchemaDataImporter.cs : When primary key is used more than once,
256 DataRelation borked because of empty parent column name.
258 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
260 * XmlSchemaDataImporter.cs : When Creating constraints with related
261 to DataRelation creation, also set PrimaryKey to the parent table.
263 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
265 * XmlSchemaDataImporter.cs :
266 Design change to add indirect table and relation structures.
267 Support for "relation" annotation for local element.
268 Support for repeatable simple element column (maxOccurs > 1).
269 Fixed handling of Nested property on DataRelation (for globally
270 annotated relation, Nested is false).
272 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
274 * DataRow.cs : Added DataElement property to avoid storing every row-
275 element mapping. It stored even for nodes that should be removed.
277 2004-05-13 Umadevi S <sumadevi@novell.com>
279 * RelationshipConverter.cs - Stubbed this class
280 * DataRelation.cs - added TypeConveterAttribute
282 2004-05-13 Umadevi S <sumadevi@novell.com>
284 * DataColumnCollection.cs - Added ResDescriptionAttribute
285 * DataRelation.cs - Added TypeConverterAttribute
286 * DataRelationCollection.cs - Added DefaultPropertyAttribute
287 * DataRowView.cs - Added GetHashCode method with a TODO tag
288 * DataSet.cs - Added DesignerAttribute
289 * DataView.cs - Added DesignerAttribute
290 * DataViewManager.cs - Added DesignerAttribute
291 * DataViewSetting.cs - Added TypeConverterAttribute
293 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
295 * DataRow.cs : Added XmlDataElement initialization code.
297 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
299 * XmlDataInferenceLoader.cs :
300 It now requires XmlDocument as input. Improved identification of
301 DataSet element. Removed extra lines.
302 Moved boresome design notes to bottom of the source and
303 added standalone runnable driver (not included on build).
305 Update with related to the change above.
306 WriteXml() should call Flush() after writing. This fixes bug #58327.
307 * XmlSchemaDataImporter.cs :
308 Improved indentification of DataSet element.
310 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
311 * DataTable: marked initStatus enum internal
313 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
314 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
316 * DataRowView.cs: removed extra Error property
317 * DataRow.cs: reduced accessibility of CollectionChanged method
319 * DataColumnPropertyDescriptor.cs: made class internal
320 * DataColumn.cs: removed extra TypeConvertorAttribute
321 * ConstrainCollection.cs: marked PostEndInit method internal
323 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
326 In WriteXmlSchema(), when complex type contains simple type content
327 attributes must not added to XmlSchemaComplexType directly. It
328 causes schema compilation error.
329 DataRelation should not be output when related columns are hidden.
331 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
333 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
334 also expected to do ReadXml(), but I will remove that feature and
335 support column reordering).
336 * XmlSchemaDataImporter.cs : Always initialize dataset name.
337 Always set Nested and primary key for parent table.
338 * XmlDataReader.cs : Now it is used.
339 Top level element might not match to dataset name nor any table
340 name, but still possible to read content tables.
341 Handle empty element correctly in some places.
342 Handle Fragment mode (read up XmlReader to the end).
343 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
344 XmlDataInferenceLoader and XmlDataReader.
346 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
349 Eliminated CRLF injection.
350 More clear message in Clear().
351 Updates reflecting XmlSchemaDataImporter change.
352 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
353 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
354 but that depends on different behavior from ms.net).
355 Set locale also for DataTable.
356 Add xs:element only when target namespace matches to the
357 element's namespace. Otherwise, add xs:import for external namespace.
358 Put xs:sequence for dataset element's particle _only when_ actual
361 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
363 * XmlDataReader.cs : Added. This class will work better when our
364 schema inference and schema read engine gets improved. (It contains
365 standalone testable Driver class.)
367 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
369 * ForeignKeyConstraint.cs : Check step change. Existence then column
370 validity. just for tests.
371 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
374 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
376 * DataSet.cs : Ignore empty content only when output type is diffgram.
378 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
380 * CustomDataClassGenerator.cs : Modified that DataSet contains each
381 DataTable field so that each table property can access them directly.
382 (plus, modified standalone code driver code: shouldn't affect)
384 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
386 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
388 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
390 * XmlSchemaDataImporter.cs :
391 SimpleContent column support.
392 Annotated relation support.
393 Top-level element is counted only when its type is complex.
394 xs:anyType is no longer treated as complex type.
395 dataset existence is mandatory now.
396 Improved DataType and DefaultValue support.
397 Attribute namespace is properly handled now.
398 Prohibited attribute is now treated as hidden column.
399 Reject list or union simple type.
401 Still incomplete 1) to read relationship in some cases, 2) to
402 determine whether an element is dataset or table, 3) thus to
403 exclude extraneous column, 4) to remove extraneous *_Id column.
405 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
408 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
409 serialization .ctor() (thus schema read/inference should be easier).
410 DataRowSorter should consider Table's Locale.
412 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
414 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
415 use it instead of duplicating logic.
417 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
419 * ConstraintCollection.cs :
420 Use Table.CaseSensitive and Table.Locale to compare strings.
421 Duplicate constraint name exception does not occur under .NET 1.1.
423 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
425 * XmlSchemaDataImporter.cs: Added little type check.
427 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
429 * DataSet.cs: Implemented support for runtime serialization. Fixed support
430 for xml serialization.
431 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
433 2004-04-30 Umadevi S <sumadevi@novell.com>
434 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
435 * DataTableCollection.cs : Tested and removed TODO
436 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
438 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
440 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
442 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
444 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
445 constraint is defined on single column.
447 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
449 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
450 not ArgumentException (maybe changed after 1.1).
452 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
454 * DataRow.cs : When Column was added and it was AutoIncrement column,
455 it extended the item object array incorrectly.
456 (Plus tiny comment and incorrect indentation fix.)
458 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
460 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
462 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
464 * DataRow.cs : Bug fix in CopyValuesToRow().
466 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
468 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
469 each of the columns should not be unique, but only all the constraint's columns together.
471 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
474 - Added using of list of autoIncrement columns
475 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
476 - Fix in CheckNullConstraints
477 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
478 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
479 - Added onColumnRemoved() method to threat column removal accurately.
481 * DataRowCollection.cs :
482 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
483 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
486 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
488 * DataColumnCollection.cs :
490 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
491 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
492 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
495 - Uses autoincrement list of a table
497 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
499 * XmlDataLoader.cs : Even when it should ignore schema, it was
501 * XmlSchemaDataImporter.cs : DataRelation creation support.
502 Improved "DataSet" element handing. When attributes are on the
503 element, it is not a "DataSet" element.
504 Fixed parent key column name.
505 Unique name creation is not required. Just raise an error.
506 Fill facet also for attribute types.
508 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
510 * DataRow.cs : Null check for CheckReadOnlyStatus() and
511 CheckNullConstraints(), with some coding guideline fixes.
512 Type check should be done by Type instance comparison.
514 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
516 * DataColumnCollection.cs : When add a column to the collection, fill
517 auto-increment column.
519 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
521 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
523 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
525 * CustomDataClassGenerator.cs : Added.
526 * TypedDataSetGenerator.cs : Implemented Generate().
527 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
528 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
530 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
532 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
534 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
536 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
538 2004-04-23 Umadevi S (sumadevi@novell.com)
539 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
540 - Added error handling to the above methods
542 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
544 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
545 the support is incomplete yet).
547 Reverted ReadModeSchema() argument change. XmlReadMode would be
548 useful to handle IgnoreSchema.
549 Don't overwrite DataSetName when mode is not such kind.
550 Set Prefix and Namespace as well as DataSetName.
551 AllowDBNull looks set false by default for element column.
552 Set unique constraint as primary key when infering the table schema.
554 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
557 Never set null string for Prefix and Namespace.
558 In InferXmlSchema() when null XmlReader is passed, just do nothing.
559 In WriteXmlSchema(string), earlier try block.
560 In BuildSchema(), try to add serialization namespaces for each
561 namespaces in DataSet/DataTable/DataColumn.
562 Removed namespace argument from WriteColumnAsElement() and don't
563 overwrite when namespace is "". This fixes bug #57330.
564 * DataColumn.cs : For Namespace and Prefix, never set null.
566 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
568 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
569 before creating and adding foreign key constraint and relation.
571 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
573 * MergeManager.cs : In AdjustSchema() source table clone should be added
574 and not the table itself.
576 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
579 - CaseSensitive : Additional fix (removed unnesessary assignment).
580 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
582 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
584 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
586 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
589 - EndLoadData() : perfomance fix in case of null constraint violation
590 during data load (also in DataRow.cs).
591 - CaseSensitive : If DataTable belongs to DataSet it should always use
592 DataSet.CaseSensitive untill explicitly changed.
593 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
596 - Pefromance fix in case of null constraint violation
597 during data load (also in DataTable.cs).
598 - CollectionChanged() : use correct column number after new DataColumn was added
599 (differs in case some DataColumn was previosly removed).
600 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
602 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
604 * DataColumnCollection.cs : Since unique constraint is added now
605 in DataColumn.SetTable() the additional creation of constraint in
606 DataColumnCollection.Add() is redundant and causes exception - fixed.
608 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
610 * XmlDataLoader.cs : Added "never add data rows" mode.
611 Removed unused code. However, it is temporary fixes to unify
612 ReadXml() and InferXmlSchema().
613 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
615 I'll create another XmlDataLoader since there are many problems
616 such that 1) it is too waste to read the entire xml into an
617 XmlDocument, 2) it does not handle attributes correctly, and 3) it
618 must handle "ignored namespaces".
620 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
622 * Added XmlSchemaDataImporter.cs (new schema reader).
623 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
625 Let schema reading work to ReadXmlSchema().
626 Don't return ReadSchema when argument read mode was DiffGram.
628 2004-04-15 Umadevi S (sumadevi@novell.com)
629 * Updated Clone/Copy methods in DataSet along with Testcase
630 * ForeignKeyConstraint.cs - special ctor implemented
631 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).
632 * Changes in ConstraintCollection.cs for the above
633 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.
636 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
638 * XmlSchemaMapper.cs : set parent key and foreign key info to
639 DataRelation when reading refkey constraints.
640 Supply constraint name for fkey.
642 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
644 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
645 mode is Auto, just ignore the schema if there is already schema info.
646 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
648 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
651 - In MS output, XML declaration looks to have standalone decl (yes).
652 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
653 - ReadXml(reader, mode)
654 1) return originally specified mode, instead of (always) Auto.
655 2) Check empty reader.
656 3) Check diffgram schema and content separately.
657 4) When diffgram exists, remaining (the same-level) contents
659 5) Similar fact should be applied, but somewhat different.
660 InferSchema and IgnoreSchema just skips, Fragment reads both
661 schema and content, others just reads schema.
662 - Removed unused code.
664 - Read() should skip in some ReadMode.
665 - Don't compare schema element name as case-insensitive (well,
666 should schemas be checked here?)
667 - Avoided BuildDocument() not to create confusing DataSet
669 - Don't add any tables when reader has single element.
671 When target table was not found, MS.NET doesn't raise an error.
672 * XmlSchemaMapper.cs :
673 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
675 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
678 - InferXmlSchema(): Throw explicit NotImplementedException now.
679 - Don't put XML declaration everywhere. Write just for filename arg.
680 - xmlns="" should not be written. Maybe WebService problem is
681 because default namespace is overwritten. This patch will keep
682 the WS problem away and actually fixes some unit tests (i.e. use
683 explicit String.Empty for null namespace in WriteStartElement()).
684 - MoveToContent() should always be called, not only when
685 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
686 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
687 element. As to MSDN, diffgram does not contain schema.
689 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
691 * DataTable.cs: made _initStatus private so that System.Data is CLS
694 2004-04-13 Umadevi S <sumadevi@novell.com>
695 * UniqueConstraint.cs:
696 * ConstraintCollection.cs:
698 - Implemented a Constructor for UniqueConstraint.cs
699 - Used EndInit on DataTable to call a delegate which adds the
700 constraints passed to the most recent call of AddRange().Used
701 AddRange() on ConstraintCollection to check whether
702 DataTable.BeginInit has occurred. If yes, save the argument
703 constraint collection passed, then return. If no, Check whether the
704 constraints are of type UniqueConstraint and initialized with the
705 special constructor If yes Initialized the table property of this
706 UniqueConstraint object with table assosciated with the current
707 instance of ConstraintCollection class.
709 2004-04-07 Marek Safar <marek.safar@seznam.cz>
711 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
713 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
716 * DataColumnCollection.cs:
717 * DataRelationCollection.cs:
718 * DataRowCollection.cs:
719 * DataTableCollection.cs:
720 * InternalDataCollectionBase.cs:
721 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
724 2004-04-05 Jackson Harper <jackson@ximian.com>
726 * DataTable.cs: Add rows to the row list if there is no filter.
728 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
730 * DataColumn.cs : Setting Caption to null sets it to the empty string
731 (ms.net behaviour, testcase is in DataColumnTest).
733 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
736 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
738 * DataColumn.cs: In Expression setter, set the expression member even if
739 it is an empty string.
740 * DataSet.cs: Support serialization of byte[] columns.
741 * XmlDataLoader.cs: Support deserialization of Guid columns.
742 Set MappingType.Attribute to columns infered from attributes.
744 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
746 * ExpressionElements.cs : remove
747 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
748 Integration of new Mono.Data.SqlExpressions classes used in
749 DataTable.{Select, Compute}.
750 Fixes bug #55503 and lots of failures in DataTableTest.cs.
752 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
754 * Index.cs: Simple fix in ComparePartialRowNonUnique.
755 This fixes bugs #56129 and #56014.
757 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
759 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
760 stream after writing the dataset. This fixes bug #52581.
761 Also added several writer.Close into finally blocks, so writers are properly
762 closed in case of an exception.
764 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
766 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
767 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
768 * ColumnTypeConverter.cs: Added stub
769 * DefaultValueTypeConverter: Added stub
770 * ConstraintConverter.cs: Added stub
772 2004-03-04 Eran Domb <erand@mainsoft.com>
774 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
775 in MS.NET documentation (missing DataSet element etc).
777 2004-03-04 Eran Domb <erand@mainsoft.com>
780 * Index.cs : Rollback last changes.
782 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
784 * Index.cs : justa build fix.
786 2004-03-03 Eran Domb <erand@mainsoft.com>
789 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
790 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
791 This changes made for performance improvement.
793 2004-02-08 Eran Domb <erand@mainsoft.com>
795 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
797 2004-02-08 Eran Domb <erand@mainsoft.com>
799 * DataSet.cs: Fix some bugs in ReadXml().
801 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
803 * DataSet.cs: Added missing method that broke the build.
805 2004-02-04 Eran Domb <erand@mainsoft.com>
807 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
809 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
810 when all column are attributes (elements count is 0), we still want to add the relations. No relations
811 can be on simple contents.
812 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
813 (AddForeignKeys) Check that the relation has constraints attach to it.
814 * XmlConstants.cs : Added constant.
816 2004-02-04 Eran Domb <erand@mainsoft.com>
818 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
819 DoWriteXmlSchema calls BuildSchema ().
821 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
823 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
825 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
827 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
828 also be added to the dataset.
829 In WriteTable(), do not write unchanged rows when writing the original
830 version of the table.
831 Added WriteIndividualTableContent(), for writing the contents of a single
833 Changed BuildSchema and related methods, so it can generate a schema for
834 any set of tables, not just the tables of the dataset (needed for
835 single datatable serialization).
836 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
837 Also implemented some ReadXmlSchema methods.
838 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
839 instead of loading the full dataset in an XmlDocument. It is faster and
840 saves memory. Also fixed several problems when generating the changes.
841 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
842 table serialization).
844 2004-02-02 Eran Domb <erand@mainsoft.com>
846 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
847 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
848 * DataTable.cs (NewRow): Create only one DataRowBuilder.
849 Initiate new row with row id -1.
850 * DataRow.cs : Add RowId property.
851 * DataRowBuilder.cs : Add _rowId member.
852 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
854 2004-01-26 Eran Domb <erand@mainsoft.com>
856 * XmlConstants.cs : Added some constants.
857 * DataColumn.cs : Added a method to retrive AutoIncrement value.
858 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
860 * XmlDiffLoader.cs : Convert the value comming from the xml.
861 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
862 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
863 (ReadXmlSchemaElement) : Set the locale of the dataset.
864 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
865 (GetColumnType) : New method to get the column type from the attribute value.
866 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
867 and add the constraint to the table.
868 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
870 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
871 Writing more information to the schema for interoperability with ms.net.
872 Improve diffgarm writing mode.
875 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
877 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
879 2004-01-21 Eran Domb <erand@mainsoft.com>
881 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
882 Do not set the child column to be AutoIncrement.
883 Create the new column for the relation as MappingType.Hidden so they will not be serialized
884 when writing the dataset to xml.
886 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
888 * Added missing TypedDataSetGenerator.cs.
890 2004-01-08 Eran Domb <erand@mainsoft.com>
892 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
893 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
894 InferSchema, ReadSchema and IgnoreSchema.
895 * XmlDataLoader.cs : All modes use the same logic.
896 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
898 2004-01-06 Eran Domb <erand@mainsoft.com>
900 * DataRelationCollection.cs : Use IndexOf in indexer.
901 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
902 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
903 * XmlDiffLoader.cs : Reading nested tables.
904 * XmlSchemaMapper.cs : Reading the relation.
905 * XmlConstants.cs : Adding some constants.
907 2004-01-05 Jackson Harper <jackson@ximian.com>
909 * DataView.cs: Set readonly property of property descriptor. This
912 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
914 * DataRelationCollection.cs : Fixed incorrect generation of default
916 * DataSet.cs : Added missing functionality in WriteXml().
917 * XmlConstants.cs : Added new constants.
919 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
921 * DataSet.cs : Fixed incorrect WriteXml() signature.
923 2003-12-18 Jackson Harper <jackson@ximian.com>
925 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
927 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
929 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
930 they take shape of xml. This fixed bug #52240
932 2003-12-16 Tim Coleman <tim@timcoleman.com>
933 * KeyRestrictionBehavior.cs:
934 New stubs added for .NET 1.2
938 2003-12-08 Eran Domb <erand@mainsoft.com>
939 * DataColumn.cs (Expression) : Validate the expression.
941 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
942 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
944 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
945 (RejectChanges) : Detach row when state was Added.
946 (CollectionChanged) : Fix a bug.
948 * ExpressionElement (ValidateExpression) : Fix a bug.
950 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
951 a parent row in the parent table.
952 (_validateColumns) : Fix bugs.
954 * MergeManager.cs (AdjustSchema) : Fix a bug.
956 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
959 2003-11-30 Eran Domb <erand@mainsoft.com>
960 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
961 (Add) : Find if the new column name is the same as the one found in IndexOf.
962 (IndexOf) : New method.
963 (Contains) : Use new IndexOf.
964 (IndexOf) : Use new IndexOf.
966 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
967 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
969 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
970 (Delete) : Detach row if the RowState was Added.
971 (GetChildRows) : Get the array form the ChildTable.
972 (GetParentRows) : Get the array from the ParenTable.
974 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
976 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
978 * DataTable.cs (PrimaryKey) : Fix bugs.
979 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
981 * DataTableCollection.cs (Add) : Fix a bug.
983 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
984 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
985 Some code style changes (tab instead of whit spaces, alignment, etc...).
987 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
989 * MergeManager.cs (AdjustSchema) : Fix a bug.
993 2003-11-26 Miguel de Icaza <miguel@ximian.com>
995 * DataSet.cs: Add a few more missing methods, code style updated
998 2003-11-26 Tim Coleman <tim@timcoleman.com>
1000 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
1001 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
1002 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
1003 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
1004 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
1005 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
1006 * StatementCompletedEventHandler.cs UpdateOptions.cs:
1007 New classes added for NET_2_0
1008 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
1009 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
1010 Modifications to add new NET_2_0 functions
1012 2003-11-25 Tim Coleman <tim@timcoleman.com>
1016 2003-11-21 Pedro Martínez Juliá <yoros@wanadoo.es>
1018 * DataRow.cs: Detached row can be accesible (new rows from data
1019 table are detached). Closes but #51263.
1021 2003-11-19 Eran Domb <erand@mainsoft.com>
1022 * DataRow.cs : Throw exceptions if Row is Detached.
1023 (EndEdit) : Check that we are not in middle of ChangeEvent.
1024 (AcceptChanges) : Detach the row.
1026 * DataRelation.cs : throw correct exception.
1027 *UniqueConstraint.cs : throw correct exception.
1030 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1032 * DataRow.cs: Use RemoveInternal instead of Remove because the last
1033 one uses Delete and AcceptChanges.
1035 * DataRowCollection.cs: When removing, Delete and AcceptChanges
1036 method from the row are called. Added an internal method that will
1037 be used by DataRow to "physically" remove the row from the list.
1039 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1041 * DataRowCollection.cs: To follow the specification: Remove and
1042 RemoveAt should remove the row. But needed to call DeletingDataRow
1043 to prepare the deleting.
1045 * DataRow.cs: Don't call DeletingDataRow when it is called by the
1046 method Table.Rows.Remove.
1048 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1050 * DataRowCollection.cs: Make the row be deleted by itself. If not,
1051 it fails because we need to call OnRowDeleting and OnRowDeleted. It
1052 is full implemented inside DataRow.
1054 2003-11-05 Eran Domb <erand@mainsoft.com>
1055 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
1057 2003-11-04 Eran Domb <erand@mainsoft.com>
1058 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
1060 (GetChildRows) : Adding some checks.
1061 (GetParentRows) : Adding some checks. Fix a bug in implementation.
1062 (SetParentRow) : Added implementation.
1064 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
1065 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
1066 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
1067 * MergeManager.cs : Check that the target table is not null.
1069 2003-10-27 Eran Domb <erand@mainsoft.com>
1070 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
1071 can be converted to the column type.
1073 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
1075 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
1076 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
1078 * DataRowCollection.cs (Add) : Fixing a bug.
1079 (Clear) : Before clearing the array check that there is no violation of FK constraint.
1081 * DataSet.cs (Prefix) : If value is null chage it to empty string.
1082 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
1084 * ExpressionElement : Adding support for IN expresion.
1086 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
1087 (Select) : Adding support for DataViewwRowState.
1089 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
1091 * MergeManager.cs (MergeRow) : Fix bugs.
1093 2003-10-27 Eran Domb <erand@mainsoft.com>
1094 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
1095 check null values when ending loading data.
1097 * DataSet.cs (RejectChanges) : Imlementation.
1098 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
1099 change it to empty string.
1101 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
1103 2003-10-22 Eran Domb <erand@mainsoft.com>
1104 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
1106 * ConstraintCollection.cs (RamoveAt): Change implemntation.
1108 * DataTableCollection (CanRemove): Removing cast to Constraint.
1110 2003-10-22 Eran Domb <erand@mainsoft.com>
1111 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
1112 (Clear): The collection was cleared without removing the relation from the parent and child tables.
1114 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
1115 (HasChanges, Reset): Imlementation.
1117 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
\r
1118 This is because the we do not no when to turn off the flag.
1119 (Locale): Changing implementation to behave like ADO.NET.
1120 (AcceptChanges): Fix bug.
1121 (Clear): Check that this table is not referenced from a foreign key constraint.
1122 (Copy): Do not try to access a deleted row.
1123 (CopyProperties): Copy the PrimaryKey.
1124 (GetChanges, ImportRow): Implementation.
1125 (LoadDataRow): Adding implementation if the table has PrimaryKey.
1126 (ToString): Changing implementation to behave like ADO.NET.
1128 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
1130 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
1131 (HasErrors): Implementation.
1132 (Delete): Added checking for child rows of the deleted row.
1133 (EndEdit): Added checking for child row and firing events.
1134 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
1135 (GetColumnsInError): Added a check for null values in column error.
1136 (HasVersion): Added special treatment for special RowState.
1137 (CollectionChanged): More checks to avoid NullReferenceException.
1139 * DataRowCollection.cs (Remove): Fix a bug.
\r
1142 2003-10-01 Duncan Mak <duncan@ximian.com>
1144 More patches from Eran Domb <erand@mainsoft.com>.
1146 * MergeManager.cs: New file.
1148 * DataRelationCollection.cs (AddCore): Check that a
1149 UniqueConstraint is already exists. It loops over the Relations
1150 instead of the Constraints.
1151 (Add, AddCore): The relation was added twice.
1153 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
1155 2003-09-30 Duncan Mak <duncan@ximian.com>
1157 Patches from Eran Domb <erand@mainsoft.com>.
1159 * DataRelation.cs (constructor): When the name of the relation is
1160 null, it should return an empty, not "Relation".
1162 * DataRow.cs (AcceptChanges): Added special case for
1164 (CancelEdit): Set editing flag to false.
1165 (IsNull): Check that the value is DBNull.
1167 * DataRowCollection.cs (Add): There was no check that the table of
1168 the collection is owned by a DataSet.
1170 * DataSet.cs (OnMergeFailed): Added.
1172 * UniqueConstraint.cs (AssertConstraint): There was no check that
1173 values in the row are not null, where it is a primary key
1174 column. Also check that the row has a proposed version, if not,
1175 get the current version when we compare the rows.
1177 2003-09-25 Duncan Mak <duncan@ximian.com>
1179 Patches from Eran Domb <erand@mainsoft.com>.
1181 * DataColumn.cs (Unique): Implemented.
1184 * ConstraintCollection.cs:
1185 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
1186 an Exception thrown. Details:
1187 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
1189 * DataRowCollection.cs (Add): There is no checking that there is
1190 no violation of the unique constrains.
1192 * UniqueConstraint.cs (AssertConstraint): There is no checking on
1193 all columns in the constraint.
1195 * DataTableCollection (Add): Correctly throw an Exception, more
1197 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
1198 (Remove, RemoveAt): Implemented.
1200 2003-07-31 Duncan Mak <duncan@ximian.com>
1202 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
1204 2003-07-25 Ravi Pratap <ravi@ximian.com>
1206 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
1207 method on a delegate is disallowed - fix this.
1209 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
1211 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
1212 xml serialization. Modified method of writing schema. Now it creates
1213 a XmlSchema object and serializes it using XmlSerializer.
1214 * XmlConstants.cs: Added constants for data type names.
1215 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
1216 type specified in the column.
1218 2003-04-20 Alan Tam <Tam@SiuLung.com>
1220 * DataRelationCollection.cs: Fix a bug that prevent relations
1221 from being added via DataSet.
1223 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
1225 * UniqueConstraint.cs: one tiny fix.
1227 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
1229 * DataTable.cs: Remove UniqueConstraints when adding new ones
1231 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
1233 * DataColumnCollection.cs: Little 'case sensitive' fix
1235 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
1237 * DataRow.cs: AutoIncrement handling to Constructor
1238 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
1240 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1242 * DataTable.cs: Some fixes to PrimaryKey etc...
1243 * UniqueConstraint.cs: Little clean up
1245 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1247 * DataTable.cs: Tiny fix to ToString () -method
1249 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1251 * ConstraintCollection.cs: Little fix.
1252 * DataColumn.cs: Added new internal method SetUnique()
1253 * UniqueConstraint.cs: some little fixes
1255 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
1257 * DataRowCollection.cs: Bugfixes, implementation,...
1259 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
1261 * DataColumn.cs: If DataType if set to something else than short, int
1262 or long and AutoIncrement is true, AutoIncrement is must set to false.
1264 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1267 (BeginEdit): fixed array bound problem when a column has been added.
1268 (EndEdit): just assign proposed to current as proposed is set to null.
1269 This also fixes another array boudn problem.
1271 2003-03-21 Alan Tam <Tam@SiuLung.com>
1273 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
1274 EndEdit and AcceptChanges to act correctly according to DataRowState
1276 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
1277 attached and detached from the collection.
1279 2003-03-20 Alan Tam <Tam@SiuLung.com>
1281 * DataColumn.cs: Store empty string for Expression when null is passed in.
1282 Classes generated by XSD.exe passes null by default.
1284 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
1286 * DataColumnCollection.cs: Tiny clean up
1288 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
1290 * DataColumn.cs: little fixes.
1291 * DataColumnCollection.cs: Lots of little fixes and improvments.
1293 2003-03-12 Alan Tam <Tam@SiuLung.com>
1295 * DataSet.cs: Fixed a bug that the file written does not close correctly.
1297 2003-03-08 Alan Tam <Tam@SiuLung.com>
1299 * DataRelationCollection.cs: Removed the mis-overridden methods
1300 * DataRow.cs: Fixed an attribute
1301 * DataSet.cs: Fixed the modifiers
1303 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
1305 * DataTableCollection.cs: The Contains (string name),
1306 IndexOf (string name) methods, and item[string name] indexer
1307 now behave more like .NET with respect to case-sensitivity.
1308 That is if there is an exactly matching item then this one is used.
1309 If there is only one item differing in case then it used.
1310 If there are more than one item differing in case then
1311 Contains returns false, IndexOf returns -1, and item[]
1312 throws an ArgumentException.
1314 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
1316 * ExpressionElement.cs: More implementation.
1318 2003-02-28 Alan Tam <Tam@SiuLung.com>
1319 * DataSet.cs: Changed WriteTable so that it now calls the newly written
1320 WriteObjectXml to direct the call to the respective XmlConvert method.
1321 This fixes the wrong format written to XML files of bool, float,
1322 double, DateTime and TimeSpan types.
1324 2003-02-25 Alan Tam <Tam@SiuLung.com>
1326 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
1327 * DataRelationCollection.cs: Implemented AddRange and Contains.
1328 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
1329 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
1330 Reimplemented most Add methods to eliminate duplicated checks.
1331 Centralized RelationName generation procedure in GetNextDefaultRelationName.
1333 2003-02-25 Alan Tam <Tam@SiuLung.com>
1335 * DataColumn.cs: Fixed wrong storage representation of Expression
1336 (using empty string instead of null) so that ToString() returns nothing.
1337 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
1338 auto column naming now works as expected. Reimplemented some Add methods
1339 to eliminate code duplication.
1341 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
1343 * DataTable.cs: DataTable.CaseSensitive follows parent
1344 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
1345 been changed directly from DataTable
1347 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
1349 * DataSet.cs: When CaseSensitive property is changed all of the Tables
1350 of DataSet have to change too
1352 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
1354 * InternalDataCollectionBase.cs: revert change to field
1357 * DataViewManager.cs
1360 * DataSet.cs: commented use of DesignerAttribute
1361 because it broke the build. According to MSDN,
1362 DesignerAttribute does not have a zero-argument constructor
1364 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
1366 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
1368 2003-02-18 Alan Tam <Tam@SiuLung.com>
1370 * DataRow.cs: Implemented GetParentRow and GetParentRows.
1371 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
1372 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
1373 RaisePropertyChanging.
1374 * DataTable.cs: Implemented NewRowArray.
1375 * DataTablePropertyDescriptor: Fixed a modifier.
1376 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
1377 * PropertyCollection.cs: Minor fix.
1378 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
1379 * DataRelation.cs DataRelationCollection.cs DataRow.cs
1380 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
1381 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
1382 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
1383 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
1384 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
1386 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
1388 * ExpressionElement.cs: More implementation
1390 2003-02-05 Alan Tam <Tam@SiuLung.com>
1392 * DataSet.cs: Added framework for DataSet.Update Implemented missing
1393 methods GetSchemaSerializable, GetSerializationData,
1394 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
1396 * DataTable.cs: Implemented missing methods CreateInstance and
1397 GetRowType for DataTable
1399 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
1401 * DataSet.cs: Implemented private method MapType for
1402 mapping datatypes for XmlSchema
1404 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1406 * DataView.cs: implemented Dispose.
1408 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
1410 * ExpressionElement.cs: Added new file. This file is for parsing
1411 and DataData.Select () -methods and DataColumn.Expression -property
1412 * DataTable.cs: Implemented Select(string) -method
1414 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
1416 * DataSet.cs: One little fix to writing xml
1418 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
1420 * XmlSchemaMapper.cs: Some fixes.
1421 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
1424 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
1426 * UniqueConstraint.cs: Do not set columns Unique property true
1428 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
1430 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
1432 * DataTableCollection.cs: Now names new DataTable if it doesn't
1433 already have a name.
1435 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
1437 * XmlSchemaMapper.cs: Improvments.
1438 * XmlConstaints.cs: Added more constants.
1439 * DataSet.cs: Improvments of reading and writing xml
1440 * DataColumn.cs: Added default values of properties.
1442 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
1444 * XmlSchemaMapper.cs: Some improvments
1446 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
1448 * DataRowCollection.cs: Added IndexOutOfRangeException
1449 * DataTableCollection.cs: Added OnCollectionChanging and
1450 OnCollectionChanged events.
1451 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
1452 * DataTable.cs: Implemented Copy () and Clone () methods.
1453 * XmlDataLoader.cs: some fixes.
1454 * XmlSchemaMapper.cs: comments.
1456 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1458 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
1460 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1462 * DataColumnPropertyDescriptor.cs: fixed typo.
1463 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
1464 to get the DataViewManager and removed TablePD class.
1465 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
1466 suggested by danmorg.
1468 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
1470 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
1472 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
1473 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
1475 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1477 * DataView.cs: made dataViewManager internal.
1478 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
1479 properties of the object, but the values of the columns present in a
1482 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
1483 which returns a PropertyDescriptorCollection. Created a new class
1484 derived from PropertyDescriptor that treats Table as an object whose
1485 properties are DataRowView.
1487 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1489 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
1491 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1493 * DataColumn.cs: ExtendedProperties is by default !null-
1495 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1497 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
1498 set column's ordinal.
1500 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
1503 * XmlDataLoader.cs: XmlReader closing fixes.
1504 * XmlSchemaReader.cs: Added support for ref=
1506 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
1509 - Added XmlReader and XmlWriter Closing.
1510 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
1511 * XmlSchemaMapper.cs
1512 - Much better way IMHO to map xmlschema than the old one in
1513 DataSet.cs. Its, more flexible, cleaner, ...
1515 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
1517 * XmlDataLoader.cs: Reading diffgrams.
1519 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
1521 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
1522 * DataTable.cs: Added ChanginDataColumn () for triggering
1523 DataColumnChanging event
1525 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
1527 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
1529 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
1531 * DataSet.cs: Indentations to WriteXml ()
1533 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
1536 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
1537 class XmlDataLoader.cs
1539 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
1541 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
1543 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
1545 * DataSet.cs: Started to implement ReadXml-methods.
1547 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1549 * DataSet.cs: implemented DefaultViewManager and GetList.
1551 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
1552 DataList in System.Web.
1554 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
1557 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
1560 * DataTable.cs: Fixed NullException (rollback -event)
1561 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
1563 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
1566 * DataRowCollection.cs: Moved event triggering from DataRow to
1569 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
1571 * DataSet.cs: Little fix to WriteTable () -method
1572 and DoReadXmlSchema () -method.
1574 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
1576 * DataSet.cs: Clean up to reading xmlschema. This looks much better
1577 now (work better too), but it not working correctly yet.
1579 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
1582 * DataRowCollection.cs: Added some event handlins stuff.
1583 * DataSet.cs: Some fixes.
1584 * DataTable.cs: Added event handlers.
1586 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
1588 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
1590 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
1592 * System.Data/DataRow.cs: Added internal property XmlDataID
1594 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
1596 * DataSystem.Data.DataTableCollection.cs:
1597 Removed HashTable. There could be situations where DataTable
1598 is added to collection before it hava TableName. So using
1599 HashTable is impossible.
1601 2002-11-19 Carlos Guzmán Álvarez <carlosga@telefonica.net>
1603 * DataRow.cs: an object that is equal to null
1604 should be allowed to be set in this indexer too
1607 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
1609 * DataColumnPropertyDescriptor.cs: added file
1611 * System.Data/DataRowView.cs: started implementation
1613 * DataTable.cs: stubbed more interfaces. Implemented
1614 IListSource.GetList()
1616 * DataView.cs: stubbed more interfaces. Implemented
1617 some properties and methods: GetEnumerator(),
1618 ITypedList.GetItemProperties, Item indexer, CopyTo()
1620 2002-05-18 Nick Drochak <ndrochak@gol.com>
1622 * DataRow.cs: Fix typo.