1 2005-10-20 Atsushi Enomoto <atsushi@ximian.com>
3 * XmlSchemaWriter.cs : escape names in the schema with XmlConvert.
6 2005-10-14 Sureshkumar T <tsureshkumar@novell.com>
8 * DataView.cs: Correct multiple throwing of events. Patch from
10 (RowStateFilter): Fire ListChangedEvent.
11 (ApplyDefaultSort): Fire ListChangedEvent.
12 (CompleteLastAdded): call UpdateIndex to remove the row from rowCache.
13 (IBindingList.Find): Implemented.
15 2005-10-11 Sureshkumar T <tsureshkumar@novell.com>
17 * DataView.cs (IBindingList): Implemented methods for IBindingList interface.
19 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
21 * DataSet.cs: In IXmlSerializable.GetSchema, return null again for
22 untyped datasets. Fixes bug #76101.
24 2005-09-21 Boris Kirzner <borisk@mainsoft.com>
25 * DataRow.cs: Fixes for index updating.
27 - Reset case-sensitive indexes also if their filter contains columns
29 - Use GetIndex instead of FindIndex, so the indexes created in Select()
31 * RelatedDataView.cs: implement IExpression.Equals() and GetHashCode().
33 2005-09-20 Sureshkumar T <tsureshkumar@novell.com>
35 * DataView.cs (Sort): Apply default Sorting Order if Sort property
36 is reset to null. Sort property handles this. Patch from Marc.
38 * DataTable.cs (ParseSortString): Patch from Marc Haisenko for
39 allowing [ & ] in DataView.Sort string.
41 2005-09-01 Boris Kirzner <borisk@mainsoft.com>
42 * System.Data/DataRowCollection.cs: indexes should be updated even if
43 EnforceConstraints is false. Check for EnforceConstraints in
44 ValidateDataRowInternal.
46 2005-08-08 Gert Driesen <drieseng@users.sourceforge.net>
48 * DataView.cs: Changed accessibility of dataTable, rowState and
49 rowCache field to internal to fix public API. Assigned TypeConverter
51 * ForeignKeyConstraint.cs: IsConstraintViolated is now internal.
52 * Constraint.cs: IsConstraintViolated is now internal.
53 * UniqueConstraint.cs: IsConstraintViolated is now internal.
55 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
57 * XmlSchemaDataImporter.cs : When "dataset element" has identity
58 constraints, then first reserve constraints room for them and then
59 process elements, skipping pkey creation if there is already
60 reserved one. Fixed bug #75711.
62 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
64 * XmlDataInferenceLoader.cs : in GetElementMappingType(), don't guess
65 the same (QNamed) element again when it was already evaluated as
66 not simple type. Fixed one part of bug #75711.
68 2005-08-02 Boris Kirzner <borisk@mainsoft.com>
69 * XmlSchemaDataImporter.cs : Data relations should be processed after the
70 keys, so no redundant constraints created while relations processing.
72 2005-07-25 Boris Kirzner <borisk@mainsoft.com>
73 * FillOptions.cs, ConflictOptions.cs, UpdateOptions.cs:
74 added ifdef TARGET_JVM.
76 2005-07-22 Sureshkumar T <tsureshkumar@novell.com>
78 * DataViewSettingCollection.cs, DataTableCollection.cs,
79 DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
80 DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
81 DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
82 - updated attributes & attribute descriptions to match with
85 * DataView.cs: changed protected members
86 rowstate,rowcache,dataTable to protected internal.
87 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint.cs:
88 changed InConstraintViolated to protected internal.
89 * ConflictOptions.cs, UpdateOptions.cs, FillOptions.cs: enclosed
92 2005-07-21 Sureshkumar T <tsureshkumar@novell.com>
94 * ForeignKeyConstraint.cs:
95 - IsConstraintViolated (): no matter what EnforceConstraints is,
96 this function now honestly validates. It is upto the caller to run
98 - AddToConstraintCollectionSetup (): AssertConstraint according to
101 2005-07-21 Boris Kirzner <borisk@mainsoft.com>
102 * ForeignKeyConstraint.cs - IsConstraintViolated() should check also for Table.EnforceConstraints.
103 * DataTable.cs - EnforceConstraints becomes internal so it can be used by ForeignKeyConstraint.
105 2005-07-19 Sureshkumar T <tsureshkumar@novell.com>
107 * DataTable.cs - CopyConstraints (): copy constraints only if it
110 * DataSet.cs - Copy ():
111 - use activator.CreateInstance to create a typed dataset.
112 - copy tables if target does not exist, otherwise, just add rows.
113 - add relation only if it does not exists.
115 Typed datasets create the constraints & relations through
116 constructors. Fixes bug #75211.
118 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
120 * DataView.cs: Patch from Marc Haisenko to throw descriptive error
121 message when accessing Item, with invalid index.
123 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
125 reapplied patch from Marc Haisenko.
126 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
129 2005-07-13 Sureshkumar T <tsureshkumar@novell.com>
131 * DataRelationCollection.cs: adding a relation with same set of
132 parent columns & child columns, should not be allowed.
134 2005-07-08 Sureshkumar T <tsureshkumar@novell.com>
136 * DataTableReader.cs: GetSchemaTable: DataType column should be
137 passed a type of Type.
139 * DataRow.cs: Load : Fired necessary events.
141 * DataTable.cs: LoadDataRow (object [], LoadOption): Fired
144 2005-06-28 Sureshkumar T <tsureshkumar@novell.com>
146 * DataRow.cs: Delete (): if row is detached, do nothing.
149 2005-06-22 Sureshkumar T <tsureshkumar@novell.com>
151 * DataRow.cs: Added method MergeValuesToRow copy merge two rows
152 according to the merge rules.
154 * MergeManager.cs: (MergeRow): use MergeValuesToRow
155 API. CopyValuesToRow simply makes the target row same as source
156 row. Rather, MergeValuesToRow merges with the target row according
159 2005-06-19 Konstantin Triger <kostat@mainsoft.com>
161 * DataSet.cs: Fixed ReadXml to work with IXmlSerializable
163 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
165 * DataViewManager.cs: fixes exception and creates DataView
167 2005-06-15 Sureshkumar T <tsureshkumar@novell.com>
169 * DataRow.cs: CheckChildRows: cascade parent changes to child rows
170 only if there is a change in columns of the fk constraint.
172 2005-06-14 Sureshkumar T <tsureshkumar@novell.com>
174 * DataSet.cs: GetChanges: if row is deleted, get parent rows based
175 on original version. fixes bug #75227.
177 2005-06-13 Sureshkumar T <tsureshkumar@novell.com>
179 * DataRowCollection.cs: Find (keys, version): Added an overload to
180 find keys matching given DataViewRowState filter. Used in
181 DataSet.Merge and DataTable.LoadDataRow.
183 * DataTable.cs: LoadDataRow (values, LoadOption): Use
184 DataRowCollection.Find (object [], DataViewRowState) overload.
187 - CopyValuesToRow: Create target "records" out of loop. Records
188 should be created once, not for each column. Dispose Unused target
192 - MergeRow: Find rows with matching original records. If not,
193 select with current values.
194 - MergeRow: While adding new row, use NewNotInitializedRow.
196 * ForeignKeyConstraint.cs: IsConstraintViolated: should not check
197 if EnforceConstraints is false.
199 2005-06-10 Sureshkumar T <tsureshkumar@novell.com>
201 * DataRow.cs: CopyValuesToRow: if orginal == current, don't create
202 a new current record.
204 * DataSet.cs: GetChanges :Temporarily disable EnforceConstraints.
206 * MergeManager.cs: Merge: Temporarily disable
207 EnforceConstraints. Patch from george.barbarosie@gmail.com (George
210 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
212 * DataView.cs: fixes GetListName
214 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
216 * XmlSchemaConstants.cs,
217 XmlSchemaDataImporter.cs,
218 XmlSchemaWriter.cs : AutoIncrementStep support. Patch partly by
219 George Barbarosie. Fixed bug #75121.
220 * XmlSchemaMapper.cs : it is not used anymore, so just removed.
222 2005-05-31 Boris Kirzner <borisk@mainsoft.com>
223 * DataRow.cs : SetParentRow on Detached row with no Default version throws an exception.
225 2005-05-29 Konstantin Triger <kostat@mainsoft.com>
227 * This patch fixes #74813
228 * DataView.cs: rework the CreateChildView to receive the index into the indexed row array, rowState became protected to be initialized from RelatedDataView
229 * DataRowView.cs: movo the logic of creating the child view to the DataView
230 * RelatedDataView.cs: perform correct init.
232 2005-05-25 Sureshkumar T <tsureshkumar@novell.com>
234 * DataTable.cs: Reworked DataTable.LoadDataRow method after
235 regressions caused by Index redesign.
236 * DataRow.cs: Load : reworked.
238 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
240 * ISafeDataRecord.cs: Added GetDateTimeSafe method, the interface was made derived from IDataRecord
242 2005-05-22 Konstantin Triger <kostat@mainsoft.com>
244 * 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
246 2005-05-20 Sureshkumar T <tsureshkumar@novell.com>
248 * DataTable.cs: CreateRecord :value should be set to auto
249 increment value or default value if the given value is null.
251 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
253 * DataTable.cs: In DataTable.LoadDataRow with LoadOption - reverting the search order back to Original -> Current (by Suresh request)
255 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
257 * DataRow.cs, DataTable.cs: code under net_2_0 changed to use the new interface
258 * DataTable.cs: Added CompareRecords, which compares records in column order
261 2005-05-16 Sureshkumar T <tsureshkumar@novell.com>
264 * DataTable.cs: quick fix to make build 2.0 profile (follow up for
265 check in 2005-05-16). Merge with previous changes.
267 2005-05-11 Sureshkumar T <tsureshkumar@novell.com>
269 fix for "import row does not import deleted records"
271 * UniqueConstraint.cs: Make a way to access value even from a
272 deleted record. deleted records are added to the collection by
276 - Added restriction-less methods GetValue to fetch a
277 value even if it is in deleted state.
278 - If a row is detached, don't try to delete it from indexes.
279 - sanity check for record_index in CopyValuesToRow method
281 2005-05-05 Sureshkumar T <tsureshkumar@novell.com>
283 * DataTableReader.cs: Implemented Delete handler and move the
284 current pointer accordingly.
286 2005-05-04 Sureshkumar T <tsureshkumar@novell.com>
288 * DataTableReader.cs: Added event handlers to make reader stable
289 when the datasource is modified. Thanks to Umadevi for giving the
290 review comments for this implementation.
292 * DataTable.cs: Clear (): Raise TableCleared event.
294 * DataTableClearEventArgs.cs: Args for DataTableClearEventHandler.
296 * DataTableClearEventHandler.cs: Handler for DataTable.TableClear
299 * DataRow.cs: AcceptChanges: raise row changing & row changed
302 * DataRowCollection.cs: Clear : remove rows from indexes
304 2005-05-02 Atsushi Enomoto <atsushi@ximian.com>
306 * XmlSchemaDataImporter.cs : XmlSchemaParicle might be XmlSchemaAny.
307 This fixes bug #74784.
309 2005-04-29 Sureshkumar T <tsureshkumar@novell.com>
311 * DataTableReader.cs: removed use of _first. throw if given index
312 is out of range of columns. Copy DataTable [] to local array so
313 that not to be disturbed.
315 2005-04-27 Sureshkumar T <tsureshkumar@novell.com>
317 * DataTableReader.cs: Implemented most of the TODO.
319 2005-04-22 Sureshkumar T <tsureshkumar@novell.com>
321 * LoadOption.cs: Changed the enums. Keeping old values for
324 * DataTable.cs: Implemented methods Load and its overloads. Also
325 implemented LoadDataRow.
327 * DataRowCollection.cs: Added a variation of the Find method to
328 return a row even if it is of state Deleted. This is required for
329 DataTable.LoadDataRow method.
331 * DataRow.cs: Implemented internal helper method Load for loading
332 values from an object array and given an LoadOption (2.0 feature).
334 * DataRowAction.cs: Added few more enums for .net 2.0. Sorted
337 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
339 * UniqueConstraint.cs : IsNull check is relevant for rows having default row version.
340 * DataTable.cs : The row should be validated when imported
341 * DataRowCollection.cs : if the row does not contain Proposed neither Current version, it's irrelevant for validation
343 2005-04-26 Boris Kirzner <borisk@mainsoft.com>
345 * UniqueConstraint.cs :
346 - Add indication whenever the constraint belongs to collection.
347 - Calculation of IsPrimaryKey simplified.
348 - If constraint is based on single column, the column becomes unique.
349 - Use boolean IsConstraintViolated() instead of AssertConstraint().
350 - Use Index.Duplicates to proper exception message formatting.
351 - AssertConstraint(DataRow) changed to suite new indexes interface.
352 - Added CanRemoveFromCollection method.
353 - Contains() method renamed to IsColumnContained().
354 * RelatedDataView.cs : added new class.
356 - Reset indexes after merge.
357 - Add new tables when row array is merged into dataset.
358 - Clean proposed record in MergeRow.
359 - Inherit nesting on creating new relations in target data set.
360 - Avoid double loop on constraints collection.
361 * Locale.cs : added new class.
362 * ISafeDataRecord.cs : added new interface.
363 * Index.cs : commented out. Index implementation moved to System.Data.Common.
364 * ForeignKeyConstraint.cs :
365 - No more use of childColumnsExtended since new indexes allow duplicate records.
366 - Constraints can not be created on expression columns.
367 - Removed unnecessary delegation.
368 - Use boolean IsConstraintViolated() instead of AssertConstraint().
369 - Use proper exception message formatting.
370 - Contains() method renamed to IsColumnContained().
371 * DataViewRowState.cs : use enum members to simplify notation.
372 * MergeManager.cs : implemented RelationCollectionChanged().
373 * DataView.cs : new implementation.
374 * DataTableCollection.cs :
375 - Added boundary check in indexer.
376 - More accurate handling in AddRange().
377 - Raise event in Remove().
379 - Hold primary key as constraint.
380 - Added accurate handling of DefaultView.
381 - Hold DataRowBuilder per table.
382 - Proper exception messages if enforce Constraints is violated.
383 - If there is no rows, Compute() returns DBNull.
384 - Use DataRow properties instead of private members.
385 - CopyProperties() fixed.
386 - Raise proper events in EndInit().
387 - Proper order of violation checks in EndLoadData().
388 - Create array of rows using NewRowArray().
389 - ImportRow handles rows according to their versions.
390 - LoadDataRow make use of records (instead of raw object array).
391 - Added and implemented LoadDataRow() that gets IDataRecord as a parameter (used in Fill)
392 - Select() uses indexes filtering and sorting ability (instead of "loop-throw-sort" approach).
393 - Removed redundant RowSorter and Sortable column classes.
394 - ParseSortString() fixed to threat bracketed column names.
395 - Table holds collection of property descriptors.
397 - Reset table case sensitive indexes on CaseSensitive change.
398 - EnforceConstraints update logic moved to internal method (used by DataTable).
399 - InAddChangedRow first add row and than copy values for proper handling of default values.
401 - Changed private member names to suite name convention.
402 - CancelEdit() fixed.
403 - CreateChildView() delegates to DataView.
405 - Proper exception messages in indexers.
406 - RowVersion uses DataView.
407 - GetProperties() delegates to corresponding table if needed.
408 * DataRowCollection.cs :
409 - Common Add() logic moved to AddInternal() (used also by DataTable).
410 - Removed redundant check from Contains().
411 - Dalegate Find() calls when possible.
413 - RomoveAt() delegates to Remove().
414 - Optimized constraints check in row validation.
415 * DataRelationPropertyDescriptor.cs : added new class.
416 * DataRelationCollection.cs :
418 - Fixed order of actions in AddCore().
419 - RemoveCore() also delegates to base.
420 - Add relation to dataset also in AddCore().
421 - Remove relation from dataset also in RemoveCore().
422 - InTransition hold a data relation so we can properly identify the "in transition" state.
423 - Added threat of parent and child table s property descriptors in Add().
424 - Common Add() logic moved to AddCore().
426 - Remove() threats "in transition" state properly.
427 - Remove methods delegate to single implementation.
428 * DataColumnPropertyDescriptior.cs :
429 - Added new constructor.
430 - Commented out redundant method.
431 * DataColumnCollection.cs :
432 - Boundary check in indexer.
433 - RegisterName and UnregisterName become internal (used also by DataColumn).
436 - Rethrow correct exception in Clear();
437 - Change in collection resets parent table property descriptors.
438 - Added PostEndEdit() helper method (used by DataTable).
440 - Private member names changed to suite name convention.
441 - Created method for CanAutoIncrement() logic.
442 - Proper handling of column name update.
443 - Proper exception messages on expression update.
444 - Proper namespace handling (delegates to table when needed).
445 - Removed redundant check in Unique update.
446 - Implemented internal Clone().
447 - GetParentRalation() and GetChildRelation() become private.
449 - Added abstract methods (implemented in UniqueConstraint and ForeignKeyConstraint).
450 - Simplified index update.
451 * ConstraintCollection.cs :
452 - Use Locale instead of CaseSensitive in column names comparison.
454 - Rethrow correct exception type in Add().
455 - Proper update of table primary key in Add().
456 - Delegate CanRemove() to constraint.
457 - Remove table primary key in Clear();
458 - Delegate "can remove" check to constraint in Remove().
459 - Removed unnecessary methods and properties.
461 - RowSate becomes calculated property.
462 - Use properties instead of private members where possible.
464 - Fixed order of actions in ItemArray update.
466 - Added ImportRecord() method.
467 - Removed redundant SetValuesFromDataRecord().
468 - Fixed IndexFromVersion().
469 - Added VersionFromIndex() method. Returns row version the passed record index corresponds to.
470 - Fixed AcceptChanges().
471 - Fixed creating proposed version in BeginEdit();
472 - Added record disposal in Delete().
473 - Fixed CheckChildRows().
474 - EndEdit() fixed. Checks for readonly. Uses straight flow instead of "try and fix if fail" approach.
475 - GetChildRows() and GetPrarentRows() rewrited. Use records and indexes for rows lookup.
476 - GetColumnError() delegates to another implementation.
477 - HasVersion() fixed.
478 - RejectCahnges checks on child rows before passing through.
479 - SetParentRow() fixed. Create relation collection if needed. Use typed data container value copy.
480 - CopyErrors() logic moved to separate method (used also by DataTable).
481 * ExpressionElement.cs : added new class.
482 * Res.cs : added new class.
484 2005-04-20 Jordi Mas i Hernandez <jordi@ximian.com>
486 * DataViewManager.cs: implements TypedList.GetListName used in SWF
488 2005-04-19 Atsushi Enomoto <atsushi@ximian.com>
490 * DataRowView.cs : indexer should access to DataRow with proper
491 DataRowVersion. Fixed bug #74650.
493 2005-04-18 Sureshkumar T <tsureshkumar@novell.com>
495 * DataRow.cs: if there are no mapping fields, fill with default
498 2005-04-17 Atsushi Enomoto <atsushi@ximian.com>
500 * DataView.cs : Delete() should not try to remove row twice.
503 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
505 * DataTable.cs : Use GetRowType() for the base of the returning array
506 type of Select(). Fix by Gerhard Rittweger.
507 * CustomDataClassGenerator.cs : Fixed slightly harmless wrong code.
509 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
511 * CustomDataClassGenerator.cs : custom relation was not added to
512 Relations property. The second entry of bug #69276 was fixed.
513 Patch by Daniel Rodriguez.
515 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
517 * DataRowCollection.cs: Fix the signature of the Add method
520 2005-03-16 Atsushi Enomoto <atsushi@ximian.com>
522 * DataRow.cs : on importing row, it was copying data from incorrect
523 DataRow. This fixes bug #73288.
525 2005-03-07 Jackson Harper <jackson@ximian.com>
527 * DataViewManagerListItemTypeDescriptor.cs: Implement missing
528 features. These are needed for System.Windows.Forms databinding.
530 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
532 * DataColumn.cs : setting negative value on MaxLength of SimpleContent
533 column is still valid.
535 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
537 * XmlSchemaWriter.cs : new file for outputting XmlSchema.
538 * DataSet.cs : removed rewritten code in XmlSchemaWriter.
539 * XmlConstants.cs : added UseCurrentCulture constant.
541 Use new Xml Schema writer.
542 Use XmlSchemaDataImporter as we use in DataSet.
544 2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
546 * DataView.cs, DataRowView.cs : Fixed bug #72421. CreateChildView()
547 should target only child rows.
549 2005-02-03 Atsushi Enomoto <atsushi@ximian.com>
551 * DataViewManager.cs: misuse of ReadStartElement(string).
552 * DataRowView.cs : removed some MonoTODO.
554 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
555 Ankit Jain <radical@corewars.org>
557 * DataColumn.cs: throw exception if the column is part of a
558 relationship, when chaning the data type. Added methods
559 "GetParentRelation ()" and "GetChildRelation ()" get the relation
560 which contains the current column
561 * DataRelation.cs: Added method "Contains (DataColumn)" to check
562 whether the relation contains the given column.
564 fixes nunit failure: DataRelationTest.InvalidConstraintException2.
566 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
568 * DataColumnCollection.cs: implemented todo item "check for
569 constraints" when removing columns from table.
570 * DataRowCollection.cs: Clear (): don't have to throw child key
571 constraint exception when the child table does not have any
572 rows. safe to remove parent rows.
573 * UniqueConstraint.cs: added method "Contains (DataColumn)" to
574 check whether a column is part of UniqueConstraint.
575 * ForeignKeyConstraint.cs: added method "Contains (DataColumn,
576 lookInParent)" to check whether a column is part of foreignkey.
578 fixes nunit failure: DataTableTest.ClearTest ()
580 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
582 * ForeignKeyConstraint.cs: validating columns: move checking
583 "tables are of same dataset" before "checking column types".
585 fixes nunit failure: ForeignKeyConstraint.CtorExceptions.
587 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
589 * DataViewManager.cs : let's just use StringWriter instead of
590 XmlTextWriter (to avoid empty tag string mismatch annoyance.)
591 * DataView.cs : implemented BeginInit() and EndInit(). Don't update
592 rows during init phase until EndInit() is invoked. During init phase,
593 just hold properties such as Sort that affects on rows.
595 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
597 * DataTableCollection.cs : (RemoveAt) just use IndexOutOfRangeException.
599 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
601 * DataView.cs : DataRowView.EndEdit() raises ItemMoved event.
602 set_Table clears Sort and RowFilter.
604 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
607 - Clear() should clear AddNew cache.
608 - Open() invokes Reset().
609 - ConstraintCollectionChanged() itself does not invoke OnListChanged().
610 - Reset() does not Open, Close and Update Index.
611 - UpdateIndex() can be invoked even if it has no table.
612 - Reset event is invoked always after actual query to table.
613 - set_Table should raise PropertyDescriptorChanged event.
615 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
617 * DataView.cs : ColumnCollectionChanged() is the event invoker (i.e.
618 when overriden, no column change events are fired).
620 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
622 * DataView.cs : CancelEditRowView() and DeleteRowView() was incorrectly
623 checking target tables. They also should raise events if required.
625 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
627 * DataView.cs : simplify code with UnsortedList.
629 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
631 * DataView.cs : Mostly reimplemented.
632 - UpdateIndex() is invoked only when it is required (results in
633 significant performance improvement).
634 - Use SortedList and wrapper OptionalSortedList which switches
635 between SortedList (with Sort) and UnsortedList (without Sort).
636 - DataView itself now contains two collections for rowviews:
637 Table rows based pool and AddNew() based cache. Consider those
638 two collections in every members.
639 - Reset() does not clear rows. Just invokes UpdateIndex().
640 - Hook RowDeleting, ColumnChanging and ColumnChanged events in table
641 which is required to handle state changes.
642 - Reimplemented Find() and FindRows() because of internal changes.
644 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
646 * DataTable.cs : Fixed row comparer. Even if every of the sort target
647 columns are identical for two rows, they should not be regarded as
648 the same unless they are Object.ReferenceEquals.
650 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
652 * DataRowCollection.cs : on adding a row, should raise
653 ChangingDataRow() as well as ChangedDataRow().
655 2005-01-31 Sureshkumar T <tsureshkumar@novell.com>
657 * DataRow.cs: SetParentRow (): use relation.ParentColumns &
658 relation.ChildColumns instead of relation.ChildKeyConstraint.*
659 because createConstrains flag may be false when creating data
660 relations. Hack along with Ankit Jain.
662 2005-01-31 Atsushi Enomoto <atsushi@ximian.com>
664 * DataView.cs :some interface implementations.
666 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
668 * DataView.cs : Add to table only when the row is not in the table.
670 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
672 * DataView.cs : implemented FindRows() (btw we should not use
673 DataTable since there are detached rows by AddNew().)
675 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
678 Code cleanup: privatify some members, remove unused methods.
679 Some event-based invocation methods should not raise NotImplemented.
681 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
683 * DataSet.cs : ReadXml() became closer to MS behavior, being hacky.
685 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
687 * XmlSchemaDataImporter.cs : empty element is not regarded as a column.
689 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
691 * UniqueConstraint.cs : mostly reverted the previous patch + check
692 IsPrimaryKey before validation.
694 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
696 * DataView.cs : Fixed duplicate insertion to Hashtable.
697 * UniqueConstraint.cs : Unique constrained pair of columns could be
700 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
703 Don't do anything for Sort/ApplyDefaultSort/RowFilter/RowStateFilter
704 when the same value is being set.
705 Examined UpdateIndex() and marked FIXME where MS does not invoke it.
706 Removed unused OnColumnChanged().
707 Now store rowViewPool and reuse DataRowView objects.
708 Optimized UpdateIndex() - avoid ArrayList. Avoid Haashtable.Rehash().
710 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
712 * DataViewSettings.cs : no MonoTODO anymore.
713 * DataViewManager.cs : pass itself to new DataView() (new ctor).
714 * DataRowView.cs : GetHashCode() returns its Row's hash.
715 * DataTablePropertyDescriptor.cs : use new ctor().
716 * DataView.cs : added new ctor()s that accept DataViewManager.
718 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
720 * DataView.cs, DataRowView.cs : AddNew() should not add the row to table
721 (it is still detached). So handle those rows differntly.
722 CancelEdit(), EndEdit() and Delete() propagates those events to
723 DataView (and handle row collection).
724 Eliminate "throw new Exception()".
725 Don't catch all the exception thrown in ListChanged event.
726 * DataTable.cs : made RowSorter as internal and use it in DataView.
727 no need to pass DataRow[] to .ctor().
729 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
731 * DataTable.cs : don't create DefaultView unless it is required. It
732 significantly improves performance. (i.e. DataView perf. is sick ;-)
734 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
736 * DataViewSetting.cs,
737 DataViewSettingCollection.cs,
738 DataViewManager.cs : implemented basic members.
740 2005-01-26 Atsushi Enomoto <atsushi@ximian.com>
742 * Node.cs, DataColumnPropertyDescriptor.cs, DataTable.cs :
743 Eliminate "throw new Exception".
745 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
747 * DataRow.cs : (set_Item) RowNotInTableExeption check should be done
748 regardless of index existence.
750 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
752 * DataTable.cs : use new IExpression.EvalBoolean() to avoid extraneous
755 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
757 * DataTable.cs: ImportRow :Do not add to rows collection if the
758 import row is in detached state.
760 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
762 * DataRow.cs: CopyValuesToRow : set the column value with the
763 default version of the given row.
764 * DataTable.cs: ImportRow: Copy values before adding row.
765 * DataSet.cs: AddChangedRow: Add the row to the table after
768 Fixes bug #67317. Patch by Ankit Jain.
770 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
772 * DataRowView.cs : Fixed IsEdit to reflect correct status of DataRow.
773 * DataRow.cs : Expose editing status internally.
775 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
777 * DataView.cs : missing attributes.
779 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
781 * DataRowView.cs : implemented CreateChildView().
783 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
785 * DataTable.cs, DataView.cs :
786 Optimized DataView to compile only once RowFilter and Sort when
787 those properties are set. To make it possible, extracted
788 SortableColumn out of DataTable and added internal DataTable.Select()
789 that accepts precompiled IExpression and SortableColumns[].
791 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
793 * DataColumn.cs : set_MaxLength is not allowed when it is mapped to
794 SimpleContent. (However, it is weird but it never fails when we set
795 ColumnMapping = MappingType.SimpleContent when we fhave MaxLength.)
797 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
799 * DataRow.cs : more Current -> Default fixes. Check if it should throw
800 VersionNotFoundException. Patch by Ankit Jain.
802 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
804 * DataRow.cs : Default selects the right version for the current
805 state of the row. Current is not always available. Also change
806 that for GetParentRow(). Patch by Ankit Jain.
808 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
810 * DataTable.cs : CopyColumn() should copy AutoIncrement after
811 DefaultValue, or it will raise an error in some cases.
813 2005-01-20 Atsushi Enomoto <atsushi@ximian.com>
815 * ConstraintCollection.cs : Add() should throw ArgumentException when
816 the argument constraint fails validation.
817 DataTable.cs : set_PrimaryKey should throw ArgumentException when
818 the argument contains constraints which fail validation.
820 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
822 * DataRelationCollection.cs:
824 Method Remove : Donot throw exception if DataRelation argument is
825 null in DataRelationCollection.Remove method.
827 Method RemoveAt : Exception should be IndexOutOfRangeException if
828 row index is not in list range.
830 Fixes nunit failures DataRelationCollection.Remove and
831 DataRelationCollection.RemoveAt.
833 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
835 * ConstraintCollection.cs: Donot throw exception if constraints
836 are null in AddRange method. Check for null before using the
841 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
843 * XmlDataInferenceLoader.cs,
844 XmlDataReader.cs : Check if the XmlReader (node) represents DataSet
845 or a table, reusing code block in XmlDataInferenceLoader.
846 This fixes bug #60118.
848 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
850 * XmlDiffLoader.cs : Ankit Jain <radical@imt.ac.in> has a conflicting
851 patches and some good catches. Some attributes should be skipped,
852 and loaded value must be typed.
854 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
857 XmlDataInferenceLoader.cs,
858 XmlDataReader.cs : use common const for http://www.w3.org/2000/xmlns/.
859 * XmlDiffLoader.cs : It was not handling attributes. Fixed bug #70961.
861 2005-01-18 Sureshkumar T <tsureshkumar@novell.com>
863 Fix for bug #66838. This patch is submitted by "Ankit Jain"
864 <radical@corewars.org> and refactored.
866 * DataRow.cs: Allows to set a parent row even if the row is in
869 * DataRelation.cs: method "UpdateConstraints" is added to check
870 and create missing keys when adding a relation. This is refactored
871 approach from DataRelationCollection.Add method.
873 * DataRelationCollection.cs: AddCore methods of all relation types
874 are synchronized. A Check for existing constraints is
875 done. Relation is added to the list only if all checks are passed.
877 2004-01-18 Atsushi Enomoto <atsushi@ximian.com>
879 * DataColumnCollection.cs : Clear() throws ArgumentException that
880 wraps thrown innerException.
881 * XmlSchemaDataImporter.cs : removed FIXMEs.
883 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
885 * DataSet.cs : When serializing DataTable, BuildSchema() is passed
886 null relation collections.
887 Quick fix for XmlSerializer deserialization. It does not require
890 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
893 CustomDataClassGenerator.cs :
894 In DataSet class, IXmlSerializable.GetSchema() returns null.
895 In strongly-typed class, it returns schema.
897 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
899 * XmlDataInferenceLoader.cs : test driver class should be excluded.
901 2004-12-01 Miguel de Icaza <miguel@ximian.com>
903 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
906 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
908 * CustomDataClassGenerator.cs : generated foreign key constraint
909 construction code was creating empty child columns and thus it
910 was invalid. This fixes bug #69276 (patch by Martin Voelkle).
912 2004-11-02 Atsushi Enomoto <atsushi@ximian.com>
914 * CustomDataClassGenerator.cs : custom DataTable ctor should call
915 InitializeFields(), and those DataColumns created by that method
916 should take data type. This should fix bug #68972.
918 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
920 * DataSet.cs : Also clear UnhandledAttributes ArrayList before
921 generating next attribute column schema. This fixes bug #68432.
923 2004-10-14 Umadevi S <sumadevi@novell.com>
924 * DataTable.cs : Corrected the Clone method to use Activator.CreateInstance so that the
925 correct subclass is returned. This fixes bug #67631
927 2004-10-14 Umadevi S <sumadevi@novell.com>
928 * DataSet.cs : Corrected the Clone method to use Activator.CreateInstance so that the
929 correct subclass is returned. This fixes bug #67627
931 2004-10-13 Atsushi Enomoto <atsushi@ximian.com>
933 * DataSet.cs : clear UnhandledAttributes ArrayList before generating
934 next element column schema. This fixes bug #68256.
936 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
938 * DataSet.cs : now xs:schema contains xmlns="".
939 This fixes bug #68008.
941 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
943 * DataSet.cs : DBNull attribute column should not be written as
944 empty attribute. This fixes bug #68007.
946 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
948 * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
949 DataColumn.ReadOnly was not handled. This fixes bug #68005.
950 Attribute defaultValue was not handled too.
952 2004-10-07 Atsushi Enomoto <atsushi@ximian.com>
955 - When AllowDBNull is false on attribute DataColumn, its schema
956 should contain use="required". This fixes bug #66792.
957 - If MaxLength is set on attribute DataColumn, the mapped schema
958 type should contain maxLength facet. This fixes bug #66793.
960 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
962 * DataSet.cs : For a row, when a relation is not nested, then it is
963 still output target since it won't be written as a child of its
964 parent. It fixes bug #66379.
966 2004-10-03 Atsushi Enomoto <atsushi@ximian.com>
968 * DataSet.cs : Attribute constraint field XPath must be written as
969 @blah. This fixes bug #66366.
971 2004-09-28 Umadevi S <sumadevi@novell.com>
972 * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
974 2004-09-24 Sureshkumar T <tsureshkumar@novell.com>
976 * DataSet.cs : Don't check constraints for dataset clear
977 * DataRowCollection.cs : check for EnforceConstraints flag
978 before checking foriegn key constraints in Clear method
979 * DataTable.cs : Redundant checking removed in Clear method as it is
980 checked in DataRowCollection.Clear method.
983 2004-09-19 Sureshkumar T <tsureshkumar@novell.com>
984 * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
985 hence, adding a row cache is necessary if the original row happens to be current.
988 2004-08-23 Martin Baulig <martin@ximian.com>
990 * XmlDataInferenceLoader.cs (Driver): Make this class internal,
993 2004-08-18 Umadevi S <sumadevi@novell.com>
994 * DataView.cs - Completed most of the event handling.
995 Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
996 Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
997 * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
999 2004-08-06 Atsushi Enomoto <atsushi@ximian.com>
1001 * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
1003 2004-08-05 Atsushi Enomoto <atsushi@ximian.com>
1005 * XmlConstants.cs : Added constants for "msprop" support.
1006 * DataSet.cs : ExtendedProperties should be written in the schema.
1007 This fixes bug #61233.
1009 2004-07-27 Atsushi Enomoto <atsushi@ximian.com>
1011 * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
1012 used. There were also some culture dependency problems to write int.
1014 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
1016 * XmlDataInferenceLoader.cs : It was not always filling relation
1017 child table information correctly. This fixes bug #60742.
1019 2004-06-23 Umadevi S <sumadevi@novell.com>
1020 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
1022 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
1024 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
1025 schema is inside the document element (as created in XmlWriteMode
1026 .WriteSchema), it should read schema from that non-document element.
1027 This fixes one case reported in bug #60470.
1029 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
1031 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
1032 inference target. For bug #60470. (MS does not support schema
1033 document inference and results in unconsistent dataset structure.)
1035 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
1037 * DataTableCollection.cs : reset the table's DataSet to null when
1038 removing a table from this collection.
1039 * DataTable.cs : When Namespace is not specified explicitly, its
1040 Namespace property reflects DataSet's Namespace if exist.
1041 This fixes bug #60469.
1043 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
1045 * DBConcurrentcyException.cs: CRLF to LF
1046 * DataViewSetting.cs: CRLF to LF
1048 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
1050 * DataViewSetting.cs: renamed fields to match MS.NET
1052 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
1054 * DBConcurrencyException.cs: fixed serialization compatibility with
1057 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1059 * ChangeLog : Fix for misspelled words.
1061 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1063 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
1065 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1068 - Table stores default values for columns in special default values row.
1069 It is allocated once (in NewRow).
1070 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
1071 - OnRemoveColumn has nothing to perform by now.
1073 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1076 - Changed access of original, current and proposed indexes to internal.
1077 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
1078 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
1079 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
1080 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
1081 Care about Null and DBNull values is now in DataContainer.
1082 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
1083 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
1084 - Fix in CopyState : clone column errors.
1085 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
1087 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1089 * DataColumnCollection.cs :
1090 - Fix : Add() now delegates to Add(DataColumn).
1091 - autoIncrement list holds DataColumn objects, and not just column names.
1093 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1096 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
1097 - DefaultValue fixes. Default value from now on is also stored in special record in
1098 DataTable, so we're able to set default value for the column faster (typed).
1101 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
1103 * DataSet.cs : children of non-root rows were not properly written.
1106 2004-06-10 Umadevi S <sumadevi@novell.com>
1107 * DataRelation.cs - Constructor
1108 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
1110 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
1112 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
1114 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
1116 * Constraint.cs: marked methods internal to fix public API
1117 * ConstraintCollection.cs: to fix public API, use
1118 DataTable.fInitInProgress to check whether initialization
1119 of DataTable is in progress
1120 * DataColumn.cs: added stubs for missing methods
1121 * DataRowBuilder.cs: marked Table property internal to
1123 * DataSet.cs: removed extra empty destructor, marked
1124 OnMergeFailed internal to fix public API
1125 * DataTable.cs: use fInitInProgress field to hold init
1126 status, to match MS.NET
1127 * DataView.cs: added missing attributes on IsOpen
1129 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
1131 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
1132 in XmlNamespaceManager.
1134 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
1136 * DataSet.cs : complex table content child was not properly added
1137 when it is the only one child in the parent table. Fixed bug #53959.
1139 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
1140 * DataTableTypeConverter.cs: added
1141 * DataView.cs: added missing attribute on Table property
1142 * DataViewManager.cs: moved attribute to correct property
1143 * UniqueConstraint.cs: removed extra ReadOnly attribute from
1144 IsPrimaryKey property
1146 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
1148 * DataRow.cs : ColumnsChanged event is not required in .ctor().
1150 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
1152 * XmlDataReader.cs : type change is required before setting value
1155 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1157 * DataSet.cs : Loop-break of the last fix was incorrect.
1159 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1161 * DataSet.cs : When a row has no parent row but the table has parent
1162 relation(s), that row had been always ignored.
1164 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1166 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
1167 rejected same-named tables in different hierarchy. Thanks to Boris.
1169 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1171 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
1172 infinite loop. Thanks to Boris for this fix.
1174 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1176 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
1177 Thanks to Boris for this fix.
1179 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
1181 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
1182 for ReadXml(). Thanks to Boris.
1184 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
1186 - CheckReadOnlyStatus : use typed (and faster comparing).
1187 - EndEdit : bug fix - do not dispose record if it holds original version.
1188 - SetValuesFromDataRecord : Take care about autoincrement columns.
1191 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
1193 * MergeManager.cs : don't output debug message to Console.
1195 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
1197 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
1198 structure. Thanks to Boris Kirzner for the fix.
1200 2004-05-27 Umadevi S <sumadevi@novell.com>
1201 * DataRelationCollection.cs - fixed nunit test errors
1203 2004-05-27 Umadevi S <sumadevi@novell.com>
1204 * DataTableCollection.cs - fixed nunit test errors
1206 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1208 * DataColumnCollection.cs : NullReferenceException was thrown when
1209 the table was not found.
1210 * DataRowCollection.cs :
1211 Find() just returns null for null value under MS.NET 1.1.
1212 RemoveAt() should also avoid to call AcceptChanges() like Remove().
1213 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
1214 directly under MS.NET (for nunit test).
1216 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1218 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
1219 caused problem on qualified name to get schema Field name.
1221 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1223 * XmlDataReader.cs : Now data reader is namespace aware in all places.
1224 When table's namespace is different, it entered to infinite loop.
1226 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1227 * MergeManager.cs : AdjustSchema now updates by reference new created table,
1228 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
1231 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1233 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
1234 * DataColumnCollection.cs : fixed parantethes.
1236 - AcceptChanges : do nothing if row state is unchanged.
1237 - GetChildRows, GetParentRows : bug fix (use correct index).
1238 * DataRowCollection.cs : bug fix (compare all row's values).
1239 * DataTable.cs : bug fix (use correct row version).
1241 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1243 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
1244 When content type is Mixed, text column is not required (it is
1245 required only when the complex type has no particle).
1246 "Repeated element" column is also created (considering maxOccurs=0
1247 and complex content extension).
1249 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1251 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
1254 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1256 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
1257 Fixed relation inference to consider attribute XPath.
1259 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
1261 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
1264 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1266 * DataColumn.cs - removed default member attribute.
1268 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1271 DataColumnChangeEventArgs.cs,
1272 DataColumnCollection.cs,
1274 DataRowCollection.cs,
1276 Index.cs : Data storage in the row is redesigned. Now data is stored in
1277 typed containers inside DataColumn. Row holds its versions as indexes inside
1278 each of data container, accessed through the row that holds it.
1280 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1282 * UniqueConstraint.cs - added comment.
1284 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
1286 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
1289 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
1292 XmlDataInferenceLoader.cs,
1294 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
1295 XmlEncode every local name to write. This should fix bug #58268.
1297 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
1299 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
1300 Supported repeated elements. Removed MonoTODOs.
1301 * XmlDataInferenceLoader.cs : Design change to support ignored
1302 namespace and repeated elements.
1303 * XmlSchemaDataImporter.cs : Added mapping support classes.
1305 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
1307 * CustomDataClassGenerator.cs :
1308 Added property parent "[foo]Row" and children "Get[foo]Row" support
1309 for custom DataRow classes.
1310 Fixed DataColumn property accessibility (public --> internal).
1312 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1314 * CustomDataClassGenerator.cs :
1315 - Put classes inside custom DataSet class.
1316 - Added automatic DataRelation creation support.
1317 - Added Constraints creation support. That is done separate from
1318 relations, since they might be independently created.
1319 - Added non-MS public DataRelation fields.
1320 - Removed extraneous "DataRelation type generation" code.
1321 - Fixed custom_dataset.Initialize() not to create "c" field that
1322 was created more than once.
1323 - Implemented AddxxxRow() that takes parameters for every column.
1325 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1327 * XmlSchemaDataImporter.cs : When primary key is used more than once,
1328 DataRelation borked because of empty parent column name.
1330 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1332 * XmlSchemaDataImporter.cs : When Creating constraints with related
1333 to DataRelation creation, also set PrimaryKey to the parent table.
1335 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1337 * XmlSchemaDataImporter.cs :
1338 Design change to add indirect table and relation structures.
1339 Support for "relation" annotation for local element.
1340 Support for repeatable simple element column (maxOccurs > 1).
1341 Fixed handling of Nested property on DataRelation (for globally
1342 annotated relation, Nested is false).
1344 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
1346 * DataRow.cs : Added DataElement property to avoid storing every row-
1347 element mapping. It stored even for nodes that should be removed.
1349 2004-05-13 Umadevi S <sumadevi@novell.com>
1351 * RelationshipConverter.cs - Stubbed this class
1352 * DataRelation.cs - added TypeConveterAttribute
1354 2004-05-13 Umadevi S <sumadevi@novell.com>
1356 * DataColumnCollection.cs - Added ResDescriptionAttribute
1357 * DataRelation.cs - Added TypeConverterAttribute
1358 * DataRelationCollection.cs - Added DefaultPropertyAttribute
1359 * DataRowView.cs - Added GetHashCode method with a TODO tag
1360 * DataSet.cs - Added DesignerAttribute
1361 * DataView.cs - Added DesignerAttribute
1362 * DataViewManager.cs - Added DesignerAttribute
1363 * DataViewSetting.cs - Added TypeConverterAttribute
1365 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
1367 * DataRow.cs : Added XmlDataElement initialization code.
1369 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
1371 * XmlDataInferenceLoader.cs :
1372 It now requires XmlDocument as input. Improved identification of
1373 DataSet element. Removed extra lines.
1374 Moved boresome design notes to bottom of the source and
1375 added standalone runnable driver (not included on build).
1377 Update with related to the change above.
1378 WriteXml() should call Flush() after writing. This fixes bug #58327.
1379 * XmlSchemaDataImporter.cs :
1380 Improved indentification of DataSet element.
1382 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
1383 * DataTable: marked initStatus enum internal
1385 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
1386 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
1388 * DataRowView.cs: removed extra Error property
1389 * DataRow.cs: reduced accessibility of CollectionChanged method
1391 * DataColumnPropertyDescriptor.cs: made class internal
1392 * DataColumn.cs: removed extra TypeConvertorAttribute
1393 * ConstrainCollection.cs: marked PostEndInit method internal
1395 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
1398 In WriteXmlSchema(), when complex type contains simple type content
1399 attributes must not added to XmlSchemaComplexType directly. It
1400 causes schema compilation error.
1401 DataRelation should not be output when related columns are hidden.
1403 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
1405 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
1406 also expected to do ReadXml(), but I will remove that feature and
1407 support column reordering).
1408 * XmlSchemaDataImporter.cs : Always initialize dataset name.
1409 Always set Nested and primary key for parent table.
1410 * XmlDataReader.cs : Now it is used.
1411 Top level element might not match to dataset name nor any table
1412 name, but still possible to read content tables.
1413 Handle empty element correctly in some places.
1414 Handle Fragment mode (read up XmlReader to the end).
1415 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
1416 XmlDataInferenceLoader and XmlDataReader.
1418 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
1421 Eliminated CRLF injection.
1422 More clear message in Clear().
1423 Updates reflecting XmlSchemaDataImporter change.
1424 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
1425 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
1426 but that depends on different behavior from ms.net).
1427 Set locale also for DataTable.
1428 Add xs:element only when target namespace matches to the
1429 element's namespace. Otherwise, add xs:import for external namespace.
1430 Put xs:sequence for dataset element's particle _only when_ actual
1433 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
1435 * XmlDataReader.cs : Added. This class will work better when our
1436 schema inference and schema read engine gets improved. (It contains
1437 standalone testable Driver class.)
1439 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
1441 * ForeignKeyConstraint.cs : Check step change. Existence then column
1442 validity. just for tests.
1443 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
1446 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1448 * DataSet.cs : Ignore empty content only when output type is diffgram.
1450 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1452 * CustomDataClassGenerator.cs : Modified that DataSet contains each
1453 DataTable field so that each table property can access them directly.
1454 (plus, modified standalone code driver code: shouldn't affect)
1456 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
1458 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
1460 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1462 * XmlSchemaDataImporter.cs :
1463 SimpleContent column support.
1464 Annotated relation support.
1465 Top-level element is counted only when its type is complex.
1466 xs:anyType is no longer treated as complex type.
1467 dataset existence is mandatory now.
1468 Improved DataType and DefaultValue support.
1469 Attribute namespace is properly handled now.
1470 Prohibited attribute is now treated as hidden column.
1471 Reject list or union simple type.
1473 Still incomplete 1) to read relationship in some cases, 2) to
1474 determine whether an element is dataset or table, 3) thus to
1475 exclude extraneous column, 4) to remove extraneous *_Id column.
1477 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1480 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
1481 serialization .ctor() (thus schema read/inference should be easier).
1482 DataRowSorter should consider Table's Locale.
1484 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1486 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
1487 use it instead of duplicating logic.
1489 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1491 * ConstraintCollection.cs :
1492 Use Table.CaseSensitive and Table.Locale to compare strings.
1493 Duplicate constraint name exception does not occur under .NET 1.1.
1495 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
1497 * XmlSchemaDataImporter.cs: Added little type check.
1499 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
1501 * DataSet.cs: Implemented support for runtime serialization. Fixed support
1502 for xml serialization.
1503 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
1505 2004-04-30 Umadevi S <sumadevi@novell.com>
1506 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
1507 * DataTableCollection.cs : Tested and removed TODO
1508 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
1510 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
1512 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
1514 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1516 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
1517 constraint is defined on single column.
1519 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
1521 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
1522 not ArgumentException (maybe changed after 1.1).
1524 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
1526 * DataRow.cs : When Column was added and it was AutoIncrement column,
1527 it extended the item object array incorrectly.
1528 (Plus tiny comment and incorrect indentation fix.)
1530 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1532 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
1534 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1536 * DataRow.cs : Bug fix in CopyValuesToRow().
1538 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1540 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
1541 each of the columns should not be unique, but only all the constraint's columns together.
1543 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
1546 - Added using of list of autoIncrement columns
1547 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
1548 - Fix in CheckNullConstraints
1549 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
1550 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
1551 - Added onColumnRemoved() method to threat column removal accurately.
1553 * DataRowCollection.cs :
1554 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
1555 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
1558 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
1560 * DataColumnCollection.cs :
1561 - Perfomance fixes :
1562 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
1563 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
1564 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
1567 - Uses autoincrement list of a table
1569 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
1571 * XmlDataLoader.cs : Even when it should ignore schema, it was
1573 * XmlSchemaDataImporter.cs : DataRelation creation support.
1574 Improved "DataSet" element handing. When attributes are on the
1575 element, it is not a "DataSet" element.
1576 Fixed parent key column name.
1577 Unique name creation is not required. Just raise an error.
1578 Fill facet also for attribute types.
1580 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
1582 * DataRow.cs : Null check for CheckReadOnlyStatus() and
1583 CheckNullConstraints(), with some coding guideline fixes.
1584 Type check should be done by Type instance comparison.
1586 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
1588 * DataColumnCollection.cs : When add a column to the collection, fill
1589 auto-increment column.
1591 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
1593 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
1595 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
1597 * CustomDataClassGenerator.cs : Added.
1598 * TypedDataSetGenerator.cs : Implemented Generate().
1599 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
1600 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
1602 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
1604 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
1606 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
1608 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
1610 2004-04-23 Umadevi S (sumadevi@novell.com)
1611 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
1612 - Added error handling to the above methods
1614 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
1616 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
1617 the support is incomplete yet).
1618 * XmlDataLoader.cs :
1619 Reverted ReadModeSchema() argument change. XmlReadMode would be
1620 useful to handle IgnoreSchema.
1621 Don't overwrite DataSetName when mode is not such kind.
1622 Set Prefix and Namespace as well as DataSetName.
1623 AllowDBNull looks set false by default for element column.
1624 Set unique constraint as primary key when infering the table schema.
1626 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
1629 Never set null string for Prefix and Namespace.
1630 In InferXmlSchema() when null XmlReader is passed, just do nothing.
1631 In WriteXmlSchema(string), earlier try block.
1632 In BuildSchema(), try to add serialization namespaces for each
1633 namespaces in DataSet/DataTable/DataColumn.
1634 Removed namespace argument from WriteColumnAsElement() and don't
1635 overwrite when namespace is "". This fixes bug #57330.
1636 * DataColumn.cs : For Namespace and Prefix, never set null.
1638 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
1640 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
1641 before creating and adding foreign key constraint and relation.
1643 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
1645 * MergeManager.cs : In AdjustSchema() source table clone should be added
1646 and not the table itself.
1648 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
1651 - CaseSensitive : Additional fix (removed unnesessary assignment).
1652 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
1654 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
1656 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
1658 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
1661 - EndLoadData() : perfomance fix in case of null constraint violation
1662 during data load (also in DataRow.cs).
1663 - CaseSensitive : If DataTable belongs to DataSet it should always use
1664 DataSet.CaseSensitive untill explicitly changed.
1665 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
1668 - Pefromance fix in case of null constraint violation
1669 during data load (also in DataTable.cs).
1670 - CollectionChanged() : use correct column number after new DataColumn was added
1671 (differs in case some DataColumn was previosly removed).
1672 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
1674 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
1676 * DataColumnCollection.cs : Since unique constraint is added now
1677 in DataColumn.SetTable() the additional creation of constraint in
1678 DataColumnCollection.Add() is redundant and causes exception - fixed.
1680 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
1682 * XmlDataLoader.cs : Added "never add data rows" mode.
1683 Removed unused code. However, it is temporary fixes to unify
1684 ReadXml() and InferXmlSchema().
1685 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
1687 I'll create another XmlDataLoader since there are many problems
1688 such that 1) it is too waste to read the entire xml into an
1689 XmlDocument, 2) it does not handle attributes correctly, and 3) it
1690 must handle "ignored namespaces".
1692 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
1694 * Added XmlSchemaDataImporter.cs (new schema reader).
1695 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
1696 for ReadXmlSchema().
1697 Let schema reading work to ReadXmlSchema().
1698 Don't return ReadSchema when argument read mode was DiffGram.
1700 2004-04-15 Umadevi S (sumadevi@novell.com)
1701 * Updated Clone/Copy methods in DataSet along with Testcase
1702 * ForeignKeyConstraint.cs - special ctor implemented
1703 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).
1704 * Changes in ConstraintCollection.cs for the above
1705 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.
1708 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
1710 * XmlSchemaMapper.cs : set parent key and foreign key info to
1711 DataRelation when reading refkey constraints.
1712 Supply constraint name for fkey.
1714 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
1716 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
1717 mode is Auto, just ignore the schema if there is already schema info.
1718 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
1720 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
1723 - In MS output, XML declaration looks to have standalone decl (yes).
1724 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
1725 - ReadXml(reader, mode)
1726 1) return originally specified mode, instead of (always) Auto.
1727 2) Check empty reader.
1728 3) Check diffgram schema and content separately.
1729 4) When diffgram exists, remaining (the same-level) contents
1731 5) Similar fact should be applied, but somewhat different.
1732 InferSchema and IgnoreSchema just skips, Fragment reads both
1733 schema and content, others just reads schema.
1734 - Removed unused code.
1735 * XmlDataLoader.cs :
1736 - Read() should skip in some ReadMode.
1737 - Don't compare schema element name as case-insensitive (well,
1738 should schemas be checked here?)
1739 - Avoided BuildDocument() not to create confusing DataSet
1741 - Don't add any tables when reader has single element.
1742 * XmlDiffLoader.cs :
1743 When target table was not found, MS.NET doesn't raise an error.
1744 * XmlSchemaMapper.cs :
1745 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
1747 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
1750 - InferXmlSchema(): Throw explicit NotImplementedException now.
1751 - Don't put XML declaration everywhere. Write just for filename arg.
1752 - xmlns="" should not be written. Maybe WebService problem is
1753 because default namespace is overwritten. This patch will keep
1754 the WS problem away and actually fixes some unit tests (i.e. use
1755 explicit String.Empty for null namespace in WriteStartElement()).
1756 - MoveToContent() should always be called, not only when
1757 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
1758 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
1759 element. As to MSDN, diffgram does not contain schema.
1761 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1763 * DataTable.cs: made _initStatus private so that System.Data is CLS
1766 2004-04-13 Umadevi S <sumadevi@novell.com>
1767 * UniqueConstraint.cs:
1768 * ConstraintCollection.cs:
1770 - Implemented a Constructor for UniqueConstraint.cs
1771 - Used EndInit on DataTable to call a delegate which adds the
1772 constraints passed to the most recent call of AddRange().Used
1773 AddRange() on ConstraintCollection to check whether
1774 DataTable.BeginInit has occurred. If yes, save the argument
1775 constraint collection passed, then return. If no, Check whether the
1776 constraints are of type UniqueConstraint and initialized with the
1777 special constructor If yes Initialized the table property of this
1778 UniqueConstraint object with table assosciated with the current
1779 instance of ConstraintCollection class.
1781 2004-04-07 Marek Safar <marek.safar@seznam.cz>
1783 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
1785 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1788 * DataColumnCollection.cs:
1789 * DataRelationCollection.cs:
1790 * DataRowCollection.cs:
1791 * DataTableCollection.cs:
1792 * InternalDataCollectionBase.cs:
1793 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
1796 2004-04-05 Jackson Harper <jackson@ximian.com>
1798 * DataTable.cs: Add rows to the row list if there is no filter.
1800 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
1802 * DataColumn.cs : Setting Caption to null sets it to the empty string
1803 (ms.net behaviour, testcase is in DataColumnTest).
1805 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
1808 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
1810 * DataColumn.cs: In Expression setter, set the expression member even if
1811 it is an empty string.
1812 * DataSet.cs: Support serialization of byte[] columns.
1813 * XmlDataLoader.cs: Support deserialization of Guid columns.
1814 Set MappingType.Attribute to columns infered from attributes.
1816 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
1818 * ExpressionElements.cs : remove
1819 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
1820 Integration of new Mono.Data.SqlExpressions classes used in
1821 DataTable.{Select, Compute}.
1822 Fixes bug #55503 and lots of failures in DataTableTest.cs.
1824 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
1826 * Index.cs: Simple fix in ComparePartialRowNonUnique.
1827 This fixes bugs #56129 and #56014.
1829 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
1831 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
1832 stream after writing the dataset. This fixes bug #52581.
1833 Also added several writer.Close into finally blocks, so writers are properly
1834 closed in case of an exception.
1836 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1838 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
1839 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
1840 * ColumnTypeConverter.cs: Added stub
1841 * DefaultValueTypeConverter: Added stub
1842 * ConstraintConverter.cs: Added stub
1844 2004-03-04 Eran Domb <erand@mainsoft.com>
1846 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
1847 in MS.NET documentation (missing DataSet element etc).
1849 2004-03-04 Eran Domb <erand@mainsoft.com>
1852 * Index.cs : Rollback last changes.
1854 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
1856 * Index.cs : justa build fix.
1858 2004-03-03 Eran Domb <erand@mainsoft.com>
1861 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
1862 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
1863 This changes made for performance improvement.
1865 2004-02-08 Eran Domb <erand@mainsoft.com>
1867 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
1869 2004-02-08 Eran Domb <erand@mainsoft.com>
1871 * DataSet.cs: Fix some bugs in ReadXml().
1873 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1875 * DataSet.cs: Added missing method that broke the build.
1877 2004-02-04 Eran Domb <erand@mainsoft.com>
1879 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
1881 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
1882 when all column are attributes (elements count is 0), we still want to add the relations. No relations
1883 can be on simple contents.
1884 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
1885 (AddForeignKeys) Check that the relation has constraints attach to it.
1886 * XmlConstants.cs : Added constant.
1888 2004-02-04 Eran Domb <erand@mainsoft.com>
1890 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
1891 DoWriteXmlSchema calls BuildSchema ().
1893 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1895 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
1897 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
1899 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
1900 also be added to the dataset.
1901 In WriteTable(), do not write unchanged rows when writing the original
1902 version of the table.
1903 Added WriteIndividualTableContent(), for writing the contents of a single
1905 Changed BuildSchema and related methods, so it can generate a schema for
1906 any set of tables, not just the tables of the dataset (needed for
1907 single datatable serialization).
1908 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
1909 Also implemented some ReadXmlSchema methods.
1910 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
1911 instead of loading the full dataset in an XmlDocument. It is faster and
1912 saves memory. Also fixed several problems when generating the changes.
1913 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
1914 table serialization).
1916 2004-02-02 Eran Domb <erand@mainsoft.com>
1918 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
1919 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
1920 * DataTable.cs (NewRow): Create only one DataRowBuilder.
1921 Initiate new row with row id -1.
1922 * DataRow.cs : Add RowId property.
1923 * DataRowBuilder.cs : Add _rowId member.
1924 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
1926 2004-01-26 Eran Domb <erand@mainsoft.com>
1928 * XmlConstants.cs : Added some constants.
1929 * DataColumn.cs : Added a method to retrive AutoIncrement value.
1930 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
1931 parent table column.
1932 * XmlDiffLoader.cs : Convert the value comming from the xml.
1933 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
1934 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
1935 (ReadXmlSchemaElement) : Set the locale of the dataset.
1936 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
1937 (GetColumnType) : New method to get the column type from the attribute value.
1938 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
1939 and add the constraint to the table.
1940 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
1942 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
1943 Writing more information to the schema for interoperability with ms.net.
1944 Improve diffgarm writing mode.
1947 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
1949 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
1951 2004-01-21 Eran Domb <erand@mainsoft.com>
1953 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
1954 Do not set the child column to be AutoIncrement.
1955 Create the new column for the relation as MappingType.Hidden so they will not be serialized
1956 when writing the dataset to xml.
1958 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
1960 * Added missing TypedDataSetGenerator.cs.
1962 2004-01-08 Eran Domb <erand@mainsoft.com>
1964 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
1965 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
1966 InferSchema, ReadSchema and IgnoreSchema.
1967 * XmlDataLoader.cs : All modes use the same logic.
1968 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
1970 2004-01-06 Eran Domb <erand@mainsoft.com>
1972 * DataRelationCollection.cs : Use IndexOf in indexer.
1973 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
1974 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
1975 * XmlDiffLoader.cs : Reading nested tables.
1976 * XmlSchemaMapper.cs : Reading the relation.
1977 * XmlConstants.cs : Adding some constants.
1979 2004-01-05 Jackson Harper <jackson@ximian.com>
1981 * DataView.cs: Set readonly property of property descriptor. This
1984 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
1986 * DataRelationCollection.cs : Fixed incorrect generation of default
1988 * DataSet.cs : Added missing functionality in WriteXml().
1989 * XmlConstants.cs : Added new constants.
1991 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
1993 * DataSet.cs : Fixed incorrect WriteXml() signature.
1995 2003-12-18 Jackson Harper <jackson@ximian.com>
1997 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
1999 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
2001 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
2002 they take shape of xml. This fixed bug #52240
2004 2003-12-16 Tim Coleman <tim@timcoleman.com>
2005 * KeyRestrictionBehavior.cs:
2006 New stubs added for .NET 1.2
2010 2003-12-08 Eran Domb <erand@mainsoft.com>
2011 * DataColumn.cs (Expression) : Validate the expression.
2013 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
2014 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
2016 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
2017 (RejectChanges) : Detach row when state was Added.
2018 (CollectionChanged) : Fix a bug.
2020 * ExpressionElement (ValidateExpression) : Fix a bug.
2022 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
2023 a parent row in the parent table.
2024 (_validateColumns) : Fix bugs.
2026 * MergeManager.cs (AdjustSchema) : Fix a bug.
2028 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
2031 2003-11-30 Eran Domb <erand@mainsoft.com>
2032 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
2033 (Add) : Find if the new column name is the same as the one found in IndexOf.
2034 (IndexOf) : New method.
2035 (Contains) : Use new IndexOf.
2036 (IndexOf) : Use new IndexOf.
2038 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
2039 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
2041 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
2042 (Delete) : Detach row if the RowState was Added.
2043 (GetChildRows) : Get the array form the ChildTable.
2044 (GetParentRows) : Get the array from the ParenTable.
2046 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
2048 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
2050 * DataTable.cs (PrimaryKey) : Fix bugs.
2051 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
2053 * DataTableCollection.cs (Add) : Fix a bug.
2055 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
2056 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
2057 Some code style changes (tab instead of whit spaces, alignment, etc...).
2059 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
2061 * MergeManager.cs (AdjustSchema) : Fix a bug.
2065 2003-11-26 Miguel de Icaza <miguel@ximian.com>
2067 * DataSet.cs: Add a few more missing methods, code style updated
2070 2003-11-26 Tim Coleman <tim@timcoleman.com>
2072 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
2073 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
2074 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
2075 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
2076 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
2077 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
2078 * StatementCompletedEventHandler.cs UpdateOptions.cs:
2079 New classes added for NET_2_0
2080 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
2081 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
2082 Modifications to add new NET_2_0 functions
2084 2003-11-25 Tim Coleman <tim@timcoleman.com>
2088 2003-11-21 Pedro Martínez Juliá <yoros@wanadoo.es>
2090 * DataRow.cs: Detached row can be accesible (new rows from data
2091 table are detached). Closes but #51263.
2093 2003-11-19 Eran Domb <erand@mainsoft.com>
2094 * DataRow.cs : Throw exceptions if Row is Detached.
2095 (EndEdit) : Check that we are not in middle of ChangeEvent.
2096 (AcceptChanges) : Detach the row.
2098 * DataRelation.cs : throw correct exception.
2099 *UniqueConstraint.cs : throw correct exception.
2102 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
2104 * DataRow.cs: Use RemoveInternal instead of Remove because the last
2105 one uses Delete and AcceptChanges.
2107 * DataRowCollection.cs: When removing, Delete and AcceptChanges
2108 method from the row are called. Added an internal method that will
2109 be used by DataRow to "physically" remove the row from the list.
2111 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
2113 * DataRowCollection.cs: To follow the specification: Remove and
2114 RemoveAt should remove the row. But needed to call DeletingDataRow
2115 to prepare the deleting.
2117 * DataRow.cs: Don't call DeletingDataRow when it is called by the
2118 method Table.Rows.Remove.
2120 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
2122 * DataRowCollection.cs: Make the row be deleted by itself. If not,
2123 it fails because we need to call OnRowDeleting and OnRowDeleted. It
2124 is full implemented inside DataRow.
2126 2003-11-05 Eran Domb <erand@mainsoft.com>
2127 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
2129 2003-11-04 Eran Domb <erand@mainsoft.com>
2130 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
2132 (GetChildRows) : Adding some checks.
2133 (GetParentRows) : Adding some checks. Fix a bug in implementation.
2134 (SetParentRow) : Added implementation.
2136 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
2137 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
2138 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
2139 * MergeManager.cs : Check that the target table is not null.
2141 2003-10-27 Eran Domb <erand@mainsoft.com>
2142 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
2143 can be converted to the column type.
2145 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
2147 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
2148 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
2150 * DataRowCollection.cs (Add) : Fixing a bug.
2151 (Clear) : Before clearing the array check that there is no violation of FK constraint.
2153 * DataSet.cs (Prefix) : If value is null chage it to empty string.
2154 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
2156 * ExpressionElement : Adding support for IN expresion.
2158 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
2159 (Select) : Adding support for DataViewwRowState.
2161 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
2163 * MergeManager.cs (MergeRow) : Fix bugs.
2165 2003-10-27 Eran Domb <erand@mainsoft.com>
2166 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
2167 check null values when ending loading data.
2169 * DataSet.cs (RejectChanges) : Imlementation.
2170 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
2171 change it to empty string.
2173 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
2175 2003-10-22 Eran Domb <erand@mainsoft.com>
2176 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
2178 * ConstraintCollection.cs (RamoveAt): Change implemntation.
2180 * DataTableCollection (CanRemove): Removing cast to Constraint.
2182 2003-10-22 Eran Domb <erand@mainsoft.com>
2183 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
2184 (Clear): The collection was cleared without removing the relation from the parent and child tables.
2186 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
2187 (HasChanges, Reset): Imlementation.
2189 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
2190 This is because the we do not no when to turn off the flag.
2191 (Locale): Changing implementation to behave like ADO.NET.
2192 (AcceptChanges): Fix bug.
2193 (Clear): Check that this table is not referenced from a foreign key constraint.
2194 (Copy): Do not try to access a deleted row.
2195 (CopyProperties): Copy the PrimaryKey.
2196 (GetChanges, ImportRow): Implementation.
2197 (LoadDataRow): Adding implementation if the table has PrimaryKey.
2198 (ToString): Changing implementation to behave like ADO.NET.
2200 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
2202 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
2203 (HasErrors): Implementation.
2204 (Delete): Added checking for child rows of the deleted row.
2205 (EndEdit): Added checking for child row and firing events.
2206 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
2207 (GetColumnsInError): Added a check for null values in column error.
2208 (HasVersion): Added special treatment for special RowState.
2209 (CollectionChanged): More checks to avoid NullReferenceException.
2211 * DataRowCollection.cs (Remove): Fix a bug.
2214 2003-10-01 Duncan Mak <duncan@ximian.com>
2216 More patches from Eran Domb <erand@mainsoft.com>.
2218 * MergeManager.cs: New file.
2220 * DataRelationCollection.cs (AddCore): Check that a
2221 UniqueConstraint is already exists. It loops over the Relations
2222 instead of the Constraints.
2223 (Add, AddCore): The relation was added twice.
2225 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
2227 2003-09-30 Duncan Mak <duncan@ximian.com>
2229 Patches from Eran Domb <erand@mainsoft.com>.
2231 * DataRelation.cs (constructor): When the name of the relation is
2232 null, it should return an empty, not "Relation".
2234 * DataRow.cs (AcceptChanges): Added special case for
2236 (CancelEdit): Set editing flag to false.
2237 (IsNull): Check that the value is DBNull.
2239 * DataRowCollection.cs (Add): There was no check that the table of
2240 the collection is owned by a DataSet.
2242 * DataSet.cs (OnMergeFailed): Added.
2244 * UniqueConstraint.cs (AssertConstraint): There was no check that
2245 values in the row are not null, where it is a primary key
2246 column. Also check that the row has a proposed version, if not,
2247 get the current version when we compare the rows.
2249 2003-09-25 Duncan Mak <duncan@ximian.com>
2251 Patches from Eran Domb <erand@mainsoft.com>.
2253 * DataColumn.cs (Unique): Implemented.
2256 * ConstraintCollection.cs:
2257 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
2258 an Exception thrown. Details:
2259 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
2261 * DataRowCollection.cs (Add): There is no checking that there is
2262 no violation of the unique constrains.
2264 * UniqueConstraint.cs (AssertConstraint): There is no checking on
2265 all columns in the constraint.
2267 * DataTableCollection (Add): Correctly throw an Exception, more
2269 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
2270 (Remove, RemoveAt): Implemented.
2272 2003-07-31 Duncan Mak <duncan@ximian.com>
2274 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
2276 2003-07-25 Ravi Pratap <ravi@ximian.com>
2278 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
2279 method on a delegate is disallowed - fix this.
2281 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
2283 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
2284 xml serialization. Modified method of writing schema. Now it creates
2285 a XmlSchema object and serializes it using XmlSerializer.
2286 * XmlConstants.cs: Added constants for data type names.
2287 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
2288 type specified in the column.
2290 2003-04-20 Alan Tam <Tam@SiuLung.com>
2292 * DataRelationCollection.cs: Fix a bug that prevent relations
2293 from being added via DataSet.
2295 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
2297 * UniqueConstraint.cs: one tiny fix.
2299 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
2301 * DataTable.cs: Remove UniqueConstraints when adding new ones
2303 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
2305 * DataColumnCollection.cs: Little 'case sensitive' fix
2307 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
2309 * DataRow.cs: AutoIncrement handling to Constructor
2310 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
2312 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2314 * DataTable.cs: Some fixes to PrimaryKey etc...
2315 * UniqueConstraint.cs: Little clean up
2317 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2319 * DataTable.cs: Tiny fix to ToString () -method
2321 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2323 * ConstraintCollection.cs: Little fix.
2324 * DataColumn.cs: Added new internal method SetUnique()
2325 * UniqueConstraint.cs: some little fixes
2327 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
2329 * DataRowCollection.cs: Bugfixes, implementation,...
2331 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
2333 * DataColumn.cs: If DataType if set to something else than short, int
2334 or long and AutoIncrement is true, AutoIncrement is must set to false.
2336 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2339 (BeginEdit): fixed array bound problem when a column has been added.
2340 (EndEdit): just assign proposed to current as proposed is set to null.
2341 This also fixes another array boudn problem.
2343 2003-03-21 Alan Tam <Tam@SiuLung.com>
2345 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
2346 EndEdit and AcceptChanges to act correctly according to DataRowState
2348 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
2349 attached and detached from the collection.
2351 2003-03-20 Alan Tam <Tam@SiuLung.com>
2353 * DataColumn.cs: Store empty string for Expression when null is passed in.
2354 Classes generated by XSD.exe passes null by default.
2356 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
2358 * DataColumnCollection.cs: Tiny clean up
2360 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
2362 * DataColumn.cs: little fixes.
2363 * DataColumnCollection.cs: Lots of little fixes and improvments.
2365 2003-03-12 Alan Tam <Tam@SiuLung.com>
2367 * DataSet.cs: Fixed a bug that the file written does not close correctly.
2369 2003-03-08 Alan Tam <Tam@SiuLung.com>
2371 * DataRelationCollection.cs: Removed the mis-overridden methods
2372 * DataRow.cs: Fixed an attribute
2373 * DataSet.cs: Fixed the modifiers
2375 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
2377 * DataTableCollection.cs: The Contains (string name),
2378 IndexOf (string name) methods, and item[string name] indexer
2379 now behave more like .NET with respect to case-sensitivity.
2380 That is if there is an exactly matching item then this one is used.
2381 If there is only one item differing in case then it used.
2382 If there are more than one item differing in case then
2383 Contains returns false, IndexOf returns -1, and item[]
2384 throws an ArgumentException.
2386 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
2388 * ExpressionElement.cs: More implementation.
2390 2003-02-28 Alan Tam <Tam@SiuLung.com>
2391 * DataSet.cs: Changed WriteTable so that it now calls the newly written
2392 WriteObjectXml to direct the call to the respective XmlConvert method.
2393 This fixes the wrong format written to XML files of bool, float,
2394 double, DateTime and TimeSpan types.
2396 2003-02-25 Alan Tam <Tam@SiuLung.com>
2398 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
2399 * DataRelationCollection.cs: Implemented AddRange and Contains.
2400 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
2401 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
2402 Reimplemented most Add methods to eliminate duplicated checks.
2403 Centralized RelationName generation procedure in GetNextDefaultRelationName.
2405 2003-02-25 Alan Tam <Tam@SiuLung.com>
2407 * DataColumn.cs: Fixed wrong storage representation of Expression
2408 (using empty string instead of null) so that ToString() returns nothing.
2409 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
2410 auto column naming now works as expected. Reimplemented some Add methods
2411 to eliminate code duplication.
2413 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
2415 * DataTable.cs: DataTable.CaseSensitive follows parent
2416 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
2417 been changed directly from DataTable
2419 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
2421 * DataSet.cs: When CaseSensitive property is changed all of the Tables
2422 of DataSet have to change too
2424 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
2426 * InternalDataCollectionBase.cs: revert change to field
2429 * DataViewManager.cs
2432 * DataSet.cs: commented use of DesignerAttribute
2433 because it broke the build. According to MSDN,
2434 DesignerAttribute does not have a zero-argument constructor
2436 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
2438 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
2440 2003-02-18 Alan Tam <Tam@SiuLung.com>
2442 * DataRow.cs: Implemented GetParentRow and GetParentRows.
2443 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
2444 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
2445 RaisePropertyChanging.
2446 * DataTable.cs: Implemented NewRowArray.
2447 * DataTablePropertyDescriptor: Fixed a modifier.
2448 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
2449 * PropertyCollection.cs: Minor fix.
2450 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
2451 * DataRelation.cs DataRelationCollection.cs DataRow.cs
2452 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
2453 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
2454 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
2455 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
2456 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
2458 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
2460 * ExpressionElement.cs: More implementation
2462 2003-02-05 Alan Tam <Tam@SiuLung.com>
2464 * DataSet.cs: Added framework for DataSet.Update Implemented missing
2465 methods GetSchemaSerializable, GetSerializationData,
2466 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
2468 * DataTable.cs: Implemented missing methods CreateInstance and
2469 GetRowType for DataTable
2471 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
2473 * DataSet.cs: Implemented private method MapType for
2474 mapping datatypes for XmlSchema
2476 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2478 * DataView.cs: implemented Dispose.
2480 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
2482 * ExpressionElement.cs: Added new file. This file is for parsing
2483 and DataData.Select () -methods and DataColumn.Expression -property
2484 * DataTable.cs: Implemented Select(string) -method
2486 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
2488 * DataSet.cs: One little fix to writing xml
2490 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
2492 * XmlSchemaMapper.cs: Some fixes.
2493 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
2496 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
2498 * UniqueConstraint.cs: Do not set columns Unique property true
2500 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
2502 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
2504 * DataTableCollection.cs: Now names new DataTable if it doesn't
2505 already have a name.
2507 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
2509 * XmlSchemaMapper.cs: Improvments.
2510 * XmlConstaints.cs: Added more constants.
2511 * DataSet.cs: Improvments of reading and writing xml
2512 * DataColumn.cs: Added default values of properties.
2514 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
2516 * XmlSchemaMapper.cs: Some improvments
2518 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
2520 * DataRowCollection.cs: Added IndexOutOfRangeException
2521 * DataTableCollection.cs: Added OnCollectionChanging and
2522 OnCollectionChanged events.
2523 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
2524 * DataTable.cs: Implemented Copy () and Clone () methods.
2525 * XmlDataLoader.cs: some fixes.
2526 * XmlSchemaMapper.cs: comments.
2528 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2530 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
2532 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2534 * DataColumnPropertyDescriptor.cs: fixed typo.
2535 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
2536 to get the DataViewManager and removed TablePD class.
2537 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
2538 suggested by danmorg.
2540 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
2542 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
2544 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
2545 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
2547 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2549 * DataView.cs: made dataViewManager internal.
2550 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
2551 properties of the object, but the values of the columns present in a
2554 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
2555 which returns a PropertyDescriptorCollection. Created a new class
2556 derived from PropertyDescriptor that treats Table as an object whose
2557 properties are DataRowView.
2559 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
2561 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
2563 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
2565 * DataColumn.cs: ExtendedProperties is by default !null-
2567 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
2569 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
2570 set column's ordinal.
2572 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
2575 * XmlDataLoader.cs: XmlReader closing fixes.
2576 * XmlSchemaReader.cs: Added support for ref=
2578 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
2581 - Added XmlReader and XmlWriter Closing.
2582 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
2583 * XmlSchemaMapper.cs
2584 - Much better way IMHO to map xmlschema than the old one in
2585 DataSet.cs. Its, more flexible, cleaner, ...
2587 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
2589 * XmlDataLoader.cs: Reading diffgrams.
2591 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
2593 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
2594 * DataTable.cs: Added ChanginDataColumn () for triggering
2595 DataColumnChanging event
2597 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
2599 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
2601 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
2603 * DataSet.cs: Indentations to WriteXml ()
2605 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
2608 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
2609 class XmlDataLoader.cs
2611 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
2613 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
2615 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
2617 * DataSet.cs: Started to implement ReadXml-methods.
2619 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2621 * DataSet.cs: implemented DefaultViewManager and GetList.
2623 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
2624 DataList in System.Web.
2626 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
2629 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
2632 * DataTable.cs: Fixed NullException (rollback -event)
2633 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
2635 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
2638 * DataRowCollection.cs: Moved event triggering from DataRow to
2641 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
2643 * DataSet.cs: Little fix to WriteTable () -method
2644 and DoReadXmlSchema () -method.
2646 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
2648 * DataSet.cs: Clean up to reading xmlschema. This looks much better
2649 now (work better too), but it not working correctly yet.
2651 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
2654 * DataRowCollection.cs: Added some event handlins stuff.
2655 * DataSet.cs: Some fixes.
2656 * DataTable.cs: Added event handlers.
2658 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
2660 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
2662 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
2664 * System.Data/DataRow.cs: Added internal property XmlDataID
2666 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
2668 * DataSystem.Data.DataTableCollection.cs:
2669 Removed HashTable. There could be situations where DataTable
2670 is added to collection before it hava TableName. So using
2671 HashTable is impossible.
2673 2002-11-19 Carlos Guzmán Álvarez <carlosga@telefonica.net>
2675 * DataRow.cs: an object that is equal to null
2676 should be allowed to be set in this indexer too
2679 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
2681 * DataColumnPropertyDescriptor.cs: added file
2683 * System.Data/DataRowView.cs: started implementation
2685 * DataTable.cs: stubbed more interfaces. Implemented
2686 IListSource.GetList()
2688 * DataView.cs: stubbed more interfaces. Implemented
2689 some properties and methods: GetEnumerator(),
2690 ITypedList.GetItemProperties, Item indexer, CopyTo()
2692 2002-05-18 Nick Drochak <ndrochak@gol.com>
2694 * DataRow.cs: Fix typo.