1 2006-01-17 Senganal T <tsenganal@novell.com>
4 ItemArray : Modified to raise RowInTableException only if
5 the concerned row has been removed from the table.Fixes
8 2006-01-16 Boris Kirzner <borisk@mainsoft.com>
9 * DataTable.cs: Drop dependend indexes on column removal.
11 2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
13 * CustomDataClassGenerator.cs :
14 When a DataRelation connects the same table as parent and child,
15 generate parent row property as BlahRowParent. Fixed bug #77248.
17 2006-01-10 Senganal T <tsenganal@novell.com>
18 * DataRowCollection.cs
19 - Added ListChangedEvent to notify reset of the collection.
21 - Subscribes to the ListChangedEvent of DataRowCollection
24 2006-01-09 Senganal T <tsenganal@novell.com>
27 - Resolving a name clash in IExpression
29 2006-01-06 Senganal T <tsenganal@novell.com>
32 * DataColumnCollection.cs
33 - Reset the Parameters of DataColumn to Default Values when
34 column is removed from the Table's Collection
36 2006-01-03 Senganal T <tsenganal@novell.com>
39 - ParseSortString() : Changed the way the sort string is parsed.
40 Using a regex to parse the string.Fixes bug #77104
42 2005-12-12 Konstantin Triger <kostat@mainsoft.com>
44 * DataRow.cs: Added index Updates.
45 EndEdit() fixed to first update indices and then AssertConstraints
46 based on those indices.
47 Added Validate() and AssertConstraints() functions.
48 * DataRowCollection.cs: Removed ValidateDataRowInternal().
49 * DataTable: Fixed Clear().
51 2005-12-06 Atsushi Enomoto <atsushi@ximian.com>
53 * CustomDataClassGenerator.cs : (InitializeFields) handle AllowDBNull
54 and DefaultValue as well. Patch by Marek Habersack (bug #76709).
56 2005-12-01 Miguel de Icaza <miguel@novell.com>
58 * DataSet.cs: Apply patch from Robert Jordan, to fix #76817
60 2005-11-26 Konstantin Triger <kostat@mainsoft.com>
62 * ConflictOption.cs: TARGET_JVM include.
64 2005-11-11 Senganal T <tsenganal@novell.com>
66 * ConflictOption.cs (new file)
67 - Added ConflictOption Enumeration
70 - GetProviderSpecificFieldType : Corrected the method name
72 2005-11-11 Senganal T <tsenganal@novell.com>
74 * DataSet.cs : Added the SchemaSerializationMode Property for NET_2_0
76 * SchemaSerializationMode.cs : Added SchemaSerializationMode Enumeration
77 for NET_2_0 compatibility.
81 2005-10-20 Atsushi Enomoto <atsushi@ximian.com>
83 * XmlSchemaWriter.cs : escape names in the schema with XmlConvert.
86 2005-10-14 Sureshkumar T <tsureshkumar@novell.com>
88 * DataView.cs: Correct multiple throwing of events. Patch from
90 (RowStateFilter): Fire ListChangedEvent.
91 (ApplyDefaultSort): Fire ListChangedEvent.
92 (CompleteLastAdded): call UpdateIndex to remove the row from rowCache.
93 (IBindingList.Find): Implemented.
95 2005-10-11 Sureshkumar T <tsureshkumar@novell.com>
97 * DataView.cs (IBindingList): Implemented methods for IBindingList interface.
99 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
101 * DataSet.cs: In IXmlSerializable.GetSchema, return null again for
102 untyped datasets. Fixes bug #76101.
104 2005-09-21 Boris Kirzner <borisk@mainsoft.com>
105 * DataRow.cs: Fixes for index updating.
107 - Reset case-sensitive indexes also if their filter contains columns
109 - Use GetIndex instead of FindIndex, so the indexes created in Select()
111 * RelatedDataView.cs: implement IExpression.Equals() and GetHashCode().
113 2005-09-20 Sureshkumar T <tsureshkumar@novell.com>
115 * DataView.cs (Sort): Apply default Sorting Order if Sort property
116 is reset to null. Sort property handles this. Patch from Marc.
118 * DataTable.cs (ParseSortString): Patch from Marc Haisenko for
119 allowing [ & ] in DataView.Sort string.
121 2005-09-01 Boris Kirzner <borisk@mainsoft.com>
122 * System.Data/DataRowCollection.cs: indexes should be updated even if
123 EnforceConstraints is false. Check for EnforceConstraints in
124 ValidateDataRowInternal.
126 2005-08-08 Gert Driesen <drieseng@users.sourceforge.net>
128 * DataView.cs: Changed accessibility of dataTable, rowState and
129 rowCache field to internal to fix public API. Assigned TypeConverter
131 * ForeignKeyConstraint.cs: IsConstraintViolated is now internal.
132 * Constraint.cs: IsConstraintViolated is now internal.
133 * UniqueConstraint.cs: IsConstraintViolated is now internal.
135 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
137 * XmlSchemaDataImporter.cs : When "dataset element" has identity
138 constraints, then first reserve constraints room for them and then
139 process elements, skipping pkey creation if there is already
140 reserved one. Fixed bug #75711.
142 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
144 * XmlDataInferenceLoader.cs : in GetElementMappingType(), don't guess
145 the same (QNamed) element again when it was already evaluated as
146 not simple type. Fixed one part of bug #75711.
148 2005-08-02 Boris Kirzner <borisk@mainsoft.com>
149 * XmlSchemaDataImporter.cs : Data relations should be processed after the
150 keys, so no redundant constraints created while relations processing.
152 2005-07-25 Boris Kirzner <borisk@mainsoft.com>
153 * FillOptions.cs, ConflictOptions.cs, UpdateOptions.cs:
154 added ifdef TARGET_JVM.
156 2005-07-22 Sureshkumar T <tsureshkumar@novell.com>
158 * DataViewSettingCollection.cs, DataTableCollection.cs,
159 DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
160 DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
161 DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
162 - updated attributes & attribute descriptions to match with
165 * DataView.cs: changed protected members
166 rowstate,rowcache,dataTable to protected internal.
167 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint.cs:
168 changed InConstraintViolated to protected internal.
169 * ConflictOptions.cs, UpdateOptions.cs, FillOptions.cs: enclosed
172 2005-07-21 Sureshkumar T <tsureshkumar@novell.com>
174 * ForeignKeyConstraint.cs:
175 - IsConstraintViolated (): no matter what EnforceConstraints is,
176 this function now honestly validates. It is upto the caller to run
178 - AddToConstraintCollectionSetup (): AssertConstraint according to
181 2005-07-21 Boris Kirzner <borisk@mainsoft.com>
182 * ForeignKeyConstraint.cs - IsConstraintViolated() should check also for Table.EnforceConstraints.
183 * DataTable.cs - EnforceConstraints becomes internal so it can be used by ForeignKeyConstraint.
185 2005-07-19 Sureshkumar T <tsureshkumar@novell.com>
187 * DataTable.cs - CopyConstraints (): copy constraints only if it
190 * DataSet.cs - Copy ():
191 - use activator.CreateInstance to create a typed dataset.
192 - copy tables if target does not exist, otherwise, just add rows.
193 - add relation only if it does not exists.
195 Typed datasets create the constraints & relations through
196 constructors. Fixes bug #75211.
198 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
200 * DataView.cs: Patch from Marc Haisenko to throw descriptive error
201 message when accessing Item, with invalid index.
203 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
205 reapplied patch from Marc Haisenko.
206 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
209 2005-07-13 Sureshkumar T <tsureshkumar@novell.com>
211 * DataRelationCollection.cs: adding a relation with same set of
212 parent columns & child columns, should not be allowed.
214 2005-07-08 Sureshkumar T <tsureshkumar@novell.com>
216 * DataTableReader.cs: GetSchemaTable: DataType column should be
217 passed a type of Type.
219 * DataRow.cs: Load : Fired necessary events.
221 * DataTable.cs: LoadDataRow (object [], LoadOption): Fired
224 2005-06-28 Sureshkumar T <tsureshkumar@novell.com>
226 * DataRow.cs: Delete (): if row is detached, do nothing.
229 2005-06-22 Sureshkumar T <tsureshkumar@novell.com>
231 * DataRow.cs: Added method MergeValuesToRow copy merge two rows
232 according to the merge rules.
234 * MergeManager.cs: (MergeRow): use MergeValuesToRow
235 API. CopyValuesToRow simply makes the target row same as source
236 row. Rather, MergeValuesToRow merges with the target row according
239 2005-06-19 Konstantin Triger <kostat@mainsoft.com>
241 * DataSet.cs: Fixed ReadXml to work with IXmlSerializable
243 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
245 * DataViewManager.cs: fixes exception and creates DataView
247 2005-06-15 Sureshkumar T <tsureshkumar@novell.com>
249 * DataRow.cs: CheckChildRows: cascade parent changes to child rows
250 only if there is a change in columns of the fk constraint.
252 2005-06-14 Sureshkumar T <tsureshkumar@novell.com>
254 * DataSet.cs: GetChanges: if row is deleted, get parent rows based
255 on original version. fixes bug #75227.
257 2005-06-13 Sureshkumar T <tsureshkumar@novell.com>
259 * DataRowCollection.cs: Find (keys, version): Added an overload to
260 find keys matching given DataViewRowState filter. Used in
261 DataSet.Merge and DataTable.LoadDataRow.
263 * DataTable.cs: LoadDataRow (values, LoadOption): Use
264 DataRowCollection.Find (object [], DataViewRowState) overload.
267 - CopyValuesToRow: Create target "records" out of loop. Records
268 should be created once, not for each column. Dispose Unused target
272 - MergeRow: Find rows with matching original records. If not,
273 select with current values.
274 - MergeRow: While adding new row, use NewNotInitializedRow.
276 * ForeignKeyConstraint.cs: IsConstraintViolated: should not check
277 if EnforceConstraints is false.
279 2005-06-10 Sureshkumar T <tsureshkumar@novell.com>
281 * DataRow.cs: CopyValuesToRow: if orginal == current, don't create
282 a new current record.
284 * DataSet.cs: GetChanges :Temporarily disable EnforceConstraints.
286 * MergeManager.cs: Merge: Temporarily disable
287 EnforceConstraints. Patch from george.barbarosie@gmail.com (George
290 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
292 * DataView.cs: fixes GetListName
294 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
296 * XmlSchemaConstants.cs,
297 XmlSchemaDataImporter.cs,
298 XmlSchemaWriter.cs : AutoIncrementStep support. Patch partly by
299 George Barbarosie. Fixed bug #75121.
300 * XmlSchemaMapper.cs : it is not used anymore, so just removed.
302 2005-05-31 Boris Kirzner <borisk@mainsoft.com>
303 * DataRow.cs : SetParentRow on Detached row with no Default version throws an exception.
305 2005-05-29 Konstantin Triger <kostat@mainsoft.com>
307 * This patch fixes #74813
308 * DataView.cs: rework the CreateChildView to receive the index into the indexed row array, rowState became protected to be initialized from RelatedDataView
309 * DataRowView.cs: movo the logic of creating the child view to the DataView
310 * RelatedDataView.cs: perform correct init.
312 2005-05-25 Sureshkumar T <tsureshkumar@novell.com>
314 * DataTable.cs: Reworked DataTable.LoadDataRow method after
315 regressions caused by Index redesign.
316 * DataRow.cs: Load : reworked.
318 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
320 * ISafeDataRecord.cs: Added GetDateTimeSafe method, the interface was made derived from IDataRecord
322 2005-05-22 Konstantin Triger <kostat@mainsoft.com>
324 * DataTable.cs, DataColumn.cs: in continuation to the previous fix - moving the common logic to 1 function and throwing the correct exception in any flow
326 2005-05-20 Sureshkumar T <tsureshkumar@novell.com>
328 * DataTable.cs: CreateRecord :value should be set to auto
329 increment value or default value if the given value is null.
331 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
333 * DataTable.cs: In DataTable.LoadDataRow with LoadOption - reverting the search order back to Original -> Current (by Suresh request)
335 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
337 * DataRow.cs, DataTable.cs: code under net_2_0 changed to use the new interface
338 * DataTable.cs: Added CompareRecords, which compares records in column order
341 2005-05-16 Sureshkumar T <tsureshkumar@novell.com>
344 * DataTable.cs: quick fix to make build 2.0 profile (follow up for
345 check in 2005-05-16). Merge with previous changes.
347 2005-05-11 Sureshkumar T <tsureshkumar@novell.com>
349 fix for "import row does not import deleted records"
351 * UniqueConstraint.cs: Make a way to access value even from a
352 deleted record. deleted records are added to the collection by
356 - Added restriction-less methods GetValue to fetch a
357 value even if it is in deleted state.
358 - If a row is detached, don't try to delete it from indexes.
359 - sanity check for record_index in CopyValuesToRow method
361 2005-05-05 Sureshkumar T <tsureshkumar@novell.com>
363 * DataTableReader.cs: Implemented Delete handler and move the
364 current pointer accordingly.
366 2005-05-04 Sureshkumar T <tsureshkumar@novell.com>
368 * DataTableReader.cs: Added event handlers to make reader stable
369 when the datasource is modified. Thanks to Umadevi for giving the
370 review comments for this implementation.
372 * DataTable.cs: Clear (): Raise TableCleared event.
374 * DataTableClearEventArgs.cs: Args for DataTableClearEventHandler.
376 * DataTableClearEventHandler.cs: Handler for DataTable.TableClear
379 * DataRow.cs: AcceptChanges: raise row changing & row changed
382 * DataRowCollection.cs: Clear : remove rows from indexes
384 2005-05-02 Atsushi Enomoto <atsushi@ximian.com>
386 * XmlSchemaDataImporter.cs : XmlSchemaParicle might be XmlSchemaAny.
387 This fixes bug #74784.
389 2005-04-29 Sureshkumar T <tsureshkumar@novell.com>
391 * DataTableReader.cs: removed use of _first. throw if given index
392 is out of range of columns. Copy DataTable [] to local array so
393 that not to be disturbed.
395 2005-04-27 Sureshkumar T <tsureshkumar@novell.com>
397 * DataTableReader.cs: Implemented most of the TODO.
399 2005-04-22 Sureshkumar T <tsureshkumar@novell.com>
401 * LoadOption.cs: Changed the enums. Keeping old values for
404 * DataTable.cs: Implemented methods Load and its overloads. Also
405 implemented LoadDataRow.
407 * DataRowCollection.cs: Added a variation of the Find method to
408 return a row even if it is of state Deleted. This is required for
409 DataTable.LoadDataRow method.
411 * DataRow.cs: Implemented internal helper method Load for loading
412 values from an object array and given an LoadOption (2.0 feature).
414 * DataRowAction.cs: Added few more enums for .net 2.0. Sorted
417 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
419 * UniqueConstraint.cs : IsNull check is relevant for rows having default row version.
420 * DataTable.cs : The row should be validated when imported
421 * DataRowCollection.cs : if the row does not contain Proposed neither Current version, it's irrelevant for validation
423 2005-04-26 Boris Kirzner <borisk@mainsoft.com>
425 * UniqueConstraint.cs :
426 - Add indication whenever the constraint belongs to collection.
427 - Calculation of IsPrimaryKey simplified.
428 - If constraint is based on single column, the column becomes unique.
429 - Use boolean IsConstraintViolated() instead of AssertConstraint().
430 - Use Index.Duplicates to proper exception message formatting.
431 - AssertConstraint(DataRow) changed to suite new indexes interface.
432 - Added CanRemoveFromCollection method.
433 - Contains() method renamed to IsColumnContained().
434 * RelatedDataView.cs : added new class.
436 - Reset indexes after merge.
437 - Add new tables when row array is merged into dataset.
438 - Clean proposed record in MergeRow.
439 - Inherit nesting on creating new relations in target data set.
440 - Avoid double loop on constraints collection.
441 * Locale.cs : added new class.
442 * ISafeDataRecord.cs : added new interface.
443 * Index.cs : commented out. Index implementation moved to System.Data.Common.
444 * ForeignKeyConstraint.cs :
445 - No more use of childColumnsExtended since new indexes allow duplicate records.
446 - Constraints can not be created on expression columns.
447 - Removed unnecessary delegation.
448 - Use boolean IsConstraintViolated() instead of AssertConstraint().
449 - Use proper exception message formatting.
450 - Contains() method renamed to IsColumnContained().
451 * DataViewRowState.cs : use enum members to simplify notation.
452 * MergeManager.cs : implemented RelationCollectionChanged().
453 * DataView.cs : new implementation.
454 * DataTableCollection.cs :
455 - Added boundary check in indexer.
456 - More accurate handling in AddRange().
457 - Raise event in Remove().
459 - Hold primary key as constraint.
460 - Added accurate handling of DefaultView.
461 - Hold DataRowBuilder per table.
462 - Proper exception messages if enforce Constraints is violated.
463 - If there is no rows, Compute() returns DBNull.
464 - Use DataRow properties instead of private members.
465 - CopyProperties() fixed.
466 - Raise proper events in EndInit().
467 - Proper order of violation checks in EndLoadData().
468 - Create array of rows using NewRowArray().
469 - ImportRow handles rows according to their versions.
470 - LoadDataRow make use of records (instead of raw object array).
471 - Added and implemented LoadDataRow() that gets IDataRecord as a parameter (used in Fill)
472 - Select() uses indexes filtering and sorting ability (instead of "loop-throw-sort" approach).
473 - Removed redundant RowSorter and Sortable column classes.
474 - ParseSortString() fixed to threat bracketed column names.
475 - Table holds collection of property descriptors.
477 - Reset table case sensitive indexes on CaseSensitive change.
478 - EnforceConstraints update logic moved to internal method (used by DataTable).
479 - InAddChangedRow first add row and than copy values for proper handling of default values.
481 - Changed private member names to suite name convention.
482 - CancelEdit() fixed.
483 - CreateChildView() delegates to DataView.
485 - Proper exception messages in indexers.
486 - RowVersion uses DataView.
487 - GetProperties() delegates to corresponding table if needed.
488 * DataRowCollection.cs :
489 - Common Add() logic moved to AddInternal() (used also by DataTable).
490 - Removed redundant check from Contains().
491 - Dalegate Find() calls when possible.
493 - RomoveAt() delegates to Remove().
494 - Optimized constraints check in row validation.
495 * DataRelationPropertyDescriptor.cs : added new class.
496 * DataRelationCollection.cs :
498 - Fixed order of actions in AddCore().
499 - RemoveCore() also delegates to base.
500 - Add relation to dataset also in AddCore().
501 - Remove relation from dataset also in RemoveCore().
502 - InTransition hold a data relation so we can properly identify the "in transition" state.
503 - Added threat of parent and child table s property descriptors in Add().
504 - Common Add() logic moved to AddCore().
506 - Remove() threats "in transition" state properly.
507 - Remove methods delegate to single implementation.
508 * DataColumnPropertyDescriptior.cs :
509 - Added new constructor.
510 - Commented out redundant method.
511 * DataColumnCollection.cs :
512 - Boundary check in indexer.
513 - RegisterName and UnregisterName become internal (used also by DataColumn).
516 - Rethrow correct exception in Clear();
517 - Change in collection resets parent table property descriptors.
518 - Added PostEndEdit() helper method (used by DataTable).
520 - Private member names changed to suite name convention.
521 - Created method for CanAutoIncrement() logic.
522 - Proper handling of column name update.
523 - Proper exception messages on expression update.
524 - Proper namespace handling (delegates to table when needed).
525 - Removed redundant check in Unique update.
526 - Implemented internal Clone().
527 - GetParentRalation() and GetChildRelation() become private.
529 - Added abstract methods (implemented in UniqueConstraint and ForeignKeyConstraint).
530 - Simplified index update.
531 * ConstraintCollection.cs :
532 - Use Locale instead of CaseSensitive in column names comparison.
534 - Rethrow correct exception type in Add().
535 - Proper update of table primary key in Add().
536 - Delegate CanRemove() to constraint.
537 - Remove table primary key in Clear();
538 - Delegate "can remove" check to constraint in Remove().
539 - Removed unnecessary methods and properties.
541 - RowSate becomes calculated property.
542 - Use properties instead of private members where possible.
544 - Fixed order of actions in ItemArray update.
546 - Added ImportRecord() method.
547 - Removed redundant SetValuesFromDataRecord().
548 - Fixed IndexFromVersion().
549 - Added VersionFromIndex() method. Returns row version the passed record index corresponds to.
550 - Fixed AcceptChanges().
551 - Fixed creating proposed version in BeginEdit();
552 - Added record disposal in Delete().
553 - Fixed CheckChildRows().
554 - EndEdit() fixed. Checks for readonly. Uses straight flow instead of "try and fix if fail" approach.
555 - GetChildRows() and GetPrarentRows() rewrited. Use records and indexes for rows lookup.
556 - GetColumnError() delegates to another implementation.
557 - HasVersion() fixed.
558 - RejectCahnges checks on child rows before passing through.
559 - SetParentRow() fixed. Create relation collection if needed. Use typed data container value copy.
560 - CopyErrors() logic moved to separate method (used also by DataTable).
561 * ExpressionElement.cs : added new class.
562 * Res.cs : added new class.
564 2005-04-20 Jordi Mas i Hernandez <jordi@ximian.com>
566 * DataViewManager.cs: implements TypedList.GetListName used in SWF
568 2005-04-19 Atsushi Enomoto <atsushi@ximian.com>
570 * DataRowView.cs : indexer should access to DataRow with proper
571 DataRowVersion. Fixed bug #74650.
573 2005-04-18 Sureshkumar T <tsureshkumar@novell.com>
575 * DataRow.cs: if there are no mapping fields, fill with default
578 2005-04-17 Atsushi Enomoto <atsushi@ximian.com>
580 * DataView.cs : Delete() should not try to remove row twice.
583 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
585 * DataTable.cs : Use GetRowType() for the base of the returning array
586 type of Select(). Fix by Gerhard Rittweger.
587 * CustomDataClassGenerator.cs : Fixed slightly harmless wrong code.
589 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
591 * CustomDataClassGenerator.cs : custom relation was not added to
592 Relations property. The second entry of bug #69276 was fixed.
593 Patch by Daniel Rodriguez.
595 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
597 * DataRowCollection.cs: Fix the signature of the Add method
600 2005-03-16 Atsushi Enomoto <atsushi@ximian.com>
602 * DataRow.cs : on importing row, it was copying data from incorrect
603 DataRow. This fixes bug #73288.
605 2005-03-07 Jackson Harper <jackson@ximian.com>
607 * DataViewManagerListItemTypeDescriptor.cs: Implement missing
608 features. These are needed for System.Windows.Forms databinding.
610 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
612 * DataColumn.cs : setting negative value on MaxLength of SimpleContent
613 column is still valid.
615 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
617 * XmlSchemaWriter.cs : new file for outputting XmlSchema.
618 * DataSet.cs : removed rewritten code in XmlSchemaWriter.
619 * XmlConstants.cs : added UseCurrentCulture constant.
621 Use new Xml Schema writer.
622 Use XmlSchemaDataImporter as we use in DataSet.
624 2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
626 * DataView.cs, DataRowView.cs : Fixed bug #72421. CreateChildView()
627 should target only child rows.
629 2005-02-03 Atsushi Enomoto <atsushi@ximian.com>
631 * DataViewManager.cs: misuse of ReadStartElement(string).
632 * DataRowView.cs : removed some MonoTODO.
634 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
635 Ankit Jain <radical@corewars.org>
637 * DataColumn.cs: throw exception if the column is part of a
638 relationship, when chaning the data type. Added methods
639 "GetParentRelation ()" and "GetChildRelation ()" get the relation
640 which contains the current column
641 * DataRelation.cs: Added method "Contains (DataColumn)" to check
642 whether the relation contains the given column.
644 fixes nunit failure: DataRelationTest.InvalidConstraintException2.
646 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
648 * DataColumnCollection.cs: implemented todo item "check for
649 constraints" when removing columns from table.
650 * DataRowCollection.cs: Clear (): don't have to throw child key
651 constraint exception when the child table does not have any
652 rows. safe to remove parent rows.
653 * UniqueConstraint.cs: added method "Contains (DataColumn)" to
654 check whether a column is part of UniqueConstraint.
655 * ForeignKeyConstraint.cs: added method "Contains (DataColumn,
656 lookInParent)" to check whether a column is part of foreignkey.
658 fixes nunit failure: DataTableTest.ClearTest ()
660 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
662 * ForeignKeyConstraint.cs: validating columns: move checking
663 "tables are of same dataset" before "checking column types".
665 fixes nunit failure: ForeignKeyConstraint.CtorExceptions.
667 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
669 * DataViewManager.cs : let's just use StringWriter instead of
670 XmlTextWriter (to avoid empty tag string mismatch annoyance.)
671 * DataView.cs : implemented BeginInit() and EndInit(). Don't update
672 rows during init phase until EndInit() is invoked. During init phase,
673 just hold properties such as Sort that affects on rows.
675 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
677 * DataTableCollection.cs : (RemoveAt) just use IndexOutOfRangeException.
679 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
681 * DataView.cs : DataRowView.EndEdit() raises ItemMoved event.
682 set_Table clears Sort and RowFilter.
684 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
687 - Clear() should clear AddNew cache.
688 - Open() invokes Reset().
689 - ConstraintCollectionChanged() itself does not invoke OnListChanged().
690 - Reset() does not Open, Close and Update Index.
691 - UpdateIndex() can be invoked even if it has no table.
692 - Reset event is invoked always after actual query to table.
693 - set_Table should raise PropertyDescriptorChanged event.
695 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
697 * DataView.cs : ColumnCollectionChanged() is the event invoker (i.e.
698 when overriden, no column change events are fired).
700 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
702 * DataView.cs : CancelEditRowView() and DeleteRowView() was incorrectly
703 checking target tables. They also should raise events if required.
705 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
707 * DataView.cs : simplify code with UnsortedList.
709 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
711 * DataView.cs : Mostly reimplemented.
712 - UpdateIndex() is invoked only when it is required (results in
713 significant performance improvement).
714 - Use SortedList and wrapper OptionalSortedList which switches
715 between SortedList (with Sort) and UnsortedList (without Sort).
716 - DataView itself now contains two collections for rowviews:
717 Table rows based pool and AddNew() based cache. Consider those
718 two collections in every members.
719 - Reset() does not clear rows. Just invokes UpdateIndex().
720 - Hook RowDeleting, ColumnChanging and ColumnChanged events in table
721 which is required to handle state changes.
722 - Reimplemented Find() and FindRows() because of internal changes.
724 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
726 * DataTable.cs : Fixed row comparer. Even if every of the sort target
727 columns are identical for two rows, they should not be regarded as
728 the same unless they are Object.ReferenceEquals.
730 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
732 * DataRowCollection.cs : on adding a row, should raise
733 ChangingDataRow() as well as ChangedDataRow().
735 2005-01-31 Sureshkumar T <tsureshkumar@novell.com>
737 * DataRow.cs: SetParentRow (): use relation.ParentColumns &
738 relation.ChildColumns instead of relation.ChildKeyConstraint.*
739 because createConstrains flag may be false when creating data
740 relations. Hack along with Ankit Jain.
742 2005-01-31 Atsushi Enomoto <atsushi@ximian.com>
744 * DataView.cs :some interface implementations.
746 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
748 * DataView.cs : Add to table only when the row is not in the table.
750 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
752 * DataView.cs : implemented FindRows() (btw we should not use
753 DataTable since there are detached rows by AddNew().)
755 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
758 Code cleanup: privatify some members, remove unused methods.
759 Some event-based invocation methods should not raise NotImplemented.
761 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
763 * DataSet.cs : ReadXml() became closer to MS behavior, being hacky.
765 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
767 * XmlSchemaDataImporter.cs : empty element is not regarded as a column.
769 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
771 * UniqueConstraint.cs : mostly reverted the previous patch + check
772 IsPrimaryKey before validation.
774 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
776 * DataView.cs : Fixed duplicate insertion to Hashtable.
777 * UniqueConstraint.cs : Unique constrained pair of columns could be
780 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
783 Don't do anything for Sort/ApplyDefaultSort/RowFilter/RowStateFilter
784 when the same value is being set.
785 Examined UpdateIndex() and marked FIXME where MS does not invoke it.
786 Removed unused OnColumnChanged().
787 Now store rowViewPool and reuse DataRowView objects.
788 Optimized UpdateIndex() - avoid ArrayList. Avoid Haashtable.Rehash().
790 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
792 * DataViewSettings.cs : no MonoTODO anymore.
793 * DataViewManager.cs : pass itself to new DataView() (new ctor).
794 * DataRowView.cs : GetHashCode() returns its Row's hash.
795 * DataTablePropertyDescriptor.cs : use new ctor().
796 * DataView.cs : added new ctor()s that accept DataViewManager.
798 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
800 * DataView.cs, DataRowView.cs : AddNew() should not add the row to table
801 (it is still detached). So handle those rows differntly.
802 CancelEdit(), EndEdit() and Delete() propagates those events to
803 DataView (and handle row collection).
804 Eliminate "throw new Exception()".
805 Don't catch all the exception thrown in ListChanged event.
806 * DataTable.cs : made RowSorter as internal and use it in DataView.
807 no need to pass DataRow[] to .ctor().
809 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
811 * DataTable.cs : don't create DefaultView unless it is required. It
812 significantly improves performance. (i.e. DataView perf. is sick ;-)
814 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
816 * DataViewSetting.cs,
817 DataViewSettingCollection.cs,
818 DataViewManager.cs : implemented basic members.
820 2005-01-26 Atsushi Enomoto <atsushi@ximian.com>
822 * Node.cs, DataColumnPropertyDescriptor.cs, DataTable.cs :
823 Eliminate "throw new Exception".
825 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
827 * DataRow.cs : (set_Item) RowNotInTableExeption check should be done
828 regardless of index existence.
830 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
832 * DataTable.cs : use new IExpression.EvalBoolean() to avoid extraneous
835 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
837 * DataTable.cs: ImportRow :Do not add to rows collection if the
838 import row is in detached state.
840 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
842 * DataRow.cs: CopyValuesToRow : set the column value with the
843 default version of the given row.
844 * DataTable.cs: ImportRow: Copy values before adding row.
845 * DataSet.cs: AddChangedRow: Add the row to the table after
848 Fixes bug #67317. Patch by Ankit Jain.
850 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
852 * DataRowView.cs : Fixed IsEdit to reflect correct status of DataRow.
853 * DataRow.cs : Expose editing status internally.
855 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
857 * DataView.cs : missing attributes.
859 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
861 * DataRowView.cs : implemented CreateChildView().
863 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
865 * DataTable.cs, DataView.cs :
866 Optimized DataView to compile only once RowFilter and Sort when
867 those properties are set. To make it possible, extracted
868 SortableColumn out of DataTable and added internal DataTable.Select()
869 that accepts precompiled IExpression and SortableColumns[].
871 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
873 * DataColumn.cs : set_MaxLength is not allowed when it is mapped to
874 SimpleContent. (However, it is weird but it never fails when we set
875 ColumnMapping = MappingType.SimpleContent when we fhave MaxLength.)
877 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
879 * DataRow.cs : more Current -> Default fixes. Check if it should throw
880 VersionNotFoundException. Patch by Ankit Jain.
882 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
884 * DataRow.cs : Default selects the right version for the current
885 state of the row. Current is not always available. Also change
886 that for GetParentRow(). Patch by Ankit Jain.
888 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
890 * DataTable.cs : CopyColumn() should copy AutoIncrement after
891 DefaultValue, or it will raise an error in some cases.
893 2005-01-20 Atsushi Enomoto <atsushi@ximian.com>
895 * ConstraintCollection.cs : Add() should throw ArgumentException when
896 the argument constraint fails validation.
897 DataTable.cs : set_PrimaryKey should throw ArgumentException when
898 the argument contains constraints which fail validation.
900 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
902 * DataRelationCollection.cs:
904 Method Remove : Donot throw exception if DataRelation argument is
905 null in DataRelationCollection.Remove method.
907 Method RemoveAt : Exception should be IndexOutOfRangeException if
908 row index is not in list range.
910 Fixes nunit failures DataRelationCollection.Remove and
911 DataRelationCollection.RemoveAt.
913 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
915 * ConstraintCollection.cs: Donot throw exception if constraints
916 are null in AddRange method. Check for null before using the
921 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
923 * XmlDataInferenceLoader.cs,
924 XmlDataReader.cs : Check if the XmlReader (node) represents DataSet
925 or a table, reusing code block in XmlDataInferenceLoader.
926 This fixes bug #60118.
928 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
930 * XmlDiffLoader.cs : Ankit Jain <radical@imt.ac.in> has a conflicting
931 patches and some good catches. Some attributes should be skipped,
932 and loaded value must be typed.
934 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
937 XmlDataInferenceLoader.cs,
938 XmlDataReader.cs : use common const for http://www.w3.org/2000/xmlns/.
939 * XmlDiffLoader.cs : It was not handling attributes. Fixed bug #70961.
941 2005-01-18 Sureshkumar T <tsureshkumar@novell.com>
943 Fix for bug #66838. This patch is submitted by "Ankit Jain"
944 <radical@corewars.org> and refactored.
946 * DataRow.cs: Allows to set a parent row even if the row is in
949 * DataRelation.cs: method "UpdateConstraints" is added to check
950 and create missing keys when adding a relation. This is refactored
951 approach from DataRelationCollection.Add method.
953 * DataRelationCollection.cs: AddCore methods of all relation types
954 are synchronized. A Check for existing constraints is
955 done. Relation is added to the list only if all checks are passed.
957 2004-01-18 Atsushi Enomoto <atsushi@ximian.com>
959 * DataColumnCollection.cs : Clear() throws ArgumentException that
960 wraps thrown innerException.
961 * XmlSchemaDataImporter.cs : removed FIXMEs.
963 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
965 * DataSet.cs : When serializing DataTable, BuildSchema() is passed
966 null relation collections.
967 Quick fix for XmlSerializer deserialization. It does not require
970 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
973 CustomDataClassGenerator.cs :
974 In DataSet class, IXmlSerializable.GetSchema() returns null.
975 In strongly-typed class, it returns schema.
977 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
979 * XmlDataInferenceLoader.cs : test driver class should be excluded.
981 2004-12-01 Miguel de Icaza <miguel@ximian.com>
983 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
986 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
988 * CustomDataClassGenerator.cs : generated foreign key constraint
989 construction code was creating empty child columns and thus it
990 was invalid. This fixes bug #69276 (patch by Martin Voelkle).
992 2004-11-02 Atsushi Enomoto <atsushi@ximian.com>
994 * CustomDataClassGenerator.cs : custom DataTable ctor should call
995 InitializeFields(), and those DataColumns created by that method
996 should take data type. This should fix bug #68972.
998 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
1000 * DataSet.cs : Also clear UnhandledAttributes ArrayList before
1001 generating next attribute column schema. This fixes bug #68432.
1003 2004-10-14 Umadevi S <sumadevi@novell.com>
1004 * DataTable.cs : Corrected the Clone method to use Activator.CreateInstance so that the
1005 correct subclass is returned. This fixes bug #67631
1007 2004-10-14 Umadevi S <sumadevi@novell.com>
1008 * DataSet.cs : Corrected the Clone method to use Activator.CreateInstance so that the
1009 correct subclass is returned. This fixes bug #67627
1011 2004-10-13 Atsushi Enomoto <atsushi@ximian.com>
1013 * DataSet.cs : clear UnhandledAttributes ArrayList before generating
1014 next element column schema. This fixes bug #68256.
1016 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
1018 * DataSet.cs : now xs:schema contains xmlns="".
1019 This fixes bug #68008.
1021 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
1023 * DataSet.cs : DBNull attribute column should not be written as
1024 empty attribute. This fixes bug #68007.
1026 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
1028 * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
1029 DataColumn.ReadOnly was not handled. This fixes bug #68005.
1030 Attribute defaultValue was not handled too.
1032 2004-10-07 Atsushi Enomoto <atsushi@ximian.com>
1035 - When AllowDBNull is false on attribute DataColumn, its schema
1036 should contain use="required". This fixes bug #66792.
1037 - If MaxLength is set on attribute DataColumn, the mapped schema
1038 type should contain maxLength facet. This fixes bug #66793.
1040 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
1042 * DataSet.cs : For a row, when a relation is not nested, then it is
1043 still output target since it won't be written as a child of its
1044 parent. It fixes bug #66379.
1046 2004-10-03 Atsushi Enomoto <atsushi@ximian.com>
1048 * DataSet.cs : Attribute constraint field XPath must be written as
1049 @blah. This fixes bug #66366.
1051 2004-09-28 Umadevi S <sumadevi@novell.com>
1052 * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
1054 2004-09-24 Sureshkumar T <tsureshkumar@novell.com>
1056 * DataSet.cs : Don't check constraints for dataset clear
1057 * DataRowCollection.cs : check for EnforceConstraints flag
1058 before checking foriegn key constraints in Clear method
1059 * DataTable.cs : Redundant checking removed in Clear method as it is
1060 checked in DataRowCollection.Clear method.
1063 2004-09-19 Sureshkumar T <tsureshkumar@novell.com>
1064 * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
1065 hence, adding a row cache is necessary if the original row happens to be current.
1068 2004-08-23 Martin Baulig <martin@ximian.com>
1070 * XmlDataInferenceLoader.cs (Driver): Make this class internal,
1073 2004-08-18 Umadevi S <sumadevi@novell.com>
1074 * DataView.cs - Completed most of the event handling.
1075 Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
1076 Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
1077 * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
1079 2004-08-06 Atsushi Enomoto <atsushi@ximian.com>
1081 * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
1083 2004-08-05 Atsushi Enomoto <atsushi@ximian.com>
1085 * XmlConstants.cs : Added constants for "msprop" support.
1086 * DataSet.cs : ExtendedProperties should be written in the schema.
1087 This fixes bug #61233.
1089 2004-07-27 Atsushi Enomoto <atsushi@ximian.com>
1091 * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
1092 used. There were also some culture dependency problems to write int.
1094 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
1096 * XmlDataInferenceLoader.cs : It was not always filling relation
1097 child table information correctly. This fixes bug #60742.
1099 2004-06-23 Umadevi S <sumadevi@novell.com>
1100 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
1102 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
1104 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
1105 schema is inside the document element (as created in XmlWriteMode
1106 .WriteSchema), it should read schema from that non-document element.
1107 This fixes one case reported in bug #60470.
1109 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
1111 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
1112 inference target. For bug #60470. (MS does not support schema
1113 document inference and results in unconsistent dataset structure.)
1115 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
1117 * DataTableCollection.cs : reset the table's DataSet to null when
1118 removing a table from this collection.
1119 * DataTable.cs : When Namespace is not specified explicitly, its
1120 Namespace property reflects DataSet's Namespace if exist.
1121 This fixes bug #60469.
1123 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
1125 * DBConcurrentcyException.cs: CRLF to LF
1126 * DataViewSetting.cs: CRLF to LF
1128 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
1130 * DataViewSetting.cs: renamed fields to match MS.NET
1132 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
1134 * DBConcurrencyException.cs: fixed serialization compatibility with
1137 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1139 * ChangeLog : Fix for misspelled words.
1141 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1143 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
1145 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1148 - Table stores default values for columns in special default values row.
1149 It is allocated once (in NewRow).
1150 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
1151 - OnRemoveColumn has nothing to perform by now.
1153 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1156 - Changed access of original, current and proposed indexes to internal.
1157 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
1158 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
1159 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
1160 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
1161 Care about Null and DBNull values is now in DataContainer.
1162 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
1163 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
1164 - Fix in CopyState : clone column errors.
1165 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
1167 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1169 * DataColumnCollection.cs :
1170 - Fix : Add() now delegates to Add(DataColumn).
1171 - autoIncrement list holds DataColumn objects, and not just column names.
1173 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1176 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
1177 - DefaultValue fixes. Default value from now on is also stored in special record in
1178 DataTable, so we're able to set default value for the column faster (typed).
1181 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
1183 * DataSet.cs : children of non-root rows were not properly written.
1186 2004-06-10 Umadevi S <sumadevi@novell.com>
1187 * DataRelation.cs - Constructor
1188 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
1190 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
1192 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
1194 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
1196 * Constraint.cs: marked methods internal to fix public API
1197 * ConstraintCollection.cs: to fix public API, use
1198 DataTable.fInitInProgress to check whether initialization
1199 of DataTable is in progress
1200 * DataColumn.cs: added stubs for missing methods
1201 * DataRowBuilder.cs: marked Table property internal to
1203 * DataSet.cs: removed extra empty destructor, marked
1204 OnMergeFailed internal to fix public API
1205 * DataTable.cs: use fInitInProgress field to hold init
1206 status, to match MS.NET
1207 * DataView.cs: added missing attributes on IsOpen
1209 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
1211 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
1212 in XmlNamespaceManager.
1214 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
1216 * DataSet.cs : complex table content child was not properly added
1217 when it is the only one child in the parent table. Fixed bug #53959.
1219 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
1220 * DataTableTypeConverter.cs: added
1221 * DataView.cs: added missing attribute on Table property
1222 * DataViewManager.cs: moved attribute to correct property
1223 * UniqueConstraint.cs: removed extra ReadOnly attribute from
1224 IsPrimaryKey property
1226 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
1228 * DataRow.cs : ColumnsChanged event is not required in .ctor().
1230 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
1232 * XmlDataReader.cs : type change is required before setting value
1235 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1237 * DataSet.cs : Loop-break of the last fix was incorrect.
1239 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1241 * DataSet.cs : When a row has no parent row but the table has parent
1242 relation(s), that row had been always ignored.
1244 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1246 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
1247 rejected same-named tables in different hierarchy. Thanks to Boris.
1249 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1251 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
1252 infinite loop. Thanks to Boris for this fix.
1254 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1256 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
1257 Thanks to Boris for this fix.
1259 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
1261 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
1262 for ReadXml(). Thanks to Boris.
1264 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
1266 - CheckReadOnlyStatus : use typed (and faster comparing).
1267 - EndEdit : bug fix - do not dispose record if it holds original version.
1268 - SetValuesFromDataRecord : Take care about autoincrement columns.
1271 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
1273 * MergeManager.cs : don't output debug message to Console.
1275 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
1277 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
1278 structure. Thanks to Boris Kirzner for the fix.
1280 2004-05-27 Umadevi S <sumadevi@novell.com>
1281 * DataRelationCollection.cs - fixed nunit test errors
1283 2004-05-27 Umadevi S <sumadevi@novell.com>
1284 * DataTableCollection.cs - fixed nunit test errors
1286 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1288 * DataColumnCollection.cs : NullReferenceException was thrown when
1289 the table was not found.
1290 * DataRowCollection.cs :
1291 Find() just returns null for null value under MS.NET 1.1.
1292 RemoveAt() should also avoid to call AcceptChanges() like Remove().
1293 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
1294 directly under MS.NET (for nunit test).
1296 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1298 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
1299 caused problem on qualified name to get schema Field name.
1301 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1303 * XmlDataReader.cs : Now data reader is namespace aware in all places.
1304 When table's namespace is different, it entered to infinite loop.
1306 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1307 * MergeManager.cs : AdjustSchema now updates by reference new created table,
1308 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
1311 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1313 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
1314 * DataColumnCollection.cs : fixed parantethes.
1316 - AcceptChanges : do nothing if row state is unchanged.
1317 - GetChildRows, GetParentRows : bug fix (use correct index).
1318 * DataRowCollection.cs : bug fix (compare all row's values).
1319 * DataTable.cs : bug fix (use correct row version).
1321 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1323 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
1324 When content type is Mixed, text column is not required (it is
1325 required only when the complex type has no particle).
1326 "Repeated element" column is also created (considering maxOccurs=0
1327 and complex content extension).
1329 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1331 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
1334 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1336 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
1337 Fixed relation inference to consider attribute XPath.
1339 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
1341 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
1344 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1346 * DataColumn.cs - removed default member attribute.
1348 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1351 DataColumnChangeEventArgs.cs,
1352 DataColumnCollection.cs,
1354 DataRowCollection.cs,
1356 Index.cs : Data storage in the row is redesigned. Now data is stored in
1357 typed containers inside DataColumn. Row holds its versions as indexes inside
1358 each of data container, accessed through the row that holds it.
1360 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1362 * UniqueConstraint.cs - added comment.
1364 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
1366 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
1369 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
1372 XmlDataInferenceLoader.cs,
1374 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
1375 XmlEncode every local name to write. This should fix bug #58268.
1377 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
1379 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
1380 Supported repeated elements. Removed MonoTODOs.
1381 * XmlDataInferenceLoader.cs : Design change to support ignored
1382 namespace and repeated elements.
1383 * XmlSchemaDataImporter.cs : Added mapping support classes.
1385 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
1387 * CustomDataClassGenerator.cs :
1388 Added property parent "[foo]Row" and children "Get[foo]Row" support
1389 for custom DataRow classes.
1390 Fixed DataColumn property accessibility (public --> internal).
1392 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1394 * CustomDataClassGenerator.cs :
1395 - Put classes inside custom DataSet class.
1396 - Added automatic DataRelation creation support.
1397 - Added Constraints creation support. That is done separate from
1398 relations, since they might be independently created.
1399 - Added non-MS public DataRelation fields.
1400 - Removed extraneous "DataRelation type generation" code.
1401 - Fixed custom_dataset.Initialize() not to create "c" field that
1402 was created more than once.
1403 - Implemented AddxxxRow() that takes parameters for every column.
1405 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1407 * XmlSchemaDataImporter.cs : When primary key is used more than once,
1408 DataRelation borked because of empty parent column name.
1410 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1412 * XmlSchemaDataImporter.cs : When Creating constraints with related
1413 to DataRelation creation, also set PrimaryKey to the parent table.
1415 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1417 * XmlSchemaDataImporter.cs :
1418 Design change to add indirect table and relation structures.
1419 Support for "relation" annotation for local element.
1420 Support for repeatable simple element column (maxOccurs > 1).
1421 Fixed handling of Nested property on DataRelation (for globally
1422 annotated relation, Nested is false).
1424 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
1426 * DataRow.cs : Added DataElement property to avoid storing every row-
1427 element mapping. It stored even for nodes that should be removed.
1429 2004-05-13 Umadevi S <sumadevi@novell.com>
1431 * RelationshipConverter.cs - Stubbed this class
1432 * DataRelation.cs - added TypeConveterAttribute
1434 2004-05-13 Umadevi S <sumadevi@novell.com>
1436 * DataColumnCollection.cs - Added ResDescriptionAttribute
1437 * DataRelation.cs - Added TypeConverterAttribute
1438 * DataRelationCollection.cs - Added DefaultPropertyAttribute
1439 * DataRowView.cs - Added GetHashCode method with a TODO tag
1440 * DataSet.cs - Added DesignerAttribute
1441 * DataView.cs - Added DesignerAttribute
1442 * DataViewManager.cs - Added DesignerAttribute
1443 * DataViewSetting.cs - Added TypeConverterAttribute
1445 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
1447 * DataRow.cs : Added XmlDataElement initialization code.
1449 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
1451 * XmlDataInferenceLoader.cs :
1452 It now requires XmlDocument as input. Improved identification of
1453 DataSet element. Removed extra lines.
1454 Moved boresome design notes to bottom of the source and
1455 added standalone runnable driver (not included on build).
1457 Update with related to the change above.
1458 WriteXml() should call Flush() after writing. This fixes bug #58327.
1459 * XmlSchemaDataImporter.cs :
1460 Improved indentification of DataSet element.
1462 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
1463 * DataTable: marked initStatus enum internal
1465 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
1466 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
1468 * DataRowView.cs: removed extra Error property
1469 * DataRow.cs: reduced accessibility of CollectionChanged method
1471 * DataColumnPropertyDescriptor.cs: made class internal
1472 * DataColumn.cs: removed extra TypeConvertorAttribute
1473 * ConstrainCollection.cs: marked PostEndInit method internal
1475 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
1478 In WriteXmlSchema(), when complex type contains simple type content
1479 attributes must not added to XmlSchemaComplexType directly. It
1480 causes schema compilation error.
1481 DataRelation should not be output when related columns are hidden.
1483 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
1485 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
1486 also expected to do ReadXml(), but I will remove that feature and
1487 support column reordering).
1488 * XmlSchemaDataImporter.cs : Always initialize dataset name.
1489 Always set Nested and primary key for parent table.
1490 * XmlDataReader.cs : Now it is used.
1491 Top level element might not match to dataset name nor any table
1492 name, but still possible to read content tables.
1493 Handle empty element correctly in some places.
1494 Handle Fragment mode (read up XmlReader to the end).
1495 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
1496 XmlDataInferenceLoader and XmlDataReader.
1498 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
1501 Eliminated CRLF injection.
1502 More clear message in Clear().
1503 Updates reflecting XmlSchemaDataImporter change.
1504 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
1505 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
1506 but that depends on different behavior from ms.net).
1507 Set locale also for DataTable.
1508 Add xs:element only when target namespace matches to the
1509 element's namespace. Otherwise, add xs:import for external namespace.
1510 Put xs:sequence for dataset element's particle _only when_ actual
1513 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
1515 * XmlDataReader.cs : Added. This class will work better when our
1516 schema inference and schema read engine gets improved. (It contains
1517 standalone testable Driver class.)
1519 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
1521 * ForeignKeyConstraint.cs : Check step change. Existence then column
1522 validity. just for tests.
1523 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
1526 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1528 * DataSet.cs : Ignore empty content only when output type is diffgram.
1530 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1532 * CustomDataClassGenerator.cs : Modified that DataSet contains each
1533 DataTable field so that each table property can access them directly.
1534 (plus, modified standalone code driver code: shouldn't affect)
1536 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
1538 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
1540 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1542 * XmlSchemaDataImporter.cs :
1543 SimpleContent column support.
1544 Annotated relation support.
1545 Top-level element is counted only when its type is complex.
1546 xs:anyType is no longer treated as complex type.
1547 dataset existence is mandatory now.
1548 Improved DataType and DefaultValue support.
1549 Attribute namespace is properly handled now.
1550 Prohibited attribute is now treated as hidden column.
1551 Reject list or union simple type.
1553 Still incomplete 1) to read relationship in some cases, 2) to
1554 determine whether an element is dataset or table, 3) thus to
1555 exclude extraneous column, 4) to remove extraneous *_Id column.
1557 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1560 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
1561 serialization .ctor() (thus schema read/inference should be easier).
1562 DataRowSorter should consider Table's Locale.
1564 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1566 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
1567 use it instead of duplicating logic.
1569 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1571 * ConstraintCollection.cs :
1572 Use Table.CaseSensitive and Table.Locale to compare strings.
1573 Duplicate constraint name exception does not occur under .NET 1.1.
1575 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
1577 * XmlSchemaDataImporter.cs: Added little type check.
1579 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
1581 * DataSet.cs: Implemented support for runtime serialization. Fixed support
1582 for xml serialization.
1583 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
1585 2004-04-30 Umadevi S <sumadevi@novell.com>
1586 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
1587 * DataTableCollection.cs : Tested and removed TODO
1588 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
1590 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
1592 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
1594 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1596 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
1597 constraint is defined on single column.
1599 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
1601 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
1602 not ArgumentException (maybe changed after 1.1).
1604 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
1606 * DataRow.cs : When Column was added and it was AutoIncrement column,
1607 it extended the item object array incorrectly.
1608 (Plus tiny comment and incorrect indentation fix.)
1610 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1612 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
1614 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1616 * DataRow.cs : Bug fix in CopyValuesToRow().
1618 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1620 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
1621 each of the columns should not be unique, but only all the constraint's columns together.
1623 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
1626 - Added using of list of autoIncrement columns
1627 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
1628 - Fix in CheckNullConstraints
1629 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
1630 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
1631 - Added onColumnRemoved() method to threat column removal accurately.
1633 * DataRowCollection.cs :
1634 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
1635 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
1638 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
1640 * DataColumnCollection.cs :
1641 - Perfomance fixes :
1642 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
1643 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
1644 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
1647 - Uses autoincrement list of a table
1649 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
1651 * XmlDataLoader.cs : Even when it should ignore schema, it was
1653 * XmlSchemaDataImporter.cs : DataRelation creation support.
1654 Improved "DataSet" element handing. When attributes are on the
1655 element, it is not a "DataSet" element.
1656 Fixed parent key column name.
1657 Unique name creation is not required. Just raise an error.
1658 Fill facet also for attribute types.
1660 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
1662 * DataRow.cs : Null check for CheckReadOnlyStatus() and
1663 CheckNullConstraints(), with some coding guideline fixes.
1664 Type check should be done by Type instance comparison.
1666 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
1668 * DataColumnCollection.cs : When add a column to the collection, fill
1669 auto-increment column.
1671 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
1673 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
1675 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
1677 * CustomDataClassGenerator.cs : Added.
1678 * TypedDataSetGenerator.cs : Implemented Generate().
1679 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
1680 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
1682 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
1684 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
1686 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
1688 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
1690 2004-04-23 Umadevi S (sumadevi@novell.com)
1691 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
1692 - Added error handling to the above methods
1694 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
1696 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
1697 the support is incomplete yet).
1698 * XmlDataLoader.cs :
1699 Reverted ReadModeSchema() argument change. XmlReadMode would be
1700 useful to handle IgnoreSchema.
1701 Don't overwrite DataSetName when mode is not such kind.
1702 Set Prefix and Namespace as well as DataSetName.
1703 AllowDBNull looks set false by default for element column.
1704 Set unique constraint as primary key when infering the table schema.
1706 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
1709 Never set null string for Prefix and Namespace.
1710 In InferXmlSchema() when null XmlReader is passed, just do nothing.
1711 In WriteXmlSchema(string), earlier try block.
1712 In BuildSchema(), try to add serialization namespaces for each
1713 namespaces in DataSet/DataTable/DataColumn.
1714 Removed namespace argument from WriteColumnAsElement() and don't
1715 overwrite when namespace is "". This fixes bug #57330.
1716 * DataColumn.cs : For Namespace and Prefix, never set null.
1718 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
1720 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
1721 before creating and adding foreign key constraint and relation.
1723 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
1725 * MergeManager.cs : In AdjustSchema() source table clone should be added
1726 and not the table itself.
1728 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
1731 - CaseSensitive : Additional fix (removed unnesessary assignment).
1732 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
1734 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
1736 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
1738 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
1741 - EndLoadData() : perfomance fix in case of null constraint violation
1742 during data load (also in DataRow.cs).
1743 - CaseSensitive : If DataTable belongs to DataSet it should always use
1744 DataSet.CaseSensitive untill explicitly changed.
1745 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
1748 - Pefromance fix in case of null constraint violation
1749 during data load (also in DataTable.cs).
1750 - CollectionChanged() : use correct column number after new DataColumn was added
1751 (differs in case some DataColumn was previosly removed).
1752 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
1754 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
1756 * DataColumnCollection.cs : Since unique constraint is added now
1757 in DataColumn.SetTable() the additional creation of constraint in
1758 DataColumnCollection.Add() is redundant and causes exception - fixed.
1760 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
1762 * XmlDataLoader.cs : Added "never add data rows" mode.
1763 Removed unused code. However, it is temporary fixes to unify
1764 ReadXml() and InferXmlSchema().
1765 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
1767 I'll create another XmlDataLoader since there are many problems
1768 such that 1) it is too waste to read the entire xml into an
1769 XmlDocument, 2) it does not handle attributes correctly, and 3) it
1770 must handle "ignored namespaces".
1772 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
1774 * Added XmlSchemaDataImporter.cs (new schema reader).
1775 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
1776 for ReadXmlSchema().
1777 Let schema reading work to ReadXmlSchema().
1778 Don't return ReadSchema when argument read mode was DiffGram.
1780 2004-04-15 Umadevi S (sumadevi@novell.com)
1781 * Updated Clone/Copy methods in DataSet along with Testcase
1782 * ForeignKeyConstraint.cs - special ctor implemented
1783 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).
1784 * Changes in ConstraintCollection.cs for the above
1785 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.
1788 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
1790 * XmlSchemaMapper.cs : set parent key and foreign key info to
1791 DataRelation when reading refkey constraints.
1792 Supply constraint name for fkey.
1794 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
1796 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
1797 mode is Auto, just ignore the schema if there is already schema info.
1798 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
1800 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
1803 - In MS output, XML declaration looks to have standalone decl (yes).
1804 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
1805 - ReadXml(reader, mode)
1806 1) return originally specified mode, instead of (always) Auto.
1807 2) Check empty reader.
1808 3) Check diffgram schema and content separately.
1809 4) When diffgram exists, remaining (the same-level) contents
1811 5) Similar fact should be applied, but somewhat different.
1812 InferSchema and IgnoreSchema just skips, Fragment reads both
1813 schema and content, others just reads schema.
1814 - Removed unused code.
1815 * XmlDataLoader.cs :
1816 - Read() should skip in some ReadMode.
1817 - Don't compare schema element name as case-insensitive (well,
1818 should schemas be checked here?)
1819 - Avoided BuildDocument() not to create confusing DataSet
1821 - Don't add any tables when reader has single element.
1822 * XmlDiffLoader.cs :
1823 When target table was not found, MS.NET doesn't raise an error.
1824 * XmlSchemaMapper.cs :
1825 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
1827 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
1830 - InferXmlSchema(): Throw explicit NotImplementedException now.
1831 - Don't put XML declaration everywhere. Write just for filename arg.
1832 - xmlns="" should not be written. Maybe WebService problem is
1833 because default namespace is overwritten. This patch will keep
1834 the WS problem away and actually fixes some unit tests (i.e. use
1835 explicit String.Empty for null namespace in WriteStartElement()).
1836 - MoveToContent() should always be called, not only when
1837 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
1838 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
1839 element. As to MSDN, diffgram does not contain schema.
1841 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1843 * DataTable.cs: made _initStatus private so that System.Data is CLS
1846 2004-04-13 Umadevi S <sumadevi@novell.com>
1847 * UniqueConstraint.cs:
1848 * ConstraintCollection.cs:
1850 - Implemented a Constructor for UniqueConstraint.cs
1851 - Used EndInit on DataTable to call a delegate which adds the
1852 constraints passed to the most recent call of AddRange().Used
1853 AddRange() on ConstraintCollection to check whether
1854 DataTable.BeginInit has occurred. If yes, save the argument
1855 constraint collection passed, then return. If no, Check whether the
1856 constraints are of type UniqueConstraint and initialized with the
1857 special constructor If yes Initialized the table property of this
1858 UniqueConstraint object with table assosciated with the current
1859 instance of ConstraintCollection class.
1861 2004-04-07 Marek Safar <marek.safar@seznam.cz>
1863 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
1865 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1868 * DataColumnCollection.cs:
1869 * DataRelationCollection.cs:
1870 * DataRowCollection.cs:
1871 * DataTableCollection.cs:
1872 * InternalDataCollectionBase.cs:
1873 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
1876 2004-04-05 Jackson Harper <jackson@ximian.com>
1878 * DataTable.cs: Add rows to the row list if there is no filter.
1880 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
1882 * DataColumn.cs : Setting Caption to null sets it to the empty string
1883 (ms.net behaviour, testcase is in DataColumnTest).
1885 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
1888 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
1890 * DataColumn.cs: In Expression setter, set the expression member even if
1891 it is an empty string.
1892 * DataSet.cs: Support serialization of byte[] columns.
1893 * XmlDataLoader.cs: Support deserialization of Guid columns.
1894 Set MappingType.Attribute to columns infered from attributes.
1896 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
1898 * ExpressionElements.cs : remove
1899 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
1900 Integration of new Mono.Data.SqlExpressions classes used in
1901 DataTable.{Select, Compute}.
1902 Fixes bug #55503 and lots of failures in DataTableTest.cs.
1904 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
1906 * Index.cs: Simple fix in ComparePartialRowNonUnique.
1907 This fixes bugs #56129 and #56014.
1909 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
1911 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
1912 stream after writing the dataset. This fixes bug #52581.
1913 Also added several writer.Close into finally blocks, so writers are properly
1914 closed in case of an exception.
1916 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1918 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
1919 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
1920 * ColumnTypeConverter.cs: Added stub
1921 * DefaultValueTypeConverter: Added stub
1922 * ConstraintConverter.cs: Added stub
1924 2004-03-04 Eran Domb <erand@mainsoft.com>
1926 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
1927 in MS.NET documentation (missing DataSet element etc).
1929 2004-03-04 Eran Domb <erand@mainsoft.com>
1932 * Index.cs : Rollback last changes.
1934 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
1936 * Index.cs : justa build fix.
1938 2004-03-03 Eran Domb <erand@mainsoft.com>
1941 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
1942 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
1943 This changes made for performance improvement.
1945 2004-02-08 Eran Domb <erand@mainsoft.com>
1947 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
1949 2004-02-08 Eran Domb <erand@mainsoft.com>
1951 * DataSet.cs: Fix some bugs in ReadXml().
1953 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1955 * DataSet.cs: Added missing method that broke the build.
1957 2004-02-04 Eran Domb <erand@mainsoft.com>
1959 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
1961 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
1962 when all column are attributes (elements count is 0), we still want to add the relations. No relations
1963 can be on simple contents.
1964 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
1965 (AddForeignKeys) Check that the relation has constraints attach to it.
1966 * XmlConstants.cs : Added constant.
1968 2004-02-04 Eran Domb <erand@mainsoft.com>
1970 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
1971 DoWriteXmlSchema calls BuildSchema ().
1973 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1975 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
1977 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
1979 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
1980 also be added to the dataset.
1981 In WriteTable(), do not write unchanged rows when writing the original
1982 version of the table.
1983 Added WriteIndividualTableContent(), for writing the contents of a single
1985 Changed BuildSchema and related methods, so it can generate a schema for
1986 any set of tables, not just the tables of the dataset (needed for
1987 single datatable serialization).
1988 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
1989 Also implemented some ReadXmlSchema methods.
1990 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
1991 instead of loading the full dataset in an XmlDocument. It is faster and
1992 saves memory. Also fixed several problems when generating the changes.
1993 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
1994 table serialization).
1996 2004-02-02 Eran Domb <erand@mainsoft.com>
1998 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
1999 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
2000 * DataTable.cs (NewRow): Create only one DataRowBuilder.
2001 Initiate new row with row id -1.
2002 * DataRow.cs : Add RowId property.
2003 * DataRowBuilder.cs : Add _rowId member.
2004 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
2006 2004-01-26 Eran Domb <erand@mainsoft.com>
2008 * XmlConstants.cs : Added some constants.
2009 * DataColumn.cs : Added a method to retrive AutoIncrement value.
2010 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
2011 parent table column.
2012 * XmlDiffLoader.cs : Convert the value comming from the xml.
2013 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
2014 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
2015 (ReadXmlSchemaElement) : Set the locale of the dataset.
2016 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
2017 (GetColumnType) : New method to get the column type from the attribute value.
2018 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
2019 and add the constraint to the table.
2020 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
2022 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
2023 Writing more information to the schema for interoperability with ms.net.
2024 Improve diffgarm writing mode.
2027 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
2029 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
2031 2004-01-21 Eran Domb <erand@mainsoft.com>
2033 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
2034 Do not set the child column to be AutoIncrement.
2035 Create the new column for the relation as MappingType.Hidden so they will not be serialized
2036 when writing the dataset to xml.
2038 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
2040 * Added missing TypedDataSetGenerator.cs.
2042 2004-01-08 Eran Domb <erand@mainsoft.com>
2044 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
2045 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
2046 InferSchema, ReadSchema and IgnoreSchema.
2047 * XmlDataLoader.cs : All modes use the same logic.
2048 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
2050 2004-01-06 Eran Domb <erand@mainsoft.com>
2052 * DataRelationCollection.cs : Use IndexOf in indexer.
2053 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
2054 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
2055 * XmlDiffLoader.cs : Reading nested tables.
2056 * XmlSchemaMapper.cs : Reading the relation.
2057 * XmlConstants.cs : Adding some constants.
2059 2004-01-05 Jackson Harper <jackson@ximian.com>
2061 * DataView.cs: Set readonly property of property descriptor. This
2064 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
2066 * DataRelationCollection.cs : Fixed incorrect generation of default
2068 * DataSet.cs : Added missing functionality in WriteXml().
2069 * XmlConstants.cs : Added new constants.
2071 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
2073 * DataSet.cs : Fixed incorrect WriteXml() signature.
2075 2003-12-18 Jackson Harper <jackson@ximian.com>
2077 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
2079 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
2081 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
2082 they take shape of xml. This fixed bug #52240
2084 2003-12-16 Tim Coleman <tim@timcoleman.com>
2085 * KeyRestrictionBehavior.cs:
2086 New stubs added for .NET 1.2
2090 2003-12-08 Eran Domb <erand@mainsoft.com>
2091 * DataColumn.cs (Expression) : Validate the expression.
2093 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
2094 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
2096 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
2097 (RejectChanges) : Detach row when state was Added.
2098 (CollectionChanged) : Fix a bug.
2100 * ExpressionElement (ValidateExpression) : Fix a bug.
2102 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
2103 a parent row in the parent table.
2104 (_validateColumns) : Fix bugs.
2106 * MergeManager.cs (AdjustSchema) : Fix a bug.
2108 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
2111 2003-11-30 Eran Domb <erand@mainsoft.com>
2112 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
2113 (Add) : Find if the new column name is the same as the one found in IndexOf.
2114 (IndexOf) : New method.
2115 (Contains) : Use new IndexOf.
2116 (IndexOf) : Use new IndexOf.
2118 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
2119 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
2121 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
2122 (Delete) : Detach row if the RowState was Added.
2123 (GetChildRows) : Get the array form the ChildTable.
2124 (GetParentRows) : Get the array from the ParenTable.
2126 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
2128 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
2130 * DataTable.cs (PrimaryKey) : Fix bugs.
2131 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
2133 * DataTableCollection.cs (Add) : Fix a bug.
2135 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
2136 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
2137 Some code style changes (tab instead of whit spaces, alignment, etc...).
2139 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
2141 * MergeManager.cs (AdjustSchema) : Fix a bug.
2145 2003-11-26 Miguel de Icaza <miguel@ximian.com>
2147 * DataSet.cs: Add a few more missing methods, code style updated
2150 2003-11-26 Tim Coleman <tim@timcoleman.com>
2152 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
2153 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
2154 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
2155 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
2156 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
2157 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
2158 * StatementCompletedEventHandler.cs UpdateOptions.cs:
2159 New classes added for NET_2_0
2160 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
2161 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
2162 Modifications to add new NET_2_0 functions
2164 2003-11-25 Tim Coleman <tim@timcoleman.com>
2168 2003-11-21 Pedro Martínez Juliá <yoros@wanadoo.es>
2170 * DataRow.cs: Detached row can be accesible (new rows from data
2171 table are detached). Closes but #51263.
2173 2003-11-19 Eran Domb <erand@mainsoft.com>
2174 * DataRow.cs : Throw exceptions if Row is Detached.
2175 (EndEdit) : Check that we are not in middle of ChangeEvent.
2176 (AcceptChanges) : Detach the row.
2178 * DataRelation.cs : throw correct exception.
2179 *UniqueConstraint.cs : throw correct exception.
2182 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
2184 * DataRow.cs: Use RemoveInternal instead of Remove because the last
2185 one uses Delete and AcceptChanges.
2187 * DataRowCollection.cs: When removing, Delete and AcceptChanges
2188 method from the row are called. Added an internal method that will
2189 be used by DataRow to "physically" remove the row from the list.
2191 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
2193 * DataRowCollection.cs: To follow the specification: Remove and
2194 RemoveAt should remove the row. But needed to call DeletingDataRow
2195 to prepare the deleting.
2197 * DataRow.cs: Don't call DeletingDataRow when it is called by the
2198 method Table.Rows.Remove.
2200 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
2202 * DataRowCollection.cs: Make the row be deleted by itself. If not,
2203 it fails because we need to call OnRowDeleting and OnRowDeleted. It
2204 is full implemented inside DataRow.
2206 2003-11-05 Eran Domb <erand@mainsoft.com>
2207 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
2209 2003-11-04 Eran Domb <erand@mainsoft.com>
2210 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
2212 (GetChildRows) : Adding some checks.
2213 (GetParentRows) : Adding some checks. Fix a bug in implementation.
2214 (SetParentRow) : Added implementation.
2216 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
2217 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
2218 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
2219 * MergeManager.cs : Check that the target table is not null.
2221 2003-10-27 Eran Domb <erand@mainsoft.com>
2222 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
2223 can be converted to the column type.
2225 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
2227 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
2228 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
2230 * DataRowCollection.cs (Add) : Fixing a bug.
2231 (Clear) : Before clearing the array check that there is no violation of FK constraint.
2233 * DataSet.cs (Prefix) : If value is null chage it to empty string.
2234 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
2236 * ExpressionElement : Adding support for IN expresion.
2238 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
2239 (Select) : Adding support for DataViewwRowState.
2241 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
2243 * MergeManager.cs (MergeRow) : Fix bugs.
2245 2003-10-27 Eran Domb <erand@mainsoft.com>
2246 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
2247 check null values when ending loading data.
2249 * DataSet.cs (RejectChanges) : Imlementation.
2250 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
2251 change it to empty string.
2253 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
2255 2003-10-22 Eran Domb <erand@mainsoft.com>
2256 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
2258 * ConstraintCollection.cs (RamoveAt): Change implemntation.
2260 * DataTableCollection (CanRemove): Removing cast to Constraint.
2262 2003-10-22 Eran Domb <erand@mainsoft.com>
2263 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
2264 (Clear): The collection was cleared without removing the relation from the parent and child tables.
2266 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
2267 (HasChanges, Reset): Imlementation.
2269 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
2270 This is because the we do not no when to turn off the flag.
2271 (Locale): Changing implementation to behave like ADO.NET.
2272 (AcceptChanges): Fix bug.
2273 (Clear): Check that this table is not referenced from a foreign key constraint.
2274 (Copy): Do not try to access a deleted row.
2275 (CopyProperties): Copy the PrimaryKey.
2276 (GetChanges, ImportRow): Implementation.
2277 (LoadDataRow): Adding implementation if the table has PrimaryKey.
2278 (ToString): Changing implementation to behave like ADO.NET.
2280 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
2282 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
2283 (HasErrors): Implementation.
2284 (Delete): Added checking for child rows of the deleted row.
2285 (EndEdit): Added checking for child row and firing events.
2286 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
2287 (GetColumnsInError): Added a check for null values in column error.
2288 (HasVersion): Added special treatment for special RowState.
2289 (CollectionChanged): More checks to avoid NullReferenceException.
2291 * DataRowCollection.cs (Remove): Fix a bug.
2294 2003-10-01 Duncan Mak <duncan@ximian.com>
2296 More patches from Eran Domb <erand@mainsoft.com>.
2298 * MergeManager.cs: New file.
2300 * DataRelationCollection.cs (AddCore): Check that a
2301 UniqueConstraint is already exists. It loops over the Relations
2302 instead of the Constraints.
2303 (Add, AddCore): The relation was added twice.
2305 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
2307 2003-09-30 Duncan Mak <duncan@ximian.com>
2309 Patches from Eran Domb <erand@mainsoft.com>.
2311 * DataRelation.cs (constructor): When the name of the relation is
2312 null, it should return an empty, not "Relation".
2314 * DataRow.cs (AcceptChanges): Added special case for
2316 (CancelEdit): Set editing flag to false.
2317 (IsNull): Check that the value is DBNull.
2319 * DataRowCollection.cs (Add): There was no check that the table of
2320 the collection is owned by a DataSet.
2322 * DataSet.cs (OnMergeFailed): Added.
2324 * UniqueConstraint.cs (AssertConstraint): There was no check that
2325 values in the row are not null, where it is a primary key
2326 column. Also check that the row has a proposed version, if not,
2327 get the current version when we compare the rows.
2329 2003-09-25 Duncan Mak <duncan@ximian.com>
2331 Patches from Eran Domb <erand@mainsoft.com>.
2333 * DataColumn.cs (Unique): Implemented.
2336 * ConstraintCollection.cs:
2337 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
2338 an Exception thrown. Details:
2339 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
2341 * DataRowCollection.cs (Add): There is no checking that there is
2342 no violation of the unique constrains.
2344 * UniqueConstraint.cs (AssertConstraint): There is no checking on
2345 all columns in the constraint.
2347 * DataTableCollection (Add): Correctly throw an Exception, more
2349 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
2350 (Remove, RemoveAt): Implemented.
2352 2003-07-31 Duncan Mak <duncan@ximian.com>
2354 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
2356 2003-07-25 Ravi Pratap <ravi@ximian.com>
2358 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
2359 method on a delegate is disallowed - fix this.
2361 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
2363 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
2364 xml serialization. Modified method of writing schema. Now it creates
2365 a XmlSchema object and serializes it using XmlSerializer.
2366 * XmlConstants.cs: Added constants for data type names.
2367 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
2368 type specified in the column.
2370 2003-04-20 Alan Tam <Tam@SiuLung.com>
2372 * DataRelationCollection.cs: Fix a bug that prevent relations
2373 from being added via DataSet.
2375 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
2377 * UniqueConstraint.cs: one tiny fix.
2379 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
2381 * DataTable.cs: Remove UniqueConstraints when adding new ones
2383 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
2385 * DataColumnCollection.cs: Little 'case sensitive' fix
2387 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
2389 * DataRow.cs: AutoIncrement handling to Constructor
2390 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
2392 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2394 * DataTable.cs: Some fixes to PrimaryKey etc...
2395 * UniqueConstraint.cs: Little clean up
2397 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2399 * DataTable.cs: Tiny fix to ToString () -method
2401 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2403 * ConstraintCollection.cs: Little fix.
2404 * DataColumn.cs: Added new internal method SetUnique()
2405 * UniqueConstraint.cs: some little fixes
2407 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
2409 * DataRowCollection.cs: Bugfixes, implementation,...
2411 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
2413 * DataColumn.cs: If DataType if set to something else than short, int
2414 or long and AutoIncrement is true, AutoIncrement is must set to false.
2416 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2419 (BeginEdit): fixed array bound problem when a column has been added.
2420 (EndEdit): just assign proposed to current as proposed is set to null.
2421 This also fixes another array boudn problem.
2423 2003-03-21 Alan Tam <Tam@SiuLung.com>
2425 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
2426 EndEdit and AcceptChanges to act correctly according to DataRowState
2428 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
2429 attached and detached from the collection.
2431 2003-03-20 Alan Tam <Tam@SiuLung.com>
2433 * DataColumn.cs: Store empty string for Expression when null is passed in.
2434 Classes generated by XSD.exe passes null by default.
2436 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
2438 * DataColumnCollection.cs: Tiny clean up
2440 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
2442 * DataColumn.cs: little fixes.
2443 * DataColumnCollection.cs: Lots of little fixes and improvments.
2445 2003-03-12 Alan Tam <Tam@SiuLung.com>
2447 * DataSet.cs: Fixed a bug that the file written does not close correctly.
2449 2003-03-08 Alan Tam <Tam@SiuLung.com>
2451 * DataRelationCollection.cs: Removed the mis-overridden methods
2452 * DataRow.cs: Fixed an attribute
2453 * DataSet.cs: Fixed the modifiers
2455 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
2457 * DataTableCollection.cs: The Contains (string name),
2458 IndexOf (string name) methods, and item[string name] indexer
2459 now behave more like .NET with respect to case-sensitivity.
2460 That is if there is an exactly matching item then this one is used.
2461 If there is only one item differing in case then it used.
2462 If there are more than one item differing in case then
2463 Contains returns false, IndexOf returns -1, and item[]
2464 throws an ArgumentException.
2466 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
2468 * ExpressionElement.cs: More implementation.
2470 2003-02-28 Alan Tam <Tam@SiuLung.com>
2471 * DataSet.cs: Changed WriteTable so that it now calls the newly written
2472 WriteObjectXml to direct the call to the respective XmlConvert method.
2473 This fixes the wrong format written to XML files of bool, float,
2474 double, DateTime and TimeSpan types.
2476 2003-02-25 Alan Tam <Tam@SiuLung.com>
2478 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
2479 * DataRelationCollection.cs: Implemented AddRange and Contains.
2480 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
2481 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
2482 Reimplemented most Add methods to eliminate duplicated checks.
2483 Centralized RelationName generation procedure in GetNextDefaultRelationName.
2485 2003-02-25 Alan Tam <Tam@SiuLung.com>
2487 * DataColumn.cs: Fixed wrong storage representation of Expression
2488 (using empty string instead of null) so that ToString() returns nothing.
2489 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
2490 auto column naming now works as expected. Reimplemented some Add methods
2491 to eliminate code duplication.
2493 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
2495 * DataTable.cs: DataTable.CaseSensitive follows parent
2496 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
2497 been changed directly from DataTable
2499 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
2501 * DataSet.cs: When CaseSensitive property is changed all of the Tables
2502 of DataSet have to change too
2504 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
2506 * InternalDataCollectionBase.cs: revert change to field
2509 * DataViewManager.cs
2512 * DataSet.cs: commented use of DesignerAttribute
2513 because it broke the build. According to MSDN,
2514 DesignerAttribute does not have a zero-argument constructor
2516 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
2518 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
2520 2003-02-18 Alan Tam <Tam@SiuLung.com>
2522 * DataRow.cs: Implemented GetParentRow and GetParentRows.
2523 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
2524 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
2525 RaisePropertyChanging.
2526 * DataTable.cs: Implemented NewRowArray.
2527 * DataTablePropertyDescriptor: Fixed a modifier.
2528 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
2529 * PropertyCollection.cs: Minor fix.
2530 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
2531 * DataRelation.cs DataRelationCollection.cs DataRow.cs
2532 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
2533 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
2534 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
2535 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
2536 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
2538 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
2540 * ExpressionElement.cs: More implementation
2542 2003-02-05 Alan Tam <Tam@SiuLung.com>
2544 * DataSet.cs: Added framework for DataSet.Update Implemented missing
2545 methods GetSchemaSerializable, GetSerializationData,
2546 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
2548 * DataTable.cs: Implemented missing methods CreateInstance and
2549 GetRowType for DataTable
2551 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
2553 * DataSet.cs: Implemented private method MapType for
2554 mapping datatypes for XmlSchema
2556 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2558 * DataView.cs: implemented Dispose.
2560 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
2562 * ExpressionElement.cs: Added new file. This file is for parsing
2563 and DataData.Select () -methods and DataColumn.Expression -property
2564 * DataTable.cs: Implemented Select(string) -method
2566 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
2568 * DataSet.cs: One little fix to writing xml
2570 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
2572 * XmlSchemaMapper.cs: Some fixes.
2573 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
2576 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
2578 * UniqueConstraint.cs: Do not set columns Unique property true
2580 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
2582 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
2584 * DataTableCollection.cs: Now names new DataTable if it doesn't
2585 already have a name.
2587 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
2589 * XmlSchemaMapper.cs: Improvments.
2590 * XmlConstaints.cs: Added more constants.
2591 * DataSet.cs: Improvments of reading and writing xml
2592 * DataColumn.cs: Added default values of properties.
2594 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
2596 * XmlSchemaMapper.cs: Some improvments
2598 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
2600 * DataRowCollection.cs: Added IndexOutOfRangeException
2601 * DataTableCollection.cs: Added OnCollectionChanging and
2602 OnCollectionChanged events.
2603 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
2604 * DataTable.cs: Implemented Copy () and Clone () methods.
2605 * XmlDataLoader.cs: some fixes.
2606 * XmlSchemaMapper.cs: comments.
2608 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2610 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
2612 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2614 * DataColumnPropertyDescriptor.cs: fixed typo.
2615 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
2616 to get the DataViewManager and removed TablePD class.
2617 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
2618 suggested by danmorg.
2620 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
2622 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
2624 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
2625 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
2627 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2629 * DataView.cs: made dataViewManager internal.
2630 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
2631 properties of the object, but the values of the columns present in a
2634 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
2635 which returns a PropertyDescriptorCollection. Created a new class
2636 derived from PropertyDescriptor that treats Table as an object whose
2637 properties are DataRowView.
2639 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
2641 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
2643 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
2645 * DataColumn.cs: ExtendedProperties is by default !null-
2647 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
2649 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
2650 set column's ordinal.
2652 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
2655 * XmlDataLoader.cs: XmlReader closing fixes.
2656 * XmlSchemaReader.cs: Added support for ref=
2658 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
2661 - Added XmlReader and XmlWriter Closing.
2662 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
2663 * XmlSchemaMapper.cs
2664 - Much better way IMHO to map xmlschema than the old one in
2665 DataSet.cs. Its, more flexible, cleaner, ...
2667 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
2669 * XmlDataLoader.cs: Reading diffgrams.
2671 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
2673 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
2674 * DataTable.cs: Added ChanginDataColumn () for triggering
2675 DataColumnChanging event
2677 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
2679 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
2681 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
2683 * DataSet.cs: Indentations to WriteXml ()
2685 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
2688 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
2689 class XmlDataLoader.cs
2691 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
2693 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
2695 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
2697 * DataSet.cs: Started to implement ReadXml-methods.
2699 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2701 * DataSet.cs: implemented DefaultViewManager and GetList.
2703 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
2704 DataList in System.Web.
2706 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
2709 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
2712 * DataTable.cs: Fixed NullException (rollback -event)
2713 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
2715 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
2718 * DataRowCollection.cs: Moved event triggering from DataRow to
2721 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
2723 * DataSet.cs: Little fix to WriteTable () -method
2724 and DoReadXmlSchema () -method.
2726 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
2728 * DataSet.cs: Clean up to reading xmlschema. This looks much better
2729 now (work better too), but it not working correctly yet.
2731 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
2734 * DataRowCollection.cs: Added some event handlins stuff.
2735 * DataSet.cs: Some fixes.
2736 * DataTable.cs: Added event handlers.
2738 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
2740 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
2742 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
2744 * System.Data/DataRow.cs: Added internal property XmlDataID
2746 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
2748 * DataSystem.Data.DataTableCollection.cs:
2749 Removed HashTable. There could be situations where DataTable
2750 is added to collection before it hava TableName. So using
2751 HashTable is impossible.
2753 2002-11-19 Carlos Guzmán Álvarez <carlosga@telefonica.net>
2755 * DataRow.cs: an object that is equal to null
2756 should be allowed to be set in this indexer too
2759 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
2761 * DataColumnPropertyDescriptor.cs: added file
2763 * System.Data/DataRowView.cs: started implementation
2765 * DataTable.cs: stubbed more interfaces. Implemented
2766 IListSource.GetList()
2768 * DataView.cs: stubbed more interfaces. Implemented
2769 some properties and methods: GetEnumerator(),
2770 ITypedList.GetItemProperties, Item indexer, CopyTo()
2772 2002-05-18 Nick Drochak <ndrochak@gol.com>
2774 * DataRow.cs: Fix typo.