1 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
3 * DataColumn.cs : setting negative value on MaxLength of SimpleContent
6 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
8 * XmlSchemaWriter.cs : new file for outputting XmlSchema.
9 * DataSet.cs : removed rewritten code in XmlSchemaWriter.
10 * XmlConstants.cs : added UseCurrentCulture constant.
12 Use new Xml Schema writer.
13 Use XmlSchemaDataImporter as we use in DataSet.
15 2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
17 * DataView.cs, DataRowView.cs : Fixed bug #72421. CreateChildView()
18 should target only child rows.
20 2005-02-03 Atsushi Enomoto <atsushi@ximian.com>
22 * DataViewManager.cs: misuse of ReadStartElement(string).
23 * DataRowView.cs : removed some MonoTODO.
25 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
26 Ankit Jain <radical@corewars.org>
28 * DataColumn.cs: throw exception if the column is part of a
29 relationship, when chaning the data type. Added methods
30 "GetParentRelation ()" and "GetChildRelation ()" get the relation
31 which contains the current column
32 * DataRelation.cs: Added method "Contains (DataColumn)" to check
33 whether the relation contains the given column.
35 fixes nunit failure: DataRelationTest.InvalidConstraintException2.
37 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
39 * DataColumnCollection.cs: implemented todo item "check for
40 constraints" when removing columns from table.
41 * DataRowCollection.cs: Clear (): don't have to throw child key
42 constraint exception when the child table does not have any
43 rows. safe to remove parent rows.
44 * UniqueConstraint.cs: added method "Contains (DataColumn)" to
45 check whether a column is part of UniqueConstraint.
46 * ForeignKeyConstraint.cs: added method "Contains (DataColumn,
47 lookInParent)" to check whether a column is part of foreignkey.
49 fixes nunit failure: DataTableTest.ClearTest ()
51 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
53 * ForeignKeyConstraint.cs: validating columns: move checking
54 "tables are of same dataset" before "checking column types".
56 fixes nunit failure: ForeignKeyConstraint.CtorExceptions.
58 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
60 * DataViewManager.cs : let's just use StringWriter instead of
61 XmlTextWriter (to avoid empty tag string mismatch annoyance.)
62 * DataView.cs : implemented BeginInit() and EndInit(). Don't update
63 rows during init phase until EndInit() is invoked. During init phase,
64 just hold properties such as Sort that affects on rows.
66 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
68 * DataTableCollection.cs : (RemoveAt) just use IndexOutOfRangeException.
70 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
72 * DataView.cs : DataRowView.EndEdit() raises ItemMoved event.
73 set_Table clears Sort and RowFilter.
75 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
78 - Clear() should clear AddNew cache.
79 - Open() invokes Reset().
80 - ConstraintCollectionChanged() itself does not invoke OnListChanged().
81 - Reset() does not Open, Close and Update Index.
82 - UpdateIndex() can be invoked even if it has no table.
83 - Reset event is invoked always after actual query to table.
84 - set_Table should raise PropertyDescriptorChanged event.
86 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
88 * DataView.cs : ColumnCollectionChanged() is the event invoker (i.e.
89 when overriden, no column change events are fired).
91 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
93 * DataView.cs : CancelEditRowView() and DeleteRowView() was incorrectly
94 checking target tables. They also should raise events if required.
96 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
98 * DataView.cs : simplify code with UnsortedList.
100 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
102 * DataView.cs : Mostly reimplemented.
103 - UpdateIndex() is invoked only when it is required (results in
104 significant performance improvement).
105 - Use SortedList and wrapper OptionalSortedList which switches
106 between SortedList (with Sort) and UnsortedList (without Sort).
107 - DataView itself now contains two collections for rowviews:
108 Table rows based pool and AddNew() based cache. Consider those
109 two collections in every members.
110 - Reset() does not clear rows. Just invokes UpdateIndex().
111 - Hook RowDeleting, ColumnChanging and ColumnChanged events in table
112 which is required to handle state changes.
113 - Reimplemented Find() and FindRows() because of internal changes.
115 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
117 * DataTable.cs : Fixed row comparer. Even if every of the sort target
118 columns are identical for two rows, they should not be regarded as
119 the same unless they are Object.ReferenceEquals.
121 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
123 * DataRowCollection.cs : on adding a row, should raise
124 ChangingDataRow() as well as ChangedDataRow().
126 2005-01-31 Sureshkumar T <tsureshkumar@novell.com>
128 * DataRow.cs: SetParentRow (): use relation.ParentColumns &
129 relation.ChildColumns instead of relation.ChildKeyConstraint.*
130 because createConstrains flag may be false when creating data
131 relations. Hack along with Ankit Jain.
133 2005-01-31 Atsushi Enomoto <atsushi@ximian.com>
135 * DataView.cs :some interface implementations.
137 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
139 * DataView.cs : Add to table only when the row is not in the table.
141 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
143 * DataView.cs : implemented FindRows() (btw we should not use
144 DataTable since there are detached rows by AddNew().)
146 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
149 Code cleanup: privatify some members, remove unused methods.
150 Some event-based invocation methods should not raise NotImplemented.
152 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
154 * DataSet.cs : ReadXml() became closer to MS behavior, being hacky.
156 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
158 * XmlSchemaDataImporter.cs : empty element is not regarded as a column.
160 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
162 * UniqueConstraint.cs : mostly reverted the previous patch + check
163 IsPrimaryKey before validation.
165 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
167 * DataView.cs : Fixed duplicate insertion to Hashtable.
168 * UniqueConstraint.cs : Unique constrained pair of columns could be
171 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
174 Don't do anything for Sort/ApplyDefaultSort/RowFilter/RowStateFilter
175 when the same value is being set.
176 Examined UpdateIndex() and marked FIXME where MS does not invoke it.
177 Removed unused OnColumnChanged().
178 Now store rowViewPool and reuse DataRowView objects.
179 Optimized UpdateIndex() - avoid ArrayList. Avoid Haashtable.Rehash().
181 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
183 * DataViewSettings.cs : no MonoTODO anymore.
184 * DataViewManager.cs : pass itself to new DataView() (new ctor).
185 * DataRowView.cs : GetHashCode() returns its Row's hash.
186 * DataTablePropertyDescriptor.cs : use new ctor().
187 * DataView.cs : added new ctor()s that accept DataViewManager.
189 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
191 * DataView.cs, DataRowView.cs : AddNew() should not add the row to table
192 (it is still detached). So handle those rows differntly.
193 CancelEdit(), EndEdit() and Delete() propagates those events to
194 DataView (and handle row collection).
195 Eliminate "throw new Exception()".
196 Don't catch all the exception thrown in ListChanged event.
197 * DataTable.cs : made RowSorter as internal and use it in DataView.
198 no need to pass DataRow[] to .ctor().
200 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
202 * DataTable.cs : don't create DefaultView unless it is required. It
203 significantly improves performance. (i.e. DataView perf. is sick ;-)
205 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
207 * DataViewSetting.cs,
208 DataViewSettingCollection.cs,
209 DataViewManager.cs : implemented basic members.
211 2005-01-26 Atsushi Enomoto <atsushi@ximian.com>
213 * Node.cs, DataColumnPropertyDescriptor.cs, DataTable.cs :
214 Eliminate "throw new Exception".
216 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
218 * DataRow.cs : (set_Item) RowNotInTableExeption check should be done
219 regardless of index existence.
221 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
223 * DataTable.cs : use new IExpression.EvalBoolean() to avoid extraneous
226 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
228 * DataTable.cs: ImportRow :Do not add to rows collection if the
229 import row is in detached state.
231 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
233 * DataRow.cs: CopyValuesToRow : set the column value with the
234 default version of the given row.
235 * DataTable.cs: ImportRow: Copy values before adding row.
236 * DataSet.cs: AddChangedRow: Add the row to the table after
239 Fixes bug #67317. Patch by Ankit Jain.
241 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
243 * DataRowView.cs : Fixed IsEdit to reflect correct status of DataRow.
244 * DataRow.cs : Expose editing status internally.
246 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
248 * DataView.cs : missing attributes.
250 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
252 * DataRowView.cs : implemented CreateChildView().
254 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
256 * DataTable.cs, DataView.cs :
257 Optimized DataView to compile only once RowFilter and Sort when
258 those properties are set. To make it possible, extracted
259 SortableColumn out of DataTable and added internal DataTable.Select()
260 that accepts precompiled IExpression and SortableColumns[].
262 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
264 * DataColumn.cs : set_MaxLength is not allowed when it is mapped to
265 SimpleContent. (However, it is weird but it never fails when we set
266 ColumnMapping = MappingType.SimpleContent when we fhave MaxLength.)
268 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
270 * DataRow.cs : more Current -> Default fixes. Check if it should throw
271 VersionNotFoundException. Patch by Ankit Jain.
273 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
275 * DataRow.cs : Default selects the right version for the current
276 state of the row. Current is not always available. Also change
277 that for GetParentRow(). Patch by Ankit Jain.
279 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
281 * DataTable.cs : CopyColumn() should copy AutoIncrement after
282 DefaultValue, or it will raise an error in some cases.
284 2005-01-20 Atsushi Enomoto <atsushi@ximian.com>
286 * ConstraintCollection.cs : Add() should throw ArgumentException when
287 the argument constraint fails validation.
288 DataTable.cs : set_PrimaryKey should throw ArgumentException when
289 the argument contains constraints which fail validation.
291 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
293 * DataRelationCollection.cs:
295 Method Remove : Donot throw exception if DataRelation argument is
296 null in DataRelationCollection.Remove method.
298 Method RemoveAt : Exception should be IndexOutOfRangeException if
299 row index is not in list range.
301 Fixes nunit failures DataRelationCollection.Remove and
302 DataRelationCollection.RemoveAt.
304 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
306 * ConstraintCollection.cs: Donot throw exception if constraints
307 are null in AddRange method. Check for null before using the
312 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
314 * XmlDataInferenceLoader.cs,
315 XmlDataReader.cs : Check if the XmlReader (node) represents DataSet
316 or a table, reusing code block in XmlDataInferenceLoader.
317 This fixes bug #60118.
319 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
321 * XmlDiffLoader.cs : Ankit Jain <radical@imt.ac.in> has a conflicting
322 patches and some good catches. Some attributes should be skipped,
323 and loaded value must be typed.
325 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
328 XmlDataInferenceLoader.cs,
329 XmlDataReader.cs : use common const for http://www.w3.org/2000/xmlns/.
330 * XmlDiffLoader.cs : It was not handling attributes. Fixed bug #70961.
332 2005-01-18 Sureshkumar T <tsureshkumar@novell.com>
334 Fix for bug #66838. This patch is submitted by "Ankit Jain"
335 <radical@corewars.org> and refactored.
337 * DataRow.cs: Allows to set a parent row even if the row is in
340 * DataRelation.cs: method "UpdateConstraints" is added to check
341 and create missing keys when adding a relation. This is refactored
342 approach from DataRelationCollection.Add method.
344 * DataRelationCollection.cs: AddCore methods of all relation types
345 are synchronized. A Check for existing constraints is
346 done. Relation is added to the list only if all checks are passed.
348 2004-01-18 Atsushi Enomoto <atsushi@ximian.com>
350 * DataColumnCollection.cs : Clear() throws ArgumentException that
351 wraps thrown innerException.
352 * XmlSchemaDataImporter.cs : removed FIXMEs.
354 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
356 * DataSet.cs : When serializing DataTable, BuildSchema() is passed
357 null relation collections.
358 Quick fix for XmlSerializer deserialization. It does not require
361 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
364 CustomDataClassGenerator.cs :
365 In DataSet class, IXmlSerializable.GetSchema() returns null.
366 In strongly-typed class, it returns schema.
368 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
370 * XmlDataInferenceLoader.cs : test driver class should be excluded.
372 2004-12-01 Miguel de Icaza <miguel@ximian.com>
374 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
377 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
379 * CustomDataClassGenerator.cs : generated foreign key constraint
380 construction code was creating empty child columns and thus it
381 was invalid. This fixes bug #69276 (patch by Martin Voelkle).
383 2004-11-02 Atsushi Enomoto <atsushi@ximian.com>
385 * CustomDataClassGenerator.cs : custom DataTable ctor should call
386 InitializeFields(), and those DataColumns created by that method
387 should take data type. This should fix bug #68972.
389 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
391 * DataSet.cs : Also clear UnhandledAttributes ArrayList before
392 generating next attribute column schema. This fixes bug #68432.
394 2004-10-14 Umadevi S <sumadevi@novell.com>
395 * DataTable.cs : Corrected the Clone method to use Activator.CreateInstance so that the
396 correct subclass is returned. This fixes bug #67631
398 2004-10-14 Umadevi S <sumadevi@novell.com>
399 * DataSet.cs : Corrected the Clone method to use Activator.CreateInstance so that the
400 correct subclass is returned. This fixes bug #67627
402 2004-10-13 Atsushi Enomoto <atsushi@ximian.com>
404 * DataSet.cs : clear UnhandledAttributes ArrayList before generating
405 next element column schema. This fixes bug #68256.
407 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
409 * DataSet.cs : now xs:schema contains xmlns="".
410 This fixes bug #68008.
412 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
414 * DataSet.cs : DBNull attribute column should not be written as
415 empty attribute. This fixes bug #68007.
417 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
419 * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
420 DataColumn.ReadOnly was not handled. This fixes bug #68005.
421 Attribute defaultValue was not handled too.
423 2004-10-07 Atsushi Enomoto <atsushi@ximian.com>
426 - When AllowDBNull is false on attribute DataColumn, its schema
427 should contain use="required". This fixes bug #66792.
428 - If MaxLength is set on attribute DataColumn, the mapped schema
429 type should contain maxLength facet. This fixes bug #66793.
431 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
433 * DataSet.cs : For a row, when a relation is not nested, then it is
434 still output target since it won't be written as a child of its
435 parent. It fixes bug #66379.
437 2004-10-03 Atsushi Enomoto <atsushi@ximian.com>
439 * DataSet.cs : Attribute constraint field XPath must be written as
440 @blah. This fixes bug #66366.
442 2004-09-28 Umadevi S <sumadevi@novell.com>
443 * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
445 2004-09-24 Sureshkumar T <tsureshkumar@novell.com>
447 * DataSet.cs : Don't check constraints for dataset clear
448 * DataRowCollection.cs : check for EnforceConstraints flag
449 before checking foriegn key constraints in Clear method
450 * DataTable.cs : Redundant checking removed in Clear method as it is
451 checked in DataRowCollection.Clear method.
454 2004-09-19 Sureshkumar T <tsureshkumar@novell.com>
455 * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
456 hence, adding a row cache is necessary if the original row happens to be current.
459 2004-08-23 Martin Baulig <martin@ximian.com>
461 * XmlDataInferenceLoader.cs (Driver): Make this class internal,
464 2004-08-18 Umadevi S <sumadevi@novell.com>
465 * DataView.cs - Completed most of the event handling.
466 Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
467 Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
468 * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
470 2004-08-06 Atsushi Enomoto <atsushi@ximian.com>
472 * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
474 2004-08-05 Atsushi Enomoto <atsushi@ximian.com>
476 * XmlConstants.cs : Added constants for "msprop" support.
477 * DataSet.cs : ExtendedProperties should be written in the schema.
478 This fixes bug #61233.
480 2004-07-27 Atsushi Enomoto <atsushi@ximian.com>
482 * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
483 used. There were also some culture dependency problems to write int.
485 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
487 * XmlDataInferenceLoader.cs : It was not always filling relation
488 child table information correctly. This fixes bug #60742.
490 2004-06-23 Umadevi S <sumadevi@novell.com>
491 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
493 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
495 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
496 schema is inside the document element (as created in XmlWriteMode
497 .WriteSchema), it should read schema from that non-document element.
498 This fixes one case reported in bug #60470.
500 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
502 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
503 inference target. For bug #60470. (MS does not support schema
504 document inference and results in unconsistent dataset structure.)
506 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
508 * DataTableCollection.cs : reset the table's DataSet to null when
509 removing a table from this collection.
510 * DataTable.cs : When Namespace is not specified explicitly, its
511 Namespace property reflects DataSet's Namespace if exist.
512 This fixes bug #60469.
514 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
516 * DBConcurrentcyException.cs: CRLF to LF
517 * DataViewSetting.cs: CRLF to LF
519 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
521 * DataViewSetting.cs: renamed fields to match MS.NET
523 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
525 * DBConcurrencyException.cs: fixed serialization compatibility with
528 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
530 * ChangeLog : Fix for misspelled words.
532 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
534 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
536 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
539 - Table stores default values for columns in special default values row.
540 It is allocated once (in NewRow).
541 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
542 - OnRemoveColumn has nothing to perform by now.
544 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
547 - Changed access of original, current and proposed indexes to internal.
548 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
549 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
550 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
551 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
552 Care about Null and DBNull values is now in DataContainer.
553 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
554 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
555 - Fix in CopyState : clone column errors.
556 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
558 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
560 * DataColumnCollection.cs :
561 - Fix : Add() now delegates to Add(DataColumn).
562 - autoIncrement list holds DataColumn objects, and not just column names.
564 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
567 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
568 - DefaultValue fixes. Default value from now on is also stored in special record in
569 DataTable, so we're able to set default value for the column faster (typed).
572 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
574 * DataSet.cs : children of non-root rows were not properly written.
577 2004-06-10 Umadevi S <sumadevi@novell.com>
578 * DataRelation.cs - Constructor
579 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
581 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
583 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
585 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
587 * Constraint.cs: marked methods internal to fix public API
588 * ConstraintCollection.cs: to fix public API, use
589 DataTable.fInitInProgress to check whether initialization
590 of DataTable is in progress
591 * DataColumn.cs: added stubs for missing methods
592 * DataRowBuilder.cs: marked Table property internal to
594 * DataSet.cs: removed extra empty destructor, marked
595 OnMergeFailed internal to fix public API
596 * DataTable.cs: use fInitInProgress field to hold init
597 status, to match MS.NET
598 * DataView.cs: added missing attributes on IsOpen
600 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
602 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
603 in XmlNamespaceManager.
605 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
607 * DataSet.cs : complex table content child was not properly added
608 when it is the only one child in the parent table. Fixed bug #53959.
610 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
611 * DataTableTypeConverter.cs: added
612 * DataView.cs: added missing attribute on Table property
613 * DataViewManager.cs: moved attribute to correct property
614 * UniqueConstraint.cs: removed extra ReadOnly attribute from
615 IsPrimaryKey property
617 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
619 * DataRow.cs : ColumnsChanged event is not required in .ctor().
621 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
623 * XmlDataReader.cs : type change is required before setting value
626 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
628 * DataSet.cs : Loop-break of the last fix was incorrect.
630 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
632 * DataSet.cs : When a row has no parent row but the table has parent
633 relation(s), that row had been always ignored.
635 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
637 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
638 rejected same-named tables in different hierarchy. Thanks to Boris.
640 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
642 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
643 infinite loop. Thanks to Boris for this fix.
645 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
647 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
648 Thanks to Boris for this fix.
650 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
652 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
653 for ReadXml(). Thanks to Boris.
655 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
657 - CheckReadOnlyStatus : use typed (and faster comparing).
658 - EndEdit : bug fix - do not dispose record if it holds original version.
659 - SetValuesFromDataRecord : Take care about autoincrement columns.
662 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
664 * MergeManager.cs : don't output debug message to Console.
666 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
668 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
669 structure. Thanks to Boris Kirzner for the fix.
671 2004-05-27 Umadevi S <sumadevi@novell.com>
672 * DataRelationCollection.cs - fixed nunit test errors
674 2004-05-27 Umadevi S <sumadevi@novell.com>
675 * DataTableCollection.cs - fixed nunit test errors
677 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
679 * DataColumnCollection.cs : NullReferenceException was thrown when
680 the table was not found.
681 * DataRowCollection.cs :
682 Find() just returns null for null value under MS.NET 1.1.
683 RemoveAt() should also avoid to call AcceptChanges() like Remove().
684 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
685 directly under MS.NET (for nunit test).
687 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
689 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
690 caused problem on qualified name to get schema Field name.
692 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
694 * XmlDataReader.cs : Now data reader is namespace aware in all places.
695 When table's namespace is different, it entered to infinite loop.
697 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
698 * MergeManager.cs : AdjustSchema now updates by reference new created table,
699 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
702 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
704 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
705 * DataColumnCollection.cs : fixed parantethes.
707 - AcceptChanges : do nothing if row state is unchanged.
708 - GetChildRows, GetParentRows : bug fix (use correct index).
709 * DataRowCollection.cs : bug fix (compare all row's values).
710 * DataTable.cs : bug fix (use correct row version).
712 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
714 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
715 When content type is Mixed, text column is not required (it is
716 required only when the complex type has no particle).
717 "Repeated element" column is also created (considering maxOccurs=0
718 and complex content extension).
720 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
722 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
725 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
727 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
728 Fixed relation inference to consider attribute XPath.
730 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
732 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
735 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
737 * DataColumn.cs - removed default member attribute.
739 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
742 DataColumnChangeEventArgs.cs,
743 DataColumnCollection.cs,
745 DataRowCollection.cs,
747 Index.cs : Data storage in the row is redesigned. Now data is stored in
748 typed containers inside DataColumn. Row holds its versions as indexes inside
749 each of data container, accessed through the row that holds it.
751 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
753 * UniqueConstraint.cs - added comment.
755 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
757 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
760 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
763 XmlDataInferenceLoader.cs,
765 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
766 XmlEncode every local name to write. This should fix bug #58268.
768 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
770 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
771 Supported repeated elements. Removed MonoTODOs.
772 * XmlDataInferenceLoader.cs : Design change to support ignored
773 namespace and repeated elements.
774 * XmlSchemaDataImporter.cs : Added mapping support classes.
776 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
778 * CustomDataClassGenerator.cs :
779 Added property parent "[foo]Row" and children "Get[foo]Row" support
780 for custom DataRow classes.
781 Fixed DataColumn property accessibility (public --> internal).
783 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
785 * CustomDataClassGenerator.cs :
786 - Put classes inside custom DataSet class.
787 - Added automatic DataRelation creation support.
788 - Added Constraints creation support. That is done separate from
789 relations, since they might be independently created.
790 - Added non-MS public DataRelation fields.
791 - Removed extraneous "DataRelation type generation" code.
792 - Fixed custom_dataset.Initialize() not to create "c" field that
793 was created more than once.
794 - Implemented AddxxxRow() that takes parameters for every column.
796 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
798 * XmlSchemaDataImporter.cs : When primary key is used more than once,
799 DataRelation borked because of empty parent column name.
801 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
803 * XmlSchemaDataImporter.cs : When Creating constraints with related
804 to DataRelation creation, also set PrimaryKey to the parent table.
806 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
808 * XmlSchemaDataImporter.cs :
809 Design change to add indirect table and relation structures.
810 Support for "relation" annotation for local element.
811 Support for repeatable simple element column (maxOccurs > 1).
812 Fixed handling of Nested property on DataRelation (for globally
813 annotated relation, Nested is false).
815 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
817 * DataRow.cs : Added DataElement property to avoid storing every row-
818 element mapping. It stored even for nodes that should be removed.
820 2004-05-13 Umadevi S <sumadevi@novell.com>
822 * RelationshipConverter.cs - Stubbed this class
823 * DataRelation.cs - added TypeConveterAttribute
825 2004-05-13 Umadevi S <sumadevi@novell.com>
827 * DataColumnCollection.cs - Added ResDescriptionAttribute
828 * DataRelation.cs - Added TypeConverterAttribute
829 * DataRelationCollection.cs - Added DefaultPropertyAttribute
830 * DataRowView.cs - Added GetHashCode method with a TODO tag
831 * DataSet.cs - Added DesignerAttribute
832 * DataView.cs - Added DesignerAttribute
833 * DataViewManager.cs - Added DesignerAttribute
834 * DataViewSetting.cs - Added TypeConverterAttribute
836 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
838 * DataRow.cs : Added XmlDataElement initialization code.
840 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
842 * XmlDataInferenceLoader.cs :
843 It now requires XmlDocument as input. Improved identification of
844 DataSet element. Removed extra lines.
845 Moved boresome design notes to bottom of the source and
846 added standalone runnable driver (not included on build).
848 Update with related to the change above.
849 WriteXml() should call Flush() after writing. This fixes bug #58327.
850 * XmlSchemaDataImporter.cs :
851 Improved indentification of DataSet element.
853 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
854 * DataTable: marked initStatus enum internal
856 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
857 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
859 * DataRowView.cs: removed extra Error property
860 * DataRow.cs: reduced accessibility of CollectionChanged method
862 * DataColumnPropertyDescriptor.cs: made class internal
863 * DataColumn.cs: removed extra TypeConvertorAttribute
864 * ConstrainCollection.cs: marked PostEndInit method internal
866 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
869 In WriteXmlSchema(), when complex type contains simple type content
870 attributes must not added to XmlSchemaComplexType directly. It
871 causes schema compilation error.
872 DataRelation should not be output when related columns are hidden.
874 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
876 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
877 also expected to do ReadXml(), but I will remove that feature and
878 support column reordering).
879 * XmlSchemaDataImporter.cs : Always initialize dataset name.
880 Always set Nested and primary key for parent table.
881 * XmlDataReader.cs : Now it is used.
882 Top level element might not match to dataset name nor any table
883 name, but still possible to read content tables.
884 Handle empty element correctly in some places.
885 Handle Fragment mode (read up XmlReader to the end).
886 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
887 XmlDataInferenceLoader and XmlDataReader.
889 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
892 Eliminated CRLF injection.
893 More clear message in Clear().
894 Updates reflecting XmlSchemaDataImporter change.
895 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
896 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
897 but that depends on different behavior from ms.net).
898 Set locale also for DataTable.
899 Add xs:element only when target namespace matches to the
900 element's namespace. Otherwise, add xs:import for external namespace.
901 Put xs:sequence for dataset element's particle _only when_ actual
904 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
906 * XmlDataReader.cs : Added. This class will work better when our
907 schema inference and schema read engine gets improved. (It contains
908 standalone testable Driver class.)
910 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
912 * ForeignKeyConstraint.cs : Check step change. Existence then column
913 validity. just for tests.
914 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
917 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
919 * DataSet.cs : Ignore empty content only when output type is diffgram.
921 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
923 * CustomDataClassGenerator.cs : Modified that DataSet contains each
924 DataTable field so that each table property can access them directly.
925 (plus, modified standalone code driver code: shouldn't affect)
927 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
929 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
931 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
933 * XmlSchemaDataImporter.cs :
934 SimpleContent column support.
935 Annotated relation support.
936 Top-level element is counted only when its type is complex.
937 xs:anyType is no longer treated as complex type.
938 dataset existence is mandatory now.
939 Improved DataType and DefaultValue support.
940 Attribute namespace is properly handled now.
941 Prohibited attribute is now treated as hidden column.
942 Reject list or union simple type.
944 Still incomplete 1) to read relationship in some cases, 2) to
945 determine whether an element is dataset or table, 3) thus to
946 exclude extraneous column, 4) to remove extraneous *_Id column.
948 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
951 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
952 serialization .ctor() (thus schema read/inference should be easier).
953 DataRowSorter should consider Table's Locale.
955 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
957 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
958 use it instead of duplicating logic.
960 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
962 * ConstraintCollection.cs :
963 Use Table.CaseSensitive and Table.Locale to compare strings.
964 Duplicate constraint name exception does not occur under .NET 1.1.
966 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
968 * XmlSchemaDataImporter.cs: Added little type check.
970 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
972 * DataSet.cs: Implemented support for runtime serialization. Fixed support
973 for xml serialization.
974 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
976 2004-04-30 Umadevi S <sumadevi@novell.com>
977 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
978 * DataTableCollection.cs : Tested and removed TODO
979 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
981 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
983 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
985 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
987 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
988 constraint is defined on single column.
990 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
992 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
993 not ArgumentException (maybe changed after 1.1).
995 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
997 * DataRow.cs : When Column was added and it was AutoIncrement column,
998 it extended the item object array incorrectly.
999 (Plus tiny comment and incorrect indentation fix.)
1001 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1003 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
1005 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1007 * DataRow.cs : Bug fix in CopyValuesToRow().
1009 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1011 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
1012 each of the columns should not be unique, but only all the constraint's columns together.
1014 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
1017 - Added using of list of autoIncrement columns
1018 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
1019 - Fix in CheckNullConstraints
1020 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
1021 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
1022 - Added onColumnRemoved() method to threat column removal accurately.
1024 * DataRowCollection.cs :
1025 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
1026 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
1029 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
1031 * DataColumnCollection.cs :
1032 - Perfomance fixes :
1033 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
1034 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
1035 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
1038 - Uses autoincrement list of a table
1040 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
1042 * XmlDataLoader.cs : Even when it should ignore schema, it was
1044 * XmlSchemaDataImporter.cs : DataRelation creation support.
1045 Improved "DataSet" element handing. When attributes are on the
1046 element, it is not a "DataSet" element.
1047 Fixed parent key column name.
1048 Unique name creation is not required. Just raise an error.
1049 Fill facet also for attribute types.
1051 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
1053 * DataRow.cs : Null check for CheckReadOnlyStatus() and
1054 CheckNullConstraints(), with some coding guideline fixes.
1055 Type check should be done by Type instance comparison.
1057 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
1059 * DataColumnCollection.cs : When add a column to the collection, fill
1060 auto-increment column.
1062 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
1064 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
1066 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
1068 * CustomDataClassGenerator.cs : Added.
1069 * TypedDataSetGenerator.cs : Implemented Generate().
1070 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
1071 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
1073 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
1075 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
1077 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
1079 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
1081 2004-04-23 Umadevi S (sumadevi@novell.com)
1082 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
1083 - Added error handling to the above methods
1085 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
1087 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
1088 the support is incomplete yet).
1089 * XmlDataLoader.cs :
1090 Reverted ReadModeSchema() argument change. XmlReadMode would be
1091 useful to handle IgnoreSchema.
1092 Don't overwrite DataSetName when mode is not such kind.
1093 Set Prefix and Namespace as well as DataSetName.
1094 AllowDBNull looks set false by default for element column.
1095 Set unique constraint as primary key when infering the table schema.
1097 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
1100 Never set null string for Prefix and Namespace.
1101 In InferXmlSchema() when null XmlReader is passed, just do nothing.
1102 In WriteXmlSchema(string), earlier try block.
1103 In BuildSchema(), try to add serialization namespaces for each
1104 namespaces in DataSet/DataTable/DataColumn.
1105 Removed namespace argument from WriteColumnAsElement() and don't
1106 overwrite when namespace is "". This fixes bug #57330.
1107 * DataColumn.cs : For Namespace and Prefix, never set null.
1109 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
1111 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
1112 before creating and adding foreign key constraint and relation.
1114 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
1116 * MergeManager.cs : In AdjustSchema() source table clone should be added
1117 and not the table itself.
1119 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
1122 - CaseSensitive : Additional fix (removed unnesessary assignment).
1123 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
1125 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
1127 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
1129 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
1132 - EndLoadData() : perfomance fix in case of null constraint violation
1133 during data load (also in DataRow.cs).
1134 - CaseSensitive : If DataTable belongs to DataSet it should always use
1135 DataSet.CaseSensitive untill explicitly changed.
1136 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
1139 - Pefromance fix in case of null constraint violation
1140 during data load (also in DataTable.cs).
1141 - CollectionChanged() : use correct column number after new DataColumn was added
1142 (differs in case some DataColumn was previosly removed).
1143 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
1145 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
1147 * DataColumnCollection.cs : Since unique constraint is added now
1148 in DataColumn.SetTable() the additional creation of constraint in
1149 DataColumnCollection.Add() is redundant and causes exception - fixed.
1151 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
1153 * XmlDataLoader.cs : Added "never add data rows" mode.
1154 Removed unused code. However, it is temporary fixes to unify
1155 ReadXml() and InferXmlSchema().
1156 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
1158 I'll create another XmlDataLoader since there are many problems
1159 such that 1) it is too waste to read the entire xml into an
1160 XmlDocument, 2) it does not handle attributes correctly, and 3) it
1161 must handle "ignored namespaces".
1163 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
1165 * Added XmlSchemaDataImporter.cs (new schema reader).
1166 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
1167 for ReadXmlSchema().
1168 Let schema reading work to ReadXmlSchema().
1169 Don't return ReadSchema when argument read mode was DiffGram.
1171 2004-04-15 Umadevi S (sumadevi@novell.com)
1172 * Updated Clone/Copy methods in DataSet along with Testcase
1173 * ForeignKeyConstraint.cs - special ctor implemented
1174 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).
1175 * Changes in ConstraintCollection.cs for the above
1176 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.
1179 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
1181 * XmlSchemaMapper.cs : set parent key and foreign key info to
1182 DataRelation when reading refkey constraints.
1183 Supply constraint name for fkey.
1185 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
1187 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
1188 mode is Auto, just ignore the schema if there is already schema info.
1189 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
1191 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
1194 - In MS output, XML declaration looks to have standalone decl (yes).
1195 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
1196 - ReadXml(reader, mode)
1197 1) return originally specified mode, instead of (always) Auto.
1198 2) Check empty reader.
1199 3) Check diffgram schema and content separately.
1200 4) When diffgram exists, remaining (the same-level) contents
1202 5) Similar fact should be applied, but somewhat different.
1203 InferSchema and IgnoreSchema just skips, Fragment reads both
1204 schema and content, others just reads schema.
1205 - Removed unused code.
1206 * XmlDataLoader.cs :
1207 - Read() should skip in some ReadMode.
1208 - Don't compare schema element name as case-insensitive (well,
1209 should schemas be checked here?)
1210 - Avoided BuildDocument() not to create confusing DataSet
1212 - Don't add any tables when reader has single element.
1213 * XmlDiffLoader.cs :
1214 When target table was not found, MS.NET doesn't raise an error.
1215 * XmlSchemaMapper.cs :
1216 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
1218 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
1221 - InferXmlSchema(): Throw explicit NotImplementedException now.
1222 - Don't put XML declaration everywhere. Write just for filename arg.
1223 - xmlns="" should not be written. Maybe WebService problem is
1224 because default namespace is overwritten. This patch will keep
1225 the WS problem away and actually fixes some unit tests (i.e. use
1226 explicit String.Empty for null namespace in WriteStartElement()).
1227 - MoveToContent() should always be called, not only when
1228 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
1229 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
1230 element. As to MSDN, diffgram does not contain schema.
1232 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1234 * DataTable.cs: made _initStatus private so that System.Data is CLS
1237 2004-04-13 Umadevi S <sumadevi@novell.com>
1238 * UniqueConstraint.cs:
1239 * ConstraintCollection.cs:
1241 - Implemented a Constructor for UniqueConstraint.cs
1242 - Used EndInit on DataTable to call a delegate which adds the
1243 constraints passed to the most recent call of AddRange().Used
1244 AddRange() on ConstraintCollection to check whether
1245 DataTable.BeginInit has occurred. If yes, save the argument
1246 constraint collection passed, then return. If no, Check whether the
1247 constraints are of type UniqueConstraint and initialized with the
1248 special constructor If yes Initialized the table property of this
1249 UniqueConstraint object with table assosciated with the current
1250 instance of ConstraintCollection class.
1252 2004-04-07 Marek Safar <marek.safar@seznam.cz>
1254 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
1256 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1259 * DataColumnCollection.cs:
1260 * DataRelationCollection.cs:
1261 * DataRowCollection.cs:
1262 * DataTableCollection.cs:
1263 * InternalDataCollectionBase.cs:
1264 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
1267 2004-04-05 Jackson Harper <jackson@ximian.com>
1269 * DataTable.cs: Add rows to the row list if there is no filter.
1271 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
1273 * DataColumn.cs : Setting Caption to null sets it to the empty string
1274 (ms.net behaviour, testcase is in DataColumnTest).
1276 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
1279 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
1281 * DataColumn.cs: In Expression setter, set the expression member even if
1282 it is an empty string.
1283 * DataSet.cs: Support serialization of byte[] columns.
1284 * XmlDataLoader.cs: Support deserialization of Guid columns.
1285 Set MappingType.Attribute to columns infered from attributes.
1287 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
1289 * ExpressionElements.cs : remove
1290 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
1291 Integration of new Mono.Data.SqlExpressions classes used in
1292 DataTable.{Select, Compute}.
1293 Fixes bug #55503 and lots of failures in DataTableTest.cs.
1295 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
1297 * Index.cs: Simple fix in ComparePartialRowNonUnique.
1298 This fixes bugs #56129 and #56014.
1300 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
1302 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
1303 stream after writing the dataset. This fixes bug #52581.
1304 Also added several writer.Close into finally blocks, so writers are properly
1305 closed in case of an exception.
1307 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1309 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
1310 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
1311 * ColumnTypeConverter.cs: Added stub
1312 * DefaultValueTypeConverter: Added stub
1313 * ConstraintConverter.cs: Added stub
1315 2004-03-04 Eran Domb <erand@mainsoft.com>
1317 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
1318 in MS.NET documentation (missing DataSet element etc).
1320 2004-03-04 Eran Domb <erand@mainsoft.com>
1323 * Index.cs : Rollback last changes.
1325 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
1327 * Index.cs : justa build fix.
1329 2004-03-03 Eran Domb <erand@mainsoft.com>
1332 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
1333 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
1334 This changes made for performance improvement.
1336 2004-02-08 Eran Domb <erand@mainsoft.com>
1338 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
1340 2004-02-08 Eran Domb <erand@mainsoft.com>
1342 * DataSet.cs: Fix some bugs in ReadXml().
1344 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1346 * DataSet.cs: Added missing method that broke the build.
1348 2004-02-04 Eran Domb <erand@mainsoft.com>
1350 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
1352 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
1353 when all column are attributes (elements count is 0), we still want to add the relations. No relations
1354 can be on simple contents.
1355 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
1356 (AddForeignKeys) Check that the relation has constraints attach to it.
1357 * XmlConstants.cs : Added constant.
1359 2004-02-04 Eran Domb <erand@mainsoft.com>
1361 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
1362 DoWriteXmlSchema calls BuildSchema ().
1364 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1366 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
1368 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
1370 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
1371 also be added to the dataset.
1372 In WriteTable(), do not write unchanged rows when writing the original
1373 version of the table.
1374 Added WriteIndividualTableContent(), for writing the contents of a single
1376 Changed BuildSchema and related methods, so it can generate a schema for
1377 any set of tables, not just the tables of the dataset (needed for
1378 single datatable serialization).
1379 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
1380 Also implemented some ReadXmlSchema methods.
1381 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
1382 instead of loading the full dataset in an XmlDocument. It is faster and
1383 saves memory. Also fixed several problems when generating the changes.
1384 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
1385 table serialization).
1387 2004-02-02 Eran Domb <erand@mainsoft.com>
1389 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
1390 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
1391 * DataTable.cs (NewRow): Create only one DataRowBuilder.
1392 Initiate new row with row id -1.
1393 * DataRow.cs : Add RowId property.
1394 * DataRowBuilder.cs : Add _rowId member.
1395 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
1397 2004-01-26 Eran Domb <erand@mainsoft.com>
1399 * XmlConstants.cs : Added some constants.
1400 * DataColumn.cs : Added a method to retrive AutoIncrement value.
1401 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
1402 parent table column.
1403 * XmlDiffLoader.cs : Convert the value comming from the xml.
1404 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
1405 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
1406 (ReadXmlSchemaElement) : Set the locale of the dataset.
1407 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
1408 (GetColumnType) : New method to get the column type from the attribute value.
1409 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
1410 and add the constraint to the table.
1411 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
1413 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
1414 Writing more information to the schema for interoperability with ms.net.
1415 Improve diffgarm writing mode.
1418 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
1420 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
1422 2004-01-21 Eran Domb <erand@mainsoft.com>
1424 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
1425 Do not set the child column to be AutoIncrement.
1426 Create the new column for the relation as MappingType.Hidden so they will not be serialized
1427 when writing the dataset to xml.
1429 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
1431 * Added missing TypedDataSetGenerator.cs.
1433 2004-01-08 Eran Domb <erand@mainsoft.com>
1435 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
1436 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
1437 InferSchema, ReadSchema and IgnoreSchema.
1438 * XmlDataLoader.cs : All modes use the same logic.
1439 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
1441 2004-01-06 Eran Domb <erand@mainsoft.com>
1443 * DataRelationCollection.cs : Use IndexOf in indexer.
1444 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
1445 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
1446 * XmlDiffLoader.cs : Reading nested tables.
1447 * XmlSchemaMapper.cs : Reading the relation.
1448 * XmlConstants.cs : Adding some constants.
1450 2004-01-05 Jackson Harper <jackson@ximian.com>
1452 * DataView.cs: Set readonly property of property descriptor. This
1455 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
1457 * DataRelationCollection.cs : Fixed incorrect generation of default
1459 * DataSet.cs : Added missing functionality in WriteXml().
1460 * XmlConstants.cs : Added new constants.
1462 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
1464 * DataSet.cs : Fixed incorrect WriteXml() signature.
1466 2003-12-18 Jackson Harper <jackson@ximian.com>
1468 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
1470 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
1472 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
1473 they take shape of xml. This fixed bug #52240
1475 2003-12-16 Tim Coleman <tim@timcoleman.com>
1476 * KeyRestrictionBehavior.cs:
1477 New stubs added for .NET 1.2
1481 2003-12-08 Eran Domb <erand@mainsoft.com>
1482 * DataColumn.cs (Expression) : Validate the expression.
1484 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
1485 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
1487 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
1488 (RejectChanges) : Detach row when state was Added.
1489 (CollectionChanged) : Fix a bug.
1491 * ExpressionElement (ValidateExpression) : Fix a bug.
1493 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
1494 a parent row in the parent table.
1495 (_validateColumns) : Fix bugs.
1497 * MergeManager.cs (AdjustSchema) : Fix a bug.
1499 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
1502 2003-11-30 Eran Domb <erand@mainsoft.com>
1503 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
1504 (Add) : Find if the new column name is the same as the one found in IndexOf.
1505 (IndexOf) : New method.
1506 (Contains) : Use new IndexOf.
1507 (IndexOf) : Use new IndexOf.
1509 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
1510 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
1512 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
1513 (Delete) : Detach row if the RowState was Added.
1514 (GetChildRows) : Get the array form the ChildTable.
1515 (GetParentRows) : Get the array from the ParenTable.
1517 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
1519 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
1521 * DataTable.cs (PrimaryKey) : Fix bugs.
1522 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
1524 * DataTableCollection.cs (Add) : Fix a bug.
1526 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
1527 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
1528 Some code style changes (tab instead of whit spaces, alignment, etc...).
1530 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
1532 * MergeManager.cs (AdjustSchema) : Fix a bug.
1536 2003-11-26 Miguel de Icaza <miguel@ximian.com>
1538 * DataSet.cs: Add a few more missing methods, code style updated
1541 2003-11-26 Tim Coleman <tim@timcoleman.com>
1543 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
1544 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
1545 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
1546 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
1547 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
1548 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
1549 * StatementCompletedEventHandler.cs UpdateOptions.cs:
1550 New classes added for NET_2_0
1551 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
1552 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
1553 Modifications to add new NET_2_0 functions
1555 2003-11-25 Tim Coleman <tim@timcoleman.com>
1559 2003-11-21 Pedro Martínez Juliá <yoros@wanadoo.es>
1561 * DataRow.cs: Detached row can be accesible (new rows from data
1562 table are detached). Closes but #51263.
1564 2003-11-19 Eran Domb <erand@mainsoft.com>
1565 * DataRow.cs : Throw exceptions if Row is Detached.
1566 (EndEdit) : Check that we are not in middle of ChangeEvent.
1567 (AcceptChanges) : Detach the row.
1569 * DataRelation.cs : throw correct exception.
1570 *UniqueConstraint.cs : throw correct exception.
1573 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1575 * DataRow.cs: Use RemoveInternal instead of Remove because the last
1576 one uses Delete and AcceptChanges.
1578 * DataRowCollection.cs: When removing, Delete and AcceptChanges
1579 method from the row are called. Added an internal method that will
1580 be used by DataRow to "physically" remove the row from the list.
1582 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1584 * DataRowCollection.cs: To follow the specification: Remove and
1585 RemoveAt should remove the row. But needed to call DeletingDataRow
1586 to prepare the deleting.
1588 * DataRow.cs: Don't call DeletingDataRow when it is called by the
1589 method Table.Rows.Remove.
1591 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1593 * DataRowCollection.cs: Make the row be deleted by itself. If not,
1594 it fails because we need to call OnRowDeleting and OnRowDeleted. It
1595 is full implemented inside DataRow.
1597 2003-11-05 Eran Domb <erand@mainsoft.com>
1598 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
1600 2003-11-04 Eran Domb <erand@mainsoft.com>
1601 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
1603 (GetChildRows) : Adding some checks.
1604 (GetParentRows) : Adding some checks. Fix a bug in implementation.
1605 (SetParentRow) : Added implementation.
1607 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
1608 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
1609 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
1610 * MergeManager.cs : Check that the target table is not null.
1612 2003-10-27 Eran Domb <erand@mainsoft.com>
1613 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
1614 can be converted to the column type.
1616 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
1618 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
1619 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
1621 * DataRowCollection.cs (Add) : Fixing a bug.
1622 (Clear) : Before clearing the array check that there is no violation of FK constraint.
1624 * DataSet.cs (Prefix) : If value is null chage it to empty string.
1625 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
1627 * ExpressionElement : Adding support for IN expresion.
1629 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
1630 (Select) : Adding support for DataViewwRowState.
1632 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
1634 * MergeManager.cs (MergeRow) : Fix bugs.
1636 2003-10-27 Eran Domb <erand@mainsoft.com>
1637 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
1638 check null values when ending loading data.
1640 * DataSet.cs (RejectChanges) : Imlementation.
1641 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
1642 change it to empty string.
1644 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
1646 2003-10-22 Eran Domb <erand@mainsoft.com>
1647 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
1649 * ConstraintCollection.cs (RamoveAt): Change implemntation.
1651 * DataTableCollection (CanRemove): Removing cast to Constraint.
1653 2003-10-22 Eran Domb <erand@mainsoft.com>
1654 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
1655 (Clear): The collection was cleared without removing the relation from the parent and child tables.
1657 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
1658 (HasChanges, Reset): Imlementation.
1660 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
1661 This is because the we do not no when to turn off the flag.
1662 (Locale): Changing implementation to behave like ADO.NET.
1663 (AcceptChanges): Fix bug.
1664 (Clear): Check that this table is not referenced from a foreign key constraint.
1665 (Copy): Do not try to access a deleted row.
1666 (CopyProperties): Copy the PrimaryKey.
1667 (GetChanges, ImportRow): Implementation.
1668 (LoadDataRow): Adding implementation if the table has PrimaryKey.
1669 (ToString): Changing implementation to behave like ADO.NET.
1671 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
1673 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
1674 (HasErrors): Implementation.
1675 (Delete): Added checking for child rows of the deleted row.
1676 (EndEdit): Added checking for child row and firing events.
1677 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
1678 (GetColumnsInError): Added a check for null values in column error.
1679 (HasVersion): Added special treatment for special RowState.
1680 (CollectionChanged): More checks to avoid NullReferenceException.
1682 * DataRowCollection.cs (Remove): Fix a bug.
1685 2003-10-01 Duncan Mak <duncan@ximian.com>
1687 More patches from Eran Domb <erand@mainsoft.com>.
1689 * MergeManager.cs: New file.
1691 * DataRelationCollection.cs (AddCore): Check that a
1692 UniqueConstraint is already exists. It loops over the Relations
1693 instead of the Constraints.
1694 (Add, AddCore): The relation was added twice.
1696 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
1698 2003-09-30 Duncan Mak <duncan@ximian.com>
1700 Patches from Eran Domb <erand@mainsoft.com>.
1702 * DataRelation.cs (constructor): When the name of the relation is
1703 null, it should return an empty, not "Relation".
1705 * DataRow.cs (AcceptChanges): Added special case for
1707 (CancelEdit): Set editing flag to false.
1708 (IsNull): Check that the value is DBNull.
1710 * DataRowCollection.cs (Add): There was no check that the table of
1711 the collection is owned by a DataSet.
1713 * DataSet.cs (OnMergeFailed): Added.
1715 * UniqueConstraint.cs (AssertConstraint): There was no check that
1716 values in the row are not null, where it is a primary key
1717 column. Also check that the row has a proposed version, if not,
1718 get the current version when we compare the rows.
1720 2003-09-25 Duncan Mak <duncan@ximian.com>
1722 Patches from Eran Domb <erand@mainsoft.com>.
1724 * DataColumn.cs (Unique): Implemented.
1727 * ConstraintCollection.cs:
1728 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
1729 an Exception thrown. Details:
1730 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
1732 * DataRowCollection.cs (Add): There is no checking that there is
1733 no violation of the unique constrains.
1735 * UniqueConstraint.cs (AssertConstraint): There is no checking on
1736 all columns in the constraint.
1738 * DataTableCollection (Add): Correctly throw an Exception, more
1740 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
1741 (Remove, RemoveAt): Implemented.
1743 2003-07-31 Duncan Mak <duncan@ximian.com>
1745 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
1747 2003-07-25 Ravi Pratap <ravi@ximian.com>
1749 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
1750 method on a delegate is disallowed - fix this.
1752 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
1754 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
1755 xml serialization. Modified method of writing schema. Now it creates
1756 a XmlSchema object and serializes it using XmlSerializer.
1757 * XmlConstants.cs: Added constants for data type names.
1758 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
1759 type specified in the column.
1761 2003-04-20 Alan Tam <Tam@SiuLung.com>
1763 * DataRelationCollection.cs: Fix a bug that prevent relations
1764 from being added via DataSet.
1766 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
1768 * UniqueConstraint.cs: one tiny fix.
1770 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
1772 * DataTable.cs: Remove UniqueConstraints when adding new ones
1774 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
1776 * DataColumnCollection.cs: Little 'case sensitive' fix
1778 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
1780 * DataRow.cs: AutoIncrement handling to Constructor
1781 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
1783 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1785 * DataTable.cs: Some fixes to PrimaryKey etc...
1786 * UniqueConstraint.cs: Little clean up
1788 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1790 * DataTable.cs: Tiny fix to ToString () -method
1792 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1794 * ConstraintCollection.cs: Little fix.
1795 * DataColumn.cs: Added new internal method SetUnique()
1796 * UniqueConstraint.cs: some little fixes
1798 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
1800 * DataRowCollection.cs: Bugfixes, implementation,...
1802 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
1804 * DataColumn.cs: If DataType if set to something else than short, int
1805 or long and AutoIncrement is true, AutoIncrement is must set to false.
1807 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1810 (BeginEdit): fixed array bound problem when a column has been added.
1811 (EndEdit): just assign proposed to current as proposed is set to null.
1812 This also fixes another array boudn problem.
1814 2003-03-21 Alan Tam <Tam@SiuLung.com>
1816 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
1817 EndEdit and AcceptChanges to act correctly according to DataRowState
1819 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
1820 attached and detached from the collection.
1822 2003-03-20 Alan Tam <Tam@SiuLung.com>
1824 * DataColumn.cs: Store empty string for Expression when null is passed in.
1825 Classes generated by XSD.exe passes null by default.
1827 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
1829 * DataColumnCollection.cs: Tiny clean up
1831 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
1833 * DataColumn.cs: little fixes.
1834 * DataColumnCollection.cs: Lots of little fixes and improvments.
1836 2003-03-12 Alan Tam <Tam@SiuLung.com>
1838 * DataSet.cs: Fixed a bug that the file written does not close correctly.
1840 2003-03-08 Alan Tam <Tam@SiuLung.com>
1842 * DataRelationCollection.cs: Removed the mis-overridden methods
1843 * DataRow.cs: Fixed an attribute
1844 * DataSet.cs: Fixed the modifiers
1846 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
1848 * DataTableCollection.cs: The Contains (string name),
1849 IndexOf (string name) methods, and item[string name] indexer
1850 now behave more like .NET with respect to case-sensitivity.
1851 That is if there is an exactly matching item then this one is used.
1852 If there is only one item differing in case then it used.
1853 If there are more than one item differing in case then
1854 Contains returns false, IndexOf returns -1, and item[]
1855 throws an ArgumentException.
1857 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
1859 * ExpressionElement.cs: More implementation.
1861 2003-02-28 Alan Tam <Tam@SiuLung.com>
1862 * DataSet.cs: Changed WriteTable so that it now calls the newly written
1863 WriteObjectXml to direct the call to the respective XmlConvert method.
1864 This fixes the wrong format written to XML files of bool, float,
1865 double, DateTime and TimeSpan types.
1867 2003-02-25 Alan Tam <Tam@SiuLung.com>
1869 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
1870 * DataRelationCollection.cs: Implemented AddRange and Contains.
1871 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
1872 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
1873 Reimplemented most Add methods to eliminate duplicated checks.
1874 Centralized RelationName generation procedure in GetNextDefaultRelationName.
1876 2003-02-25 Alan Tam <Tam@SiuLung.com>
1878 * DataColumn.cs: Fixed wrong storage representation of Expression
1879 (using empty string instead of null) so that ToString() returns nothing.
1880 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
1881 auto column naming now works as expected. Reimplemented some Add methods
1882 to eliminate code duplication.
1884 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
1886 * DataTable.cs: DataTable.CaseSensitive follows parent
1887 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
1888 been changed directly from DataTable
1890 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
1892 * DataSet.cs: When CaseSensitive property is changed all of the Tables
1893 of DataSet have to change too
1895 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
1897 * InternalDataCollectionBase.cs: revert change to field
1900 * DataViewManager.cs
1903 * DataSet.cs: commented use of DesignerAttribute
1904 because it broke the build. According to MSDN,
1905 DesignerAttribute does not have a zero-argument constructor
1907 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
1909 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
1911 2003-02-18 Alan Tam <Tam@SiuLung.com>
1913 * DataRow.cs: Implemented GetParentRow and GetParentRows.
1914 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
1915 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
1916 RaisePropertyChanging.
1917 * DataTable.cs: Implemented NewRowArray.
1918 * DataTablePropertyDescriptor: Fixed a modifier.
1919 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
1920 * PropertyCollection.cs: Minor fix.
1921 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
1922 * DataRelation.cs DataRelationCollection.cs DataRow.cs
1923 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
1924 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
1925 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
1926 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
1927 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
1929 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
1931 * ExpressionElement.cs: More implementation
1933 2003-02-05 Alan Tam <Tam@SiuLung.com>
1935 * DataSet.cs: Added framework for DataSet.Update Implemented missing
1936 methods GetSchemaSerializable, GetSerializationData,
1937 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
1939 * DataTable.cs: Implemented missing methods CreateInstance and
1940 GetRowType for DataTable
1942 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
1944 * DataSet.cs: Implemented private method MapType for
1945 mapping datatypes for XmlSchema
1947 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1949 * DataView.cs: implemented Dispose.
1951 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
1953 * ExpressionElement.cs: Added new file. This file is for parsing
1954 and DataData.Select () -methods and DataColumn.Expression -property
1955 * DataTable.cs: Implemented Select(string) -method
1957 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
1959 * DataSet.cs: One little fix to writing xml
1961 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
1963 * XmlSchemaMapper.cs: Some fixes.
1964 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
1967 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
1969 * UniqueConstraint.cs: Do not set columns Unique property true
1971 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
1973 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
1975 * DataTableCollection.cs: Now names new DataTable if it doesn't
1976 already have a name.
1978 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
1980 * XmlSchemaMapper.cs: Improvments.
1981 * XmlConstaints.cs: Added more constants.
1982 * DataSet.cs: Improvments of reading and writing xml
1983 * DataColumn.cs: Added default values of properties.
1985 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
1987 * XmlSchemaMapper.cs: Some improvments
1989 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
1991 * DataRowCollection.cs: Added IndexOutOfRangeException
1992 * DataTableCollection.cs: Added OnCollectionChanging and
1993 OnCollectionChanged events.
1994 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
1995 * DataTable.cs: Implemented Copy () and Clone () methods.
1996 * XmlDataLoader.cs: some fixes.
1997 * XmlSchemaMapper.cs: comments.
1999 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2001 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
2003 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2005 * DataColumnPropertyDescriptor.cs: fixed typo.
2006 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
2007 to get the DataViewManager and removed TablePD class.
2008 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
2009 suggested by danmorg.
2011 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
2013 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
2015 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
2016 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
2018 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2020 * DataView.cs: made dataViewManager internal.
2021 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
2022 properties of the object, but the values of the columns present in a
2025 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
2026 which returns a PropertyDescriptorCollection. Created a new class
2027 derived from PropertyDescriptor that treats Table as an object whose
2028 properties are DataRowView.
2030 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
2032 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
2034 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
2036 * DataColumn.cs: ExtendedProperties is by default !null-
2038 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
2040 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
2041 set column's ordinal.
2043 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
2046 * XmlDataLoader.cs: XmlReader closing fixes.
2047 * XmlSchemaReader.cs: Added support for ref=
2049 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
2052 - Added XmlReader and XmlWriter Closing.
2053 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
2054 * XmlSchemaMapper.cs
2055 - Much better way IMHO to map xmlschema than the old one in
2056 DataSet.cs. Its, more flexible, cleaner, ...
2058 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
2060 * XmlDataLoader.cs: Reading diffgrams.
2062 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
2064 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
2065 * DataTable.cs: Added ChanginDataColumn () for triggering
2066 DataColumnChanging event
2068 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
2070 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
2072 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
2074 * DataSet.cs: Indentations to WriteXml ()
2076 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
2079 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
2080 class XmlDataLoader.cs
2082 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
2084 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
2086 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
2088 * DataSet.cs: Started to implement ReadXml-methods.
2090 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2092 * DataSet.cs: implemented DefaultViewManager and GetList.
2094 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
2095 DataList in System.Web.
2097 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
2100 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
2103 * DataTable.cs: Fixed NullException (rollback -event)
2104 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
2106 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
2109 * DataRowCollection.cs: Moved event triggering from DataRow to
2112 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
2114 * DataSet.cs: Little fix to WriteTable () -method
2115 and DoReadXmlSchema () -method.
2117 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
2119 * DataSet.cs: Clean up to reading xmlschema. This looks much better
2120 now (work better too), but it not working correctly yet.
2122 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
2125 * DataRowCollection.cs: Added some event handlins stuff.
2126 * DataSet.cs: Some fixes.
2127 * DataTable.cs: Added event handlers.
2129 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
2131 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
2133 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
2135 * System.Data/DataRow.cs: Added internal property XmlDataID
2137 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
2139 * DataSystem.Data.DataTableCollection.cs:
2140 Removed HashTable. There could be situations where DataTable
2141 is added to collection before it hava TableName. So using
2142 HashTable is impossible.
2144 2002-11-19 Carlos Guzmán Álvarez <carlosga@telefonica.net>
2146 * DataRow.cs: an object that is equal to null
2147 should be allowed to be set in this indexer too
2150 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
2152 * DataColumnPropertyDescriptor.cs: added file
2154 * System.Data/DataRowView.cs: started implementation
2156 * DataTable.cs: stubbed more interfaces. Implemented
2157 IListSource.GetList()
2159 * DataView.cs: stubbed more interfaces. Implemented
2160 some properties and methods: GetEnumerator(),
2161 ITypedList.GetItemProperties, Item indexer, CopyTo()
2163 2002-05-18 Nick Drochak <ndrochak@gol.com>
2165 * DataRow.cs: Fix typo.