1 2005-06-10 Sureshkumar T <tsureshkumar@novell.com>
3 * MergeManager.cs: Temporarily disable EnforceConstraints while
4 doing a dataset Merge. Patch from george.barbarosie@gmail.com
7 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
9 * DataView.cs: fixes GetListName
11 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
13 * XmlSchemaConstants.cs,
14 XmlSchemaDataImporter.cs,
15 XmlSchemaWriter.cs : AutoIncrementStep support. Patch partly by
16 George Barbarosie. Fixed bug #75121.
17 * XmlSchemaMapper.cs : it is not used anymore, so just removed.
19 2005-05-31 Boris Kirzner <borisk@mainsoft.com>
20 * DataRow.cs : SetParentRow on Detached row with no Default version throws an exception.
22 2005-05-29 Konstantin Triger <kostat@mainsoft.com>
24 * This patch fixes #74813
25 * DataView.cs: rework the CreateChildView to receive the index into the indexed row array, rowState became protected to be initialized from RelatedDataView
26 * DataRowView.cs: movo the logic of creating the child view to the DataView
27 * RelatedDataView.cs: perform correct init.
29 2005-05-25 Sureshkumar T <tsureshkumar@novell.com>
31 * DataTable.cs: Reworked DataTable.LoadDataRow method after
32 regressions caused by Index redesign.
33 * DataRow.cs: Load : reworked.
35 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
37 * ISafeDataRecord.cs: Added GetDateTimeSafe method, the interface was made derived from IDataRecord
39 2005-05-22 Konstantin Triger <kostat@mainsoft.com>
41 * 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
43 2005-05-20 Sureshkumar T <tsureshkumar@novell.com>
45 * DataTable.cs: CreateRecord :value should be set to auto
46 increment value or default value if the given value is null.
48 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
50 * DataTable.cs: In DataTable.LoadDataRow with LoadOption - reverting the search order back to Original -> Current (by Suresh request)
52 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
54 * DataRow.cs, DataTable.cs: code under net_2_0 changed to use the new interface
55 * DataTable.cs: Added CompareRecords, which compares records in column order
58 2005-05-16 Sureshkumar T <tsureshkumar@novell.com>
61 * DataTable.cs: quick fix to make build 2.0 profile (follow up for
62 check in 2005-05-16). Merge with previous changes.
64 2005-05-11 Sureshkumar T <tsureshkumar@novell.com>
66 fix for "import row does not import deleted records"
68 * UniqueConstraint.cs: Make a way to access value even from a
69 deleted record. deleted records are added to the collection by
73 - Added restriction-less methods GetValue to fetch a
74 value even if it is in deleted state.
75 - If a row is detached, don't try to delete it from indexes.
76 - sanity check for record_index in CopyValuesToRow method
78 2005-05-05 Sureshkumar T <tsureshkumar@novell.com>
80 * DataTableReader.cs: Implemented Delete handler and move the
81 current pointer accordingly.
83 2005-05-04 Sureshkumar T <tsureshkumar@novell.com>
85 * DataTableReader.cs: Added event handlers to make reader stable
86 when the datasource is modified. Thanks to Umadevi for giving the
87 review comments for this implementation.
89 * DataTable.cs: Clear (): Raise TableCleared event.
91 * DataTableClearEventArgs.cs: Args for DataTableClearEventHandler.
93 * DataTableClearEventHandler.cs: Handler for DataTable.TableClear
96 * DataRow.cs: AcceptChanges: raise row changing & row changed
99 * DataRowCollection.cs: Clear : remove rows from indexes
101 2005-05-02 Atsushi Enomoto <atsushi@ximian.com>
103 * XmlSchemaDataImporter.cs : XmlSchemaParicle might be XmlSchemaAny.
104 This fixes bug #74784.
106 2005-04-29 Sureshkumar T <tsureshkumar@novell.com>
108 * DataTableReader.cs: removed use of _first. throw if given index
109 is out of range of columns. Copy DataTable [] to local array so
110 that not to be disturbed.
112 2005-04-27 Sureshkumar T <tsureshkumar@novell.com>
114 * DataTableReader.cs: Implemented most of the TODO.
116 2005-04-22 Sureshkumar T <tsureshkumar@novell.com>
118 * LoadOption.cs: Changed the enums. Keeping old values for
121 * DataTable.cs: Implemented methods Load and its overloads. Also
122 implemented LoadDataRow.
124 * DataRowCollection.cs: Added a variation of the Find method to
125 return a row even if it is of state Deleted. This is required for
126 DataTable.LoadDataRow method.
128 * DataRow.cs: Implemented internal helper method Load for loading
129 values from an object array and given an LoadOption (2.0 feature).
131 * DataRowAction.cs: Added few more enums for .net 2.0. Sorted
134 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
136 * UniqueConstraint.cs : IsNull check is relevant for rows having default row version.
137 * DataTable.cs : The row should be validated when imported
138 * DataRowCollection.cs : if the row does not contain Proposed neither Current version, it's irrelevant for validation
140 2005-04-26 Boris Kirzner <borisk@mainsoft.com>
142 * UniqueConstraint.cs :
143 - Add indication whenever the constraint belongs to collection.
144 - Calculation of IsPrimaryKey simplified.
145 - If constraint is based on single column, the column becomes unique.
146 - Use boolean IsConstraintViolated() instead of AssertConstraint().
147 - Use Index.Duplicates to proper exception message formatting.
148 - AssertConstraint(DataRow) changed to suite new indexes interface.
149 - Added CanRemoveFromCollection method.
150 - Contains() method renamed to IsColumnContained().
151 * RelatedDataView.cs : added new class.
153 - Reset indexes after merge.
154 - Add new tables when row array is merged into dataset.
155 - Clean proposed record in MergeRow.
156 - Inherit nesting on creating new relations in target data set.
157 - Avoid double loop on constraints collection.
158 * Locale.cs : added new class.
159 * ISafeDataRecord.cs : added new interface.
160 * Index.cs : commented out. Index implementation moved to System.Data.Common.
161 * ForeignKeyConstraint.cs :
162 - No more use of childColumnsExtended since new indexes allow duplicate records.
163 - Constraints can not be created on expression columns.
164 - Removed unnecessary delegation.
165 - Use boolean IsConstraintViolated() instead of AssertConstraint().
166 - Use proper exception message formatting.
167 - Contains() method renamed to IsColumnContained().
168 * DataViewRowState.cs : use enum members to simplify notation.
169 * MergeManager.cs : implemented RelationCollectionChanged().
170 * DataView.cs : new implementation.
171 * DataTableCollection.cs :
172 - Added boundary check in indexer.
173 - More accurate handling in AddRange().
174 - Raise event in Remove().
176 - Hold primary key as constraint.
177 - Added accurate handling of DefaultView.
178 - Hold DataRowBuilder per table.
179 - Proper exception messages if enforce Constraints is violated.
180 - If there is no rows, Compute() returns DBNull.
181 - Use DataRow properties instead of private members.
182 - CopyProperties() fixed.
183 - Raise proper events in EndInit().
184 - Proper order of violation checks in EndLoadData().
185 - Create array of rows using NewRowArray().
186 - ImportRow handles rows according to their versions.
187 - LoadDataRow make use of records (instead of raw object array).
188 - Added and implemented LoadDataRow() that gets IDataRecord as a parameter (used in Fill)
189 - Select() uses indexes filtering and sorting ability (instead of "loop-throw-sort" approach).
190 - Removed redundant RowSorter and Sortable column classes.
191 - ParseSortString() fixed to threat bracketed column names.
192 - Table holds collection of property descriptors.
194 - Reset table case sensitive indexes on CaseSensitive change.
195 - EnforceConstraints update logic moved to internal method (used by DataTable).
196 - InAddChangedRow first add row and than copy values for proper handling of default values.
198 - Changed private member names to suite name convention.
199 - CancelEdit() fixed.
200 - CreateChildView() delegates to DataView.
202 - Proper exception messages in indexers.
203 - RowVersion uses DataView.
204 - GetProperties() delegates to corresponding table if needed.
205 * DataRowCollection.cs :
206 - Common Add() logic moved to AddInternal() (used also by DataTable).
207 - Removed redundant check from Contains().
208 - Dalegate Find() calls when possible.
210 - RomoveAt() delegates to Remove().
211 - Optimized constraints check in row validation.
212 * DataRelationPropertyDescriptor.cs : added new class.
213 * DataRelationCollection.cs :
215 - Fixed order of actions in AddCore().
216 - RemoveCore() also delegates to base.
217 - Add relation to dataset also in AddCore().
218 - Remove relation from dataset also in RemoveCore().
219 - InTransition hold a data relation so we can properly identify the "in transition" state.
220 - Added threat of parent and child table s property descriptors in Add().
221 - Common Add() logic moved to AddCore().
223 - Remove() threats "in transition" state properly.
224 - Remove methods delegate to single implementation.
225 * DataColumnPropertyDescriptior.cs :
226 - Added new constructor.
227 - Commented out redundant method.
228 * DataColumnCollection.cs :
229 - Boundary check in indexer.
230 - RegisterName and UnregisterName become internal (used also by DataColumn).
233 - Rethrow correct exception in Clear();
234 - Change in collection resets parent table property descriptors.
235 - Added PostEndEdit() helper method (used by DataTable).
237 - Private member names changed to suite name convention.
238 - Created method for CanAutoIncrement() logic.
239 - Proper handling of column name update.
240 - Proper exception messages on expression update.
241 - Proper namespace handling (delegates to table when needed).
242 - Removed redundant check in Unique update.
243 - Implemented internal Clone().
244 - GetParentRalation() and GetChildRelation() become private.
246 - Added abstract methods (implemented in UniqueConstraint and ForeignKeyConstraint).
247 - Simplified index update.
248 * ConstraintCollection.cs :
249 - Use Locale instead of CaseSensitive in column names comparison.
251 - Rethrow correct exception type in Add().
252 - Proper update of table primary key in Add().
253 - Delegate CanRemove() to constraint.
254 - Remove table primary key in Clear();
255 - Delegate "can remove" check to constraint in Remove().
256 - Removed unnecessary methods and properties.
258 - RowSate becomes calculated property.
259 - Use properties instead of private members where possible.
261 - Fixed order of actions in ItemArray update.
263 - Added ImportRecord() method.
264 - Removed redundant SetValuesFromDataRecord().
265 - Fixed IndexFromVersion().
266 - Added VersionFromIndex() method. Returns row version the passed record index corresponds to.
267 - Fixed AcceptChanges().
268 - Fixed creating proposed version in BeginEdit();
269 - Added record disposal in Delete().
270 - Fixed CheckChildRows().
271 - EndEdit() fixed. Checks for readonly. Uses straight flow instead of "try and fix if fail" approach.
272 - GetChildRows() and GetPrarentRows() rewrited. Use records and indexes for rows lookup.
273 - GetColumnError() delegates to another implementation.
274 - HasVersion() fixed.
275 - RejectCahnges checks on child rows before passing through.
276 - SetParentRow() fixed. Create relation collection if needed. Use typed data container value copy.
277 - CopyErrors() logic moved to separate method (used also by DataTable).
278 * ExpressionElement.cs : added new class.
279 * Res.cs : added new class.
281 2005-04-20 Jordi Mas i Hernandez <jordi@ximian.com>
283 * DataViewManager.cs: implements TypedList.GetListName used in SWF
285 2005-04-19 Atsushi Enomoto <atsushi@ximian.com>
287 * DataRowView.cs : indexer should access to DataRow with proper
288 DataRowVersion. Fixed bug #74650.
290 2005-04-18 Sureshkumar T <tsureshkumar@novell.com>
292 * DataRow.cs: if there are no mapping fields, fill with default
295 2005-04-17 Atsushi Enomoto <atsushi@ximian.com>
297 * DataView.cs : Delete() should not try to remove row twice.
300 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
302 * DataTable.cs : Use GetRowType() for the base of the returning array
303 type of Select(). Fix by Gerhard Rittweger.
304 * CustomDataClassGenerator.cs : Fixed slightly harmless wrong code.
306 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
308 * CustomDataClassGenerator.cs : custom relation was not added to
309 Relations property. The second entry of bug #69276 was fixed.
310 Patch by Daniel Rodriguez.
312 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
314 * DataRowCollection.cs: Fix the signature of the Add method
317 2005-03-16 Atsushi Enomoto <atsushi@ximian.com>
319 * DataRow.cs : on importing row, it was copying data from incorrect
320 DataRow. This fixes bug #73288.
322 2005-03-07 Jackson Harper <jackson@ximian.com>
324 * DataViewManagerListItemTypeDescriptor.cs: Implement missing
325 features. These are needed for System.Windows.Forms databinding.
327 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
329 * DataColumn.cs : setting negative value on MaxLength of SimpleContent
330 column is still valid.
332 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
334 * XmlSchemaWriter.cs : new file for outputting XmlSchema.
335 * DataSet.cs : removed rewritten code in XmlSchemaWriter.
336 * XmlConstants.cs : added UseCurrentCulture constant.
338 Use new Xml Schema writer.
339 Use XmlSchemaDataImporter as we use in DataSet.
341 2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
343 * DataView.cs, DataRowView.cs : Fixed bug #72421. CreateChildView()
344 should target only child rows.
346 2005-02-03 Atsushi Enomoto <atsushi@ximian.com>
348 * DataViewManager.cs: misuse of ReadStartElement(string).
349 * DataRowView.cs : removed some MonoTODO.
351 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
352 Ankit Jain <radical@corewars.org>
354 * DataColumn.cs: throw exception if the column is part of a
355 relationship, when chaning the data type. Added methods
356 "GetParentRelation ()" and "GetChildRelation ()" get the relation
357 which contains the current column
358 * DataRelation.cs: Added method "Contains (DataColumn)" to check
359 whether the relation contains the given column.
361 fixes nunit failure: DataRelationTest.InvalidConstraintException2.
363 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
365 * DataColumnCollection.cs: implemented todo item "check for
366 constraints" when removing columns from table.
367 * DataRowCollection.cs: Clear (): don't have to throw child key
368 constraint exception when the child table does not have any
369 rows. safe to remove parent rows.
370 * UniqueConstraint.cs: added method "Contains (DataColumn)" to
371 check whether a column is part of UniqueConstraint.
372 * ForeignKeyConstraint.cs: added method "Contains (DataColumn,
373 lookInParent)" to check whether a column is part of foreignkey.
375 fixes nunit failure: DataTableTest.ClearTest ()
377 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
379 * ForeignKeyConstraint.cs: validating columns: move checking
380 "tables are of same dataset" before "checking column types".
382 fixes nunit failure: ForeignKeyConstraint.CtorExceptions.
384 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
386 * DataViewManager.cs : let's just use StringWriter instead of
387 XmlTextWriter (to avoid empty tag string mismatch annoyance.)
388 * DataView.cs : implemented BeginInit() and EndInit(). Don't update
389 rows during init phase until EndInit() is invoked. During init phase,
390 just hold properties such as Sort that affects on rows.
392 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
394 * DataTableCollection.cs : (RemoveAt) just use IndexOutOfRangeException.
396 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
398 * DataView.cs : DataRowView.EndEdit() raises ItemMoved event.
399 set_Table clears Sort and RowFilter.
401 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
404 - Clear() should clear AddNew cache.
405 - Open() invokes Reset().
406 - ConstraintCollectionChanged() itself does not invoke OnListChanged().
407 - Reset() does not Open, Close and Update Index.
408 - UpdateIndex() can be invoked even if it has no table.
409 - Reset event is invoked always after actual query to table.
410 - set_Table should raise PropertyDescriptorChanged event.
412 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
414 * DataView.cs : ColumnCollectionChanged() is the event invoker (i.e.
415 when overriden, no column change events are fired).
417 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
419 * DataView.cs : CancelEditRowView() and DeleteRowView() was incorrectly
420 checking target tables. They also should raise events if required.
422 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
424 * DataView.cs : simplify code with UnsortedList.
426 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
428 * DataView.cs : Mostly reimplemented.
429 - UpdateIndex() is invoked only when it is required (results in
430 significant performance improvement).
431 - Use SortedList and wrapper OptionalSortedList which switches
432 between SortedList (with Sort) and UnsortedList (without Sort).
433 - DataView itself now contains two collections for rowviews:
434 Table rows based pool and AddNew() based cache. Consider those
435 two collections in every members.
436 - Reset() does not clear rows. Just invokes UpdateIndex().
437 - Hook RowDeleting, ColumnChanging and ColumnChanged events in table
438 which is required to handle state changes.
439 - Reimplemented Find() and FindRows() because of internal changes.
441 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
443 * DataTable.cs : Fixed row comparer. Even if every of the sort target
444 columns are identical for two rows, they should not be regarded as
445 the same unless they are Object.ReferenceEquals.
447 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
449 * DataRowCollection.cs : on adding a row, should raise
450 ChangingDataRow() as well as ChangedDataRow().
452 2005-01-31 Sureshkumar T <tsureshkumar@novell.com>
454 * DataRow.cs: SetParentRow (): use relation.ParentColumns &
455 relation.ChildColumns instead of relation.ChildKeyConstraint.*
456 because createConstrains flag may be false when creating data
457 relations. Hack along with Ankit Jain.
459 2005-01-31 Atsushi Enomoto <atsushi@ximian.com>
461 * DataView.cs :some interface implementations.
463 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
465 * DataView.cs : Add to table only when the row is not in the table.
467 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
469 * DataView.cs : implemented FindRows() (btw we should not use
470 DataTable since there are detached rows by AddNew().)
472 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
475 Code cleanup: privatify some members, remove unused methods.
476 Some event-based invocation methods should not raise NotImplemented.
478 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
480 * DataSet.cs : ReadXml() became closer to MS behavior, being hacky.
482 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
484 * XmlSchemaDataImporter.cs : empty element is not regarded as a column.
486 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
488 * UniqueConstraint.cs : mostly reverted the previous patch + check
489 IsPrimaryKey before validation.
491 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
493 * DataView.cs : Fixed duplicate insertion to Hashtable.
494 * UniqueConstraint.cs : Unique constrained pair of columns could be
497 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
500 Don't do anything for Sort/ApplyDefaultSort/RowFilter/RowStateFilter
501 when the same value is being set.
502 Examined UpdateIndex() and marked FIXME where MS does not invoke it.
503 Removed unused OnColumnChanged().
504 Now store rowViewPool and reuse DataRowView objects.
505 Optimized UpdateIndex() - avoid ArrayList. Avoid Haashtable.Rehash().
507 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
509 * DataViewSettings.cs : no MonoTODO anymore.
510 * DataViewManager.cs : pass itself to new DataView() (new ctor).
511 * DataRowView.cs : GetHashCode() returns its Row's hash.
512 * DataTablePropertyDescriptor.cs : use new ctor().
513 * DataView.cs : added new ctor()s that accept DataViewManager.
515 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
517 * DataView.cs, DataRowView.cs : AddNew() should not add the row to table
518 (it is still detached). So handle those rows differntly.
519 CancelEdit(), EndEdit() and Delete() propagates those events to
520 DataView (and handle row collection).
521 Eliminate "throw new Exception()".
522 Don't catch all the exception thrown in ListChanged event.
523 * DataTable.cs : made RowSorter as internal and use it in DataView.
524 no need to pass DataRow[] to .ctor().
526 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
528 * DataTable.cs : don't create DefaultView unless it is required. It
529 significantly improves performance. (i.e. DataView perf. is sick ;-)
531 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
533 * DataViewSetting.cs,
534 DataViewSettingCollection.cs,
535 DataViewManager.cs : implemented basic members.
537 2005-01-26 Atsushi Enomoto <atsushi@ximian.com>
539 * Node.cs, DataColumnPropertyDescriptor.cs, DataTable.cs :
540 Eliminate "throw new Exception".
542 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
544 * DataRow.cs : (set_Item) RowNotInTableExeption check should be done
545 regardless of index existence.
547 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
549 * DataTable.cs : use new IExpression.EvalBoolean() to avoid extraneous
552 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
554 * DataTable.cs: ImportRow :Do not add to rows collection if the
555 import row is in detached state.
557 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
559 * DataRow.cs: CopyValuesToRow : set the column value with the
560 default version of the given row.
561 * DataTable.cs: ImportRow: Copy values before adding row.
562 * DataSet.cs: AddChangedRow: Add the row to the table after
565 Fixes bug #67317. Patch by Ankit Jain.
567 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
569 * DataRowView.cs : Fixed IsEdit to reflect correct status of DataRow.
570 * DataRow.cs : Expose editing status internally.
572 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
574 * DataView.cs : missing attributes.
576 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
578 * DataRowView.cs : implemented CreateChildView().
580 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
582 * DataTable.cs, DataView.cs :
583 Optimized DataView to compile only once RowFilter and Sort when
584 those properties are set. To make it possible, extracted
585 SortableColumn out of DataTable and added internal DataTable.Select()
586 that accepts precompiled IExpression and SortableColumns[].
588 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
590 * DataColumn.cs : set_MaxLength is not allowed when it is mapped to
591 SimpleContent. (However, it is weird but it never fails when we set
592 ColumnMapping = MappingType.SimpleContent when we fhave MaxLength.)
594 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
596 * DataRow.cs : more Current -> Default fixes. Check if it should throw
597 VersionNotFoundException. Patch by Ankit Jain.
599 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
601 * DataRow.cs : Default selects the right version for the current
602 state of the row. Current is not always available. Also change
603 that for GetParentRow(). Patch by Ankit Jain.
605 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
607 * DataTable.cs : CopyColumn() should copy AutoIncrement after
608 DefaultValue, or it will raise an error in some cases.
610 2005-01-20 Atsushi Enomoto <atsushi@ximian.com>
612 * ConstraintCollection.cs : Add() should throw ArgumentException when
613 the argument constraint fails validation.
614 DataTable.cs : set_PrimaryKey should throw ArgumentException when
615 the argument contains constraints which fail validation.
617 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
619 * DataRelationCollection.cs:
621 Method Remove : Donot throw exception if DataRelation argument is
622 null in DataRelationCollection.Remove method.
624 Method RemoveAt : Exception should be IndexOutOfRangeException if
625 row index is not in list range.
627 Fixes nunit failures DataRelationCollection.Remove and
628 DataRelationCollection.RemoveAt.
630 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
632 * ConstraintCollection.cs: Donot throw exception if constraints
633 are null in AddRange method. Check for null before using the
638 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
640 * XmlDataInferenceLoader.cs,
641 XmlDataReader.cs : Check if the XmlReader (node) represents DataSet
642 or a table, reusing code block in XmlDataInferenceLoader.
643 This fixes bug #60118.
645 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
647 * XmlDiffLoader.cs : Ankit Jain <radical@imt.ac.in> has a conflicting
648 patches and some good catches. Some attributes should be skipped,
649 and loaded value must be typed.
651 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
654 XmlDataInferenceLoader.cs,
655 XmlDataReader.cs : use common const for http://www.w3.org/2000/xmlns/.
656 * XmlDiffLoader.cs : It was not handling attributes. Fixed bug #70961.
658 2005-01-18 Sureshkumar T <tsureshkumar@novell.com>
660 Fix for bug #66838. This patch is submitted by "Ankit Jain"
661 <radical@corewars.org> and refactored.
663 * DataRow.cs: Allows to set a parent row even if the row is in
666 * DataRelation.cs: method "UpdateConstraints" is added to check
667 and create missing keys when adding a relation. This is refactored
668 approach from DataRelationCollection.Add method.
670 * DataRelationCollection.cs: AddCore methods of all relation types
671 are synchronized. A Check for existing constraints is
672 done. Relation is added to the list only if all checks are passed.
674 2004-01-18 Atsushi Enomoto <atsushi@ximian.com>
676 * DataColumnCollection.cs : Clear() throws ArgumentException that
677 wraps thrown innerException.
678 * XmlSchemaDataImporter.cs : removed FIXMEs.
680 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
682 * DataSet.cs : When serializing DataTable, BuildSchema() is passed
683 null relation collections.
684 Quick fix for XmlSerializer deserialization. It does not require
687 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
690 CustomDataClassGenerator.cs :
691 In DataSet class, IXmlSerializable.GetSchema() returns null.
692 In strongly-typed class, it returns schema.
694 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
696 * XmlDataInferenceLoader.cs : test driver class should be excluded.
698 2004-12-01 Miguel de Icaza <miguel@ximian.com>
700 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
703 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
705 * CustomDataClassGenerator.cs : generated foreign key constraint
706 construction code was creating empty child columns and thus it
707 was invalid. This fixes bug #69276 (patch by Martin Voelkle).
709 2004-11-02 Atsushi Enomoto <atsushi@ximian.com>
711 * CustomDataClassGenerator.cs : custom DataTable ctor should call
712 InitializeFields(), and those DataColumns created by that method
713 should take data type. This should fix bug #68972.
715 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
717 * DataSet.cs : Also clear UnhandledAttributes ArrayList before
718 generating next attribute column schema. This fixes bug #68432.
720 2004-10-14 Umadevi S <sumadevi@novell.com>
721 * DataTable.cs : Corrected the Clone method to use Activator.CreateInstance so that the
722 correct subclass is returned. This fixes bug #67631
724 2004-10-14 Umadevi S <sumadevi@novell.com>
725 * DataSet.cs : Corrected the Clone method to use Activator.CreateInstance so that the
726 correct subclass is returned. This fixes bug #67627
728 2004-10-13 Atsushi Enomoto <atsushi@ximian.com>
730 * DataSet.cs : clear UnhandledAttributes ArrayList before generating
731 next element column schema. This fixes bug #68256.
733 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
735 * DataSet.cs : now xs:schema contains xmlns="".
736 This fixes bug #68008.
738 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
740 * DataSet.cs : DBNull attribute column should not be written as
741 empty attribute. This fixes bug #68007.
743 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
745 * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
746 DataColumn.ReadOnly was not handled. This fixes bug #68005.
747 Attribute defaultValue was not handled too.
749 2004-10-07 Atsushi Enomoto <atsushi@ximian.com>
752 - When AllowDBNull is false on attribute DataColumn, its schema
753 should contain use="required". This fixes bug #66792.
754 - If MaxLength is set on attribute DataColumn, the mapped schema
755 type should contain maxLength facet. This fixes bug #66793.
757 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
759 * DataSet.cs : For a row, when a relation is not nested, then it is
760 still output target since it won't be written as a child of its
761 parent. It fixes bug #66379.
763 2004-10-03 Atsushi Enomoto <atsushi@ximian.com>
765 * DataSet.cs : Attribute constraint field XPath must be written as
766 @blah. This fixes bug #66366.
768 2004-09-28 Umadevi S <sumadevi@novell.com>
769 * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
771 2004-09-24 Sureshkumar T <tsureshkumar@novell.com>
773 * DataSet.cs : Don't check constraints for dataset clear
774 * DataRowCollection.cs : check for EnforceConstraints flag
775 before checking foriegn key constraints in Clear method
776 * DataTable.cs : Redundant checking removed in Clear method as it is
777 checked in DataRowCollection.Clear method.
780 2004-09-19 Sureshkumar T <tsureshkumar@novell.com>
781 * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
782 hence, adding a row cache is necessary if the original row happens to be current.
785 2004-08-23 Martin Baulig <martin@ximian.com>
787 * XmlDataInferenceLoader.cs (Driver): Make this class internal,
790 2004-08-18 Umadevi S <sumadevi@novell.com>
791 * DataView.cs - Completed most of the event handling.
792 Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
793 Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
794 * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
796 2004-08-06 Atsushi Enomoto <atsushi@ximian.com>
798 * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
800 2004-08-05 Atsushi Enomoto <atsushi@ximian.com>
802 * XmlConstants.cs : Added constants for "msprop" support.
803 * DataSet.cs : ExtendedProperties should be written in the schema.
804 This fixes bug #61233.
806 2004-07-27 Atsushi Enomoto <atsushi@ximian.com>
808 * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
809 used. There were also some culture dependency problems to write int.
811 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
813 * XmlDataInferenceLoader.cs : It was not always filling relation
814 child table information correctly. This fixes bug #60742.
816 2004-06-23 Umadevi S <sumadevi@novell.com>
817 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
819 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
821 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
822 schema is inside the document element (as created in XmlWriteMode
823 .WriteSchema), it should read schema from that non-document element.
824 This fixes one case reported in bug #60470.
826 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
828 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
829 inference target. For bug #60470. (MS does not support schema
830 document inference and results in unconsistent dataset structure.)
832 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
834 * DataTableCollection.cs : reset the table's DataSet to null when
835 removing a table from this collection.
836 * DataTable.cs : When Namespace is not specified explicitly, its
837 Namespace property reflects DataSet's Namespace if exist.
838 This fixes bug #60469.
840 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
842 * DBConcurrentcyException.cs: CRLF to LF
843 * DataViewSetting.cs: CRLF to LF
845 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
847 * DataViewSetting.cs: renamed fields to match MS.NET
849 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
851 * DBConcurrencyException.cs: fixed serialization compatibility with
854 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
856 * ChangeLog : Fix for misspelled words.
858 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
860 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
862 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
865 - Table stores default values for columns in special default values row.
866 It is allocated once (in NewRow).
867 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
868 - OnRemoveColumn has nothing to perform by now.
870 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
873 - Changed access of original, current and proposed indexes to internal.
874 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
875 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
876 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
877 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
878 Care about Null and DBNull values is now in DataContainer.
879 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
880 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
881 - Fix in CopyState : clone column errors.
882 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
884 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
886 * DataColumnCollection.cs :
887 - Fix : Add() now delegates to Add(DataColumn).
888 - autoIncrement list holds DataColumn objects, and not just column names.
890 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
893 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
894 - DefaultValue fixes. Default value from now on is also stored in special record in
895 DataTable, so we're able to set default value for the column faster (typed).
898 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
900 * DataSet.cs : children of non-root rows were not properly written.
903 2004-06-10 Umadevi S <sumadevi@novell.com>
904 * DataRelation.cs - Constructor
905 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
907 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
909 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
911 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
913 * Constraint.cs: marked methods internal to fix public API
914 * ConstraintCollection.cs: to fix public API, use
915 DataTable.fInitInProgress to check whether initialization
916 of DataTable is in progress
917 * DataColumn.cs: added stubs for missing methods
918 * DataRowBuilder.cs: marked Table property internal to
920 * DataSet.cs: removed extra empty destructor, marked
921 OnMergeFailed internal to fix public API
922 * DataTable.cs: use fInitInProgress field to hold init
923 status, to match MS.NET
924 * DataView.cs: added missing attributes on IsOpen
926 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
928 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
929 in XmlNamespaceManager.
931 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
933 * DataSet.cs : complex table content child was not properly added
934 when it is the only one child in the parent table. Fixed bug #53959.
936 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
937 * DataTableTypeConverter.cs: added
938 * DataView.cs: added missing attribute on Table property
939 * DataViewManager.cs: moved attribute to correct property
940 * UniqueConstraint.cs: removed extra ReadOnly attribute from
941 IsPrimaryKey property
943 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
945 * DataRow.cs : ColumnsChanged event is not required in .ctor().
947 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
949 * XmlDataReader.cs : type change is required before setting value
952 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
954 * DataSet.cs : Loop-break of the last fix was incorrect.
956 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
958 * DataSet.cs : When a row has no parent row but the table has parent
959 relation(s), that row had been always ignored.
961 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
963 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
964 rejected same-named tables in different hierarchy. Thanks to Boris.
966 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
968 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
969 infinite loop. Thanks to Boris for this fix.
971 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
973 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
974 Thanks to Boris for this fix.
976 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
978 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
979 for ReadXml(). Thanks to Boris.
981 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
983 - CheckReadOnlyStatus : use typed (and faster comparing).
984 - EndEdit : bug fix - do not dispose record if it holds original version.
985 - SetValuesFromDataRecord : Take care about autoincrement columns.
988 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
990 * MergeManager.cs : don't output debug message to Console.
992 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
994 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
995 structure. Thanks to Boris Kirzner for the fix.
997 2004-05-27 Umadevi S <sumadevi@novell.com>
998 * DataRelationCollection.cs - fixed nunit test errors
1000 2004-05-27 Umadevi S <sumadevi@novell.com>
1001 * DataTableCollection.cs - fixed nunit test errors
1003 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1005 * DataColumnCollection.cs : NullReferenceException was thrown when
1006 the table was not found.
1007 * DataRowCollection.cs :
1008 Find() just returns null for null value under MS.NET 1.1.
1009 RemoveAt() should also avoid to call AcceptChanges() like Remove().
1010 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
1011 directly under MS.NET (for nunit test).
1013 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1015 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
1016 caused problem on qualified name to get schema Field name.
1018 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1020 * XmlDataReader.cs : Now data reader is namespace aware in all places.
1021 When table's namespace is different, it entered to infinite loop.
1023 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1024 * MergeManager.cs : AdjustSchema now updates by reference new created table,
1025 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
1028 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1030 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
1031 * DataColumnCollection.cs : fixed parantethes.
1033 - AcceptChanges : do nothing if row state is unchanged.
1034 - GetChildRows, GetParentRows : bug fix (use correct index).
1035 * DataRowCollection.cs : bug fix (compare all row's values).
1036 * DataTable.cs : bug fix (use correct row version).
1038 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1040 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
1041 When content type is Mixed, text column is not required (it is
1042 required only when the complex type has no particle).
1043 "Repeated element" column is also created (considering maxOccurs=0
1044 and complex content extension).
1046 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1048 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
1051 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1053 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
1054 Fixed relation inference to consider attribute XPath.
1056 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
1058 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
1061 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1063 * DataColumn.cs - removed default member attribute.
1065 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1068 DataColumnChangeEventArgs.cs,
1069 DataColumnCollection.cs,
1071 DataRowCollection.cs,
1073 Index.cs : Data storage in the row is redesigned. Now data is stored in
1074 typed containers inside DataColumn. Row holds its versions as indexes inside
1075 each of data container, accessed through the row that holds it.
1077 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1079 * UniqueConstraint.cs - added comment.
1081 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
1083 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
1086 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
1089 XmlDataInferenceLoader.cs,
1091 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
1092 XmlEncode every local name to write. This should fix bug #58268.
1094 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
1096 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
1097 Supported repeated elements. Removed MonoTODOs.
1098 * XmlDataInferenceLoader.cs : Design change to support ignored
1099 namespace and repeated elements.
1100 * XmlSchemaDataImporter.cs : Added mapping support classes.
1102 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
1104 * CustomDataClassGenerator.cs :
1105 Added property parent "[foo]Row" and children "Get[foo]Row" support
1106 for custom DataRow classes.
1107 Fixed DataColumn property accessibility (public --> internal).
1109 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1111 * CustomDataClassGenerator.cs :
1112 - Put classes inside custom DataSet class.
1113 - Added automatic DataRelation creation support.
1114 - Added Constraints creation support. That is done separate from
1115 relations, since they might be independently created.
1116 - Added non-MS public DataRelation fields.
1117 - Removed extraneous "DataRelation type generation" code.
1118 - Fixed custom_dataset.Initialize() not to create "c" field that
1119 was created more than once.
1120 - Implemented AddxxxRow() that takes parameters for every column.
1122 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1124 * XmlSchemaDataImporter.cs : When primary key is used more than once,
1125 DataRelation borked because of empty parent column name.
1127 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1129 * XmlSchemaDataImporter.cs : When Creating constraints with related
1130 to DataRelation creation, also set PrimaryKey to the parent table.
1132 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1134 * XmlSchemaDataImporter.cs :
1135 Design change to add indirect table and relation structures.
1136 Support for "relation" annotation for local element.
1137 Support for repeatable simple element column (maxOccurs > 1).
1138 Fixed handling of Nested property on DataRelation (for globally
1139 annotated relation, Nested is false).
1141 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
1143 * DataRow.cs : Added DataElement property to avoid storing every row-
1144 element mapping. It stored even for nodes that should be removed.
1146 2004-05-13 Umadevi S <sumadevi@novell.com>
1148 * RelationshipConverter.cs - Stubbed this class
1149 * DataRelation.cs - added TypeConveterAttribute
1151 2004-05-13 Umadevi S <sumadevi@novell.com>
1153 * DataColumnCollection.cs - Added ResDescriptionAttribute
1154 * DataRelation.cs - Added TypeConverterAttribute
1155 * DataRelationCollection.cs - Added DefaultPropertyAttribute
1156 * DataRowView.cs - Added GetHashCode method with a TODO tag
1157 * DataSet.cs - Added DesignerAttribute
1158 * DataView.cs - Added DesignerAttribute
1159 * DataViewManager.cs - Added DesignerAttribute
1160 * DataViewSetting.cs - Added TypeConverterAttribute
1162 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
1164 * DataRow.cs : Added XmlDataElement initialization code.
1166 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
1168 * XmlDataInferenceLoader.cs :
1169 It now requires XmlDocument as input. Improved identification of
1170 DataSet element. Removed extra lines.
1171 Moved boresome design notes to bottom of the source and
1172 added standalone runnable driver (not included on build).
1174 Update with related to the change above.
1175 WriteXml() should call Flush() after writing. This fixes bug #58327.
1176 * XmlSchemaDataImporter.cs :
1177 Improved indentification of DataSet element.
1179 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
1180 * DataTable: marked initStatus enum internal
1182 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
1183 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
1185 * DataRowView.cs: removed extra Error property
1186 * DataRow.cs: reduced accessibility of CollectionChanged method
1188 * DataColumnPropertyDescriptor.cs: made class internal
1189 * DataColumn.cs: removed extra TypeConvertorAttribute
1190 * ConstrainCollection.cs: marked PostEndInit method internal
1192 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
1195 In WriteXmlSchema(), when complex type contains simple type content
1196 attributes must not added to XmlSchemaComplexType directly. It
1197 causes schema compilation error.
1198 DataRelation should not be output when related columns are hidden.
1200 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
1202 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
1203 also expected to do ReadXml(), but I will remove that feature and
1204 support column reordering).
1205 * XmlSchemaDataImporter.cs : Always initialize dataset name.
1206 Always set Nested and primary key for parent table.
1207 * XmlDataReader.cs : Now it is used.
1208 Top level element might not match to dataset name nor any table
1209 name, but still possible to read content tables.
1210 Handle empty element correctly in some places.
1211 Handle Fragment mode (read up XmlReader to the end).
1212 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
1213 XmlDataInferenceLoader and XmlDataReader.
1215 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
1218 Eliminated CRLF injection.
1219 More clear message in Clear().
1220 Updates reflecting XmlSchemaDataImporter change.
1221 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
1222 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
1223 but that depends on different behavior from ms.net).
1224 Set locale also for DataTable.
1225 Add xs:element only when target namespace matches to the
1226 element's namespace. Otherwise, add xs:import for external namespace.
1227 Put xs:sequence for dataset element's particle _only when_ actual
1230 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
1232 * XmlDataReader.cs : Added. This class will work better when our
1233 schema inference and schema read engine gets improved. (It contains
1234 standalone testable Driver class.)
1236 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
1238 * ForeignKeyConstraint.cs : Check step change. Existence then column
1239 validity. just for tests.
1240 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
1243 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1245 * DataSet.cs : Ignore empty content only when output type is diffgram.
1247 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1249 * CustomDataClassGenerator.cs : Modified that DataSet contains each
1250 DataTable field so that each table property can access them directly.
1251 (plus, modified standalone code driver code: shouldn't affect)
1253 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
1255 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
1257 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1259 * XmlSchemaDataImporter.cs :
1260 SimpleContent column support.
1261 Annotated relation support.
1262 Top-level element is counted only when its type is complex.
1263 xs:anyType is no longer treated as complex type.
1264 dataset existence is mandatory now.
1265 Improved DataType and DefaultValue support.
1266 Attribute namespace is properly handled now.
1267 Prohibited attribute is now treated as hidden column.
1268 Reject list or union simple type.
1270 Still incomplete 1) to read relationship in some cases, 2) to
1271 determine whether an element is dataset or table, 3) thus to
1272 exclude extraneous column, 4) to remove extraneous *_Id column.
1274 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1277 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
1278 serialization .ctor() (thus schema read/inference should be easier).
1279 DataRowSorter should consider Table's Locale.
1281 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1283 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
1284 use it instead of duplicating logic.
1286 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1288 * ConstraintCollection.cs :
1289 Use Table.CaseSensitive and Table.Locale to compare strings.
1290 Duplicate constraint name exception does not occur under .NET 1.1.
1292 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
1294 * XmlSchemaDataImporter.cs: Added little type check.
1296 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
1298 * DataSet.cs: Implemented support for runtime serialization. Fixed support
1299 for xml serialization.
1300 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
1302 2004-04-30 Umadevi S <sumadevi@novell.com>
1303 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
1304 * DataTableCollection.cs : Tested and removed TODO
1305 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
1307 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
1309 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
1311 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1313 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
1314 constraint is defined on single column.
1316 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
1318 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
1319 not ArgumentException (maybe changed after 1.1).
1321 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
1323 * DataRow.cs : When Column was added and it was AutoIncrement column,
1324 it extended the item object array incorrectly.
1325 (Plus tiny comment and incorrect indentation fix.)
1327 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1329 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
1331 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1333 * DataRow.cs : Bug fix in CopyValuesToRow().
1335 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1337 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
1338 each of the columns should not be unique, but only all the constraint's columns together.
1340 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
1343 - Added using of list of autoIncrement columns
1344 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
1345 - Fix in CheckNullConstraints
1346 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
1347 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
1348 - Added onColumnRemoved() method to threat column removal accurately.
1350 * DataRowCollection.cs :
1351 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
1352 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
1355 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
1357 * DataColumnCollection.cs :
1358 - Perfomance fixes :
1359 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
1360 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
1361 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
1364 - Uses autoincrement list of a table
1366 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
1368 * XmlDataLoader.cs : Even when it should ignore schema, it was
1370 * XmlSchemaDataImporter.cs : DataRelation creation support.
1371 Improved "DataSet" element handing. When attributes are on the
1372 element, it is not a "DataSet" element.
1373 Fixed parent key column name.
1374 Unique name creation is not required. Just raise an error.
1375 Fill facet also for attribute types.
1377 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
1379 * DataRow.cs : Null check for CheckReadOnlyStatus() and
1380 CheckNullConstraints(), with some coding guideline fixes.
1381 Type check should be done by Type instance comparison.
1383 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
1385 * DataColumnCollection.cs : When add a column to the collection, fill
1386 auto-increment column.
1388 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
1390 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
1392 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
1394 * CustomDataClassGenerator.cs : Added.
1395 * TypedDataSetGenerator.cs : Implemented Generate().
1396 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
1397 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
1399 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
1401 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
1403 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
1405 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
1407 2004-04-23 Umadevi S (sumadevi@novell.com)
1408 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
1409 - Added error handling to the above methods
1411 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
1413 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
1414 the support is incomplete yet).
1415 * XmlDataLoader.cs :
1416 Reverted ReadModeSchema() argument change. XmlReadMode would be
1417 useful to handle IgnoreSchema.
1418 Don't overwrite DataSetName when mode is not such kind.
1419 Set Prefix and Namespace as well as DataSetName.
1420 AllowDBNull looks set false by default for element column.
1421 Set unique constraint as primary key when infering the table schema.
1423 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
1426 Never set null string for Prefix and Namespace.
1427 In InferXmlSchema() when null XmlReader is passed, just do nothing.
1428 In WriteXmlSchema(string), earlier try block.
1429 In BuildSchema(), try to add serialization namespaces for each
1430 namespaces in DataSet/DataTable/DataColumn.
1431 Removed namespace argument from WriteColumnAsElement() and don't
1432 overwrite when namespace is "". This fixes bug #57330.
1433 * DataColumn.cs : For Namespace and Prefix, never set null.
1435 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
1437 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
1438 before creating and adding foreign key constraint and relation.
1440 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
1442 * MergeManager.cs : In AdjustSchema() source table clone should be added
1443 and not the table itself.
1445 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
1448 - CaseSensitive : Additional fix (removed unnesessary assignment).
1449 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
1451 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
1453 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
1455 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
1458 - EndLoadData() : perfomance fix in case of null constraint violation
1459 during data load (also in DataRow.cs).
1460 - CaseSensitive : If DataTable belongs to DataSet it should always use
1461 DataSet.CaseSensitive untill explicitly changed.
1462 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
1465 - Pefromance fix in case of null constraint violation
1466 during data load (also in DataTable.cs).
1467 - CollectionChanged() : use correct column number after new DataColumn was added
1468 (differs in case some DataColumn was previosly removed).
1469 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
1471 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
1473 * DataColumnCollection.cs : Since unique constraint is added now
1474 in DataColumn.SetTable() the additional creation of constraint in
1475 DataColumnCollection.Add() is redundant and causes exception - fixed.
1477 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
1479 * XmlDataLoader.cs : Added "never add data rows" mode.
1480 Removed unused code. However, it is temporary fixes to unify
1481 ReadXml() and InferXmlSchema().
1482 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
1484 I'll create another XmlDataLoader since there are many problems
1485 such that 1) it is too waste to read the entire xml into an
1486 XmlDocument, 2) it does not handle attributes correctly, and 3) it
1487 must handle "ignored namespaces".
1489 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
1491 * Added XmlSchemaDataImporter.cs (new schema reader).
1492 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
1493 for ReadXmlSchema().
1494 Let schema reading work to ReadXmlSchema().
1495 Don't return ReadSchema when argument read mode was DiffGram.
1497 2004-04-15 Umadevi S (sumadevi@novell.com)
1498 * Updated Clone/Copy methods in DataSet along with Testcase
1499 * ForeignKeyConstraint.cs - special ctor implemented
1500 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).
1501 * Changes in ConstraintCollection.cs for the above
1502 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.
1505 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
1507 * XmlSchemaMapper.cs : set parent key and foreign key info to
1508 DataRelation when reading refkey constraints.
1509 Supply constraint name for fkey.
1511 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
1513 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
1514 mode is Auto, just ignore the schema if there is already schema info.
1515 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
1517 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
1520 - In MS output, XML declaration looks to have standalone decl (yes).
1521 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
1522 - ReadXml(reader, mode)
1523 1) return originally specified mode, instead of (always) Auto.
1524 2) Check empty reader.
1525 3) Check diffgram schema and content separately.
1526 4) When diffgram exists, remaining (the same-level) contents
1528 5) Similar fact should be applied, but somewhat different.
1529 InferSchema and IgnoreSchema just skips, Fragment reads both
1530 schema and content, others just reads schema.
1531 - Removed unused code.
1532 * XmlDataLoader.cs :
1533 - Read() should skip in some ReadMode.
1534 - Don't compare schema element name as case-insensitive (well,
1535 should schemas be checked here?)
1536 - Avoided BuildDocument() not to create confusing DataSet
1538 - Don't add any tables when reader has single element.
1539 * XmlDiffLoader.cs :
1540 When target table was not found, MS.NET doesn't raise an error.
1541 * XmlSchemaMapper.cs :
1542 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
1544 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
1547 - InferXmlSchema(): Throw explicit NotImplementedException now.
1548 - Don't put XML declaration everywhere. Write just for filename arg.
1549 - xmlns="" should not be written. Maybe WebService problem is
1550 because default namespace is overwritten. This patch will keep
1551 the WS problem away and actually fixes some unit tests (i.e. use
1552 explicit String.Empty for null namespace in WriteStartElement()).
1553 - MoveToContent() should always be called, not only when
1554 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
1555 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
1556 element. As to MSDN, diffgram does not contain schema.
1558 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1560 * DataTable.cs: made _initStatus private so that System.Data is CLS
1563 2004-04-13 Umadevi S <sumadevi@novell.com>
1564 * UniqueConstraint.cs:
1565 * ConstraintCollection.cs:
1567 - Implemented a Constructor for UniqueConstraint.cs
1568 - Used EndInit on DataTable to call a delegate which adds the
1569 constraints passed to the most recent call of AddRange().Used
1570 AddRange() on ConstraintCollection to check whether
1571 DataTable.BeginInit has occurred. If yes, save the argument
1572 constraint collection passed, then return. If no, Check whether the
1573 constraints are of type UniqueConstraint and initialized with the
1574 special constructor If yes Initialized the table property of this
1575 UniqueConstraint object with table assosciated with the current
1576 instance of ConstraintCollection class.
1578 2004-04-07 Marek Safar <marek.safar@seznam.cz>
1580 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
1582 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1585 * DataColumnCollection.cs:
1586 * DataRelationCollection.cs:
1587 * DataRowCollection.cs:
1588 * DataTableCollection.cs:
1589 * InternalDataCollectionBase.cs:
1590 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
1593 2004-04-05 Jackson Harper <jackson@ximian.com>
1595 * DataTable.cs: Add rows to the row list if there is no filter.
1597 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
1599 * DataColumn.cs : Setting Caption to null sets it to the empty string
1600 (ms.net behaviour, testcase is in DataColumnTest).
1602 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
1605 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
1607 * DataColumn.cs: In Expression setter, set the expression member even if
1608 it is an empty string.
1609 * DataSet.cs: Support serialization of byte[] columns.
1610 * XmlDataLoader.cs: Support deserialization of Guid columns.
1611 Set MappingType.Attribute to columns infered from attributes.
1613 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
1615 * ExpressionElements.cs : remove
1616 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
1617 Integration of new Mono.Data.SqlExpressions classes used in
1618 DataTable.{Select, Compute}.
1619 Fixes bug #55503 and lots of failures in DataTableTest.cs.
1621 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
1623 * Index.cs: Simple fix in ComparePartialRowNonUnique.
1624 This fixes bugs #56129 and #56014.
1626 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
1628 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
1629 stream after writing the dataset. This fixes bug #52581.
1630 Also added several writer.Close into finally blocks, so writers are properly
1631 closed in case of an exception.
1633 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1635 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
1636 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
1637 * ColumnTypeConverter.cs: Added stub
1638 * DefaultValueTypeConverter: Added stub
1639 * ConstraintConverter.cs: Added stub
1641 2004-03-04 Eran Domb <erand@mainsoft.com>
1643 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
1644 in MS.NET documentation (missing DataSet element etc).
1646 2004-03-04 Eran Domb <erand@mainsoft.com>
1649 * Index.cs : Rollback last changes.
1651 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
1653 * Index.cs : justa build fix.
1655 2004-03-03 Eran Domb <erand@mainsoft.com>
1658 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
1659 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
1660 This changes made for performance improvement.
1662 2004-02-08 Eran Domb <erand@mainsoft.com>
1664 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
1666 2004-02-08 Eran Domb <erand@mainsoft.com>
1668 * DataSet.cs: Fix some bugs in ReadXml().
1670 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1672 * DataSet.cs: Added missing method that broke the build.
1674 2004-02-04 Eran Domb <erand@mainsoft.com>
1676 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
1678 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
1679 when all column are attributes (elements count is 0), we still want to add the relations. No relations
1680 can be on simple contents.
1681 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
1682 (AddForeignKeys) Check that the relation has constraints attach to it.
1683 * XmlConstants.cs : Added constant.
1685 2004-02-04 Eran Domb <erand@mainsoft.com>
1687 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
1688 DoWriteXmlSchema calls BuildSchema ().
1690 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1692 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
1694 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
1696 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
1697 also be added to the dataset.
1698 In WriteTable(), do not write unchanged rows when writing the original
1699 version of the table.
1700 Added WriteIndividualTableContent(), for writing the contents of a single
1702 Changed BuildSchema and related methods, so it can generate a schema for
1703 any set of tables, not just the tables of the dataset (needed for
1704 single datatable serialization).
1705 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
1706 Also implemented some ReadXmlSchema methods.
1707 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
1708 instead of loading the full dataset in an XmlDocument. It is faster and
1709 saves memory. Also fixed several problems when generating the changes.
1710 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
1711 table serialization).
1713 2004-02-02 Eran Domb <erand@mainsoft.com>
1715 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
1716 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
1717 * DataTable.cs (NewRow): Create only one DataRowBuilder.
1718 Initiate new row with row id -1.
1719 * DataRow.cs : Add RowId property.
1720 * DataRowBuilder.cs : Add _rowId member.
1721 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
1723 2004-01-26 Eran Domb <erand@mainsoft.com>
1725 * XmlConstants.cs : Added some constants.
1726 * DataColumn.cs : Added a method to retrive AutoIncrement value.
1727 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
1728 parent table column.
1729 * XmlDiffLoader.cs : Convert the value comming from the xml.
1730 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
1731 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
1732 (ReadXmlSchemaElement) : Set the locale of the dataset.
1733 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
1734 (GetColumnType) : New method to get the column type from the attribute value.
1735 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
1736 and add the constraint to the table.
1737 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
1739 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
1740 Writing more information to the schema for interoperability with ms.net.
1741 Improve diffgarm writing mode.
1744 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
1746 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
1748 2004-01-21 Eran Domb <erand@mainsoft.com>
1750 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
1751 Do not set the child column to be AutoIncrement.
1752 Create the new column for the relation as MappingType.Hidden so they will not be serialized
1753 when writing the dataset to xml.
1755 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
1757 * Added missing TypedDataSetGenerator.cs.
1759 2004-01-08 Eran Domb <erand@mainsoft.com>
1761 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
1762 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
1763 InferSchema, ReadSchema and IgnoreSchema.
1764 * XmlDataLoader.cs : All modes use the same logic.
1765 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
1767 2004-01-06 Eran Domb <erand@mainsoft.com>
1769 * DataRelationCollection.cs : Use IndexOf in indexer.
1770 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
1771 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
1772 * XmlDiffLoader.cs : Reading nested tables.
1773 * XmlSchemaMapper.cs : Reading the relation.
1774 * XmlConstants.cs : Adding some constants.
1776 2004-01-05 Jackson Harper <jackson@ximian.com>
1778 * DataView.cs: Set readonly property of property descriptor. This
1781 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
1783 * DataRelationCollection.cs : Fixed incorrect generation of default
1785 * DataSet.cs : Added missing functionality in WriteXml().
1786 * XmlConstants.cs : Added new constants.
1788 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
1790 * DataSet.cs : Fixed incorrect WriteXml() signature.
1792 2003-12-18 Jackson Harper <jackson@ximian.com>
1794 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
1796 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
1798 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
1799 they take shape of xml. This fixed bug #52240
1801 2003-12-16 Tim Coleman <tim@timcoleman.com>
1802 * KeyRestrictionBehavior.cs:
1803 New stubs added for .NET 1.2
1807 2003-12-08 Eran Domb <erand@mainsoft.com>
1808 * DataColumn.cs (Expression) : Validate the expression.
1810 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
1811 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
1813 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
1814 (RejectChanges) : Detach row when state was Added.
1815 (CollectionChanged) : Fix a bug.
1817 * ExpressionElement (ValidateExpression) : Fix a bug.
1819 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
1820 a parent row in the parent table.
1821 (_validateColumns) : Fix bugs.
1823 * MergeManager.cs (AdjustSchema) : Fix a bug.
1825 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
1828 2003-11-30 Eran Domb <erand@mainsoft.com>
1829 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
1830 (Add) : Find if the new column name is the same as the one found in IndexOf.
1831 (IndexOf) : New method.
1832 (Contains) : Use new IndexOf.
1833 (IndexOf) : Use new IndexOf.
1835 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
1836 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
1838 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
1839 (Delete) : Detach row if the RowState was Added.
1840 (GetChildRows) : Get the array form the ChildTable.
1841 (GetParentRows) : Get the array from the ParenTable.
1843 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
1845 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
1847 * DataTable.cs (PrimaryKey) : Fix bugs.
1848 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
1850 * DataTableCollection.cs (Add) : Fix a bug.
1852 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
1853 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
1854 Some code style changes (tab instead of whit spaces, alignment, etc...).
1856 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
1858 * MergeManager.cs (AdjustSchema) : Fix a bug.
1862 2003-11-26 Miguel de Icaza <miguel@ximian.com>
1864 * DataSet.cs: Add a few more missing methods, code style updated
1867 2003-11-26 Tim Coleman <tim@timcoleman.com>
1869 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
1870 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
1871 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
1872 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
1873 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
1874 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
1875 * StatementCompletedEventHandler.cs UpdateOptions.cs:
1876 New classes added for NET_2_0
1877 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
1878 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
1879 Modifications to add new NET_2_0 functions
1881 2003-11-25 Tim Coleman <tim@timcoleman.com>
1885 2003-11-21 Pedro Martínez Juliá <yoros@wanadoo.es>
1887 * DataRow.cs: Detached row can be accesible (new rows from data
1888 table are detached). Closes but #51263.
1890 2003-11-19 Eran Domb <erand@mainsoft.com>
1891 * DataRow.cs : Throw exceptions if Row is Detached.
1892 (EndEdit) : Check that we are not in middle of ChangeEvent.
1893 (AcceptChanges) : Detach the row.
1895 * DataRelation.cs : throw correct exception.
1896 *UniqueConstraint.cs : throw correct exception.
1899 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1901 * DataRow.cs: Use RemoveInternal instead of Remove because the last
1902 one uses Delete and AcceptChanges.
1904 * DataRowCollection.cs: When removing, Delete and AcceptChanges
1905 method from the row are called. Added an internal method that will
1906 be used by DataRow to "physically" remove the row from the list.
1908 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1910 * DataRowCollection.cs: To follow the specification: Remove and
1911 RemoveAt should remove the row. But needed to call DeletingDataRow
1912 to prepare the deleting.
1914 * DataRow.cs: Don't call DeletingDataRow when it is called by the
1915 method Table.Rows.Remove.
1917 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1919 * DataRowCollection.cs: Make the row be deleted by itself. If not,
1920 it fails because we need to call OnRowDeleting and OnRowDeleted. It
1921 is full implemented inside DataRow.
1923 2003-11-05 Eran Domb <erand@mainsoft.com>
1924 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
1926 2003-11-04 Eran Domb <erand@mainsoft.com>
1927 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
1929 (GetChildRows) : Adding some checks.
1930 (GetParentRows) : Adding some checks. Fix a bug in implementation.
1931 (SetParentRow) : Added implementation.
1933 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
1934 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
1935 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
1936 * MergeManager.cs : Check that the target table is not null.
1938 2003-10-27 Eran Domb <erand@mainsoft.com>
1939 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
1940 can be converted to the column type.
1942 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
1944 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
1945 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
1947 * DataRowCollection.cs (Add) : Fixing a bug.
1948 (Clear) : Before clearing the array check that there is no violation of FK constraint.
1950 * DataSet.cs (Prefix) : If value is null chage it to empty string.
1951 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
1953 * ExpressionElement : Adding support for IN expresion.
1955 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
1956 (Select) : Adding support for DataViewwRowState.
1958 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
1960 * MergeManager.cs (MergeRow) : Fix bugs.
1962 2003-10-27 Eran Domb <erand@mainsoft.com>
1963 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
1964 check null values when ending loading data.
1966 * DataSet.cs (RejectChanges) : Imlementation.
1967 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
1968 change it to empty string.
1970 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
1972 2003-10-22 Eran Domb <erand@mainsoft.com>
1973 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
1975 * ConstraintCollection.cs (RamoveAt): Change implemntation.
1977 * DataTableCollection (CanRemove): Removing cast to Constraint.
1979 2003-10-22 Eran Domb <erand@mainsoft.com>
1980 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
1981 (Clear): The collection was cleared without removing the relation from the parent and child tables.
1983 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
1984 (HasChanges, Reset): Imlementation.
1986 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
1987 This is because the we do not no when to turn off the flag.
1988 (Locale): Changing implementation to behave like ADO.NET.
1989 (AcceptChanges): Fix bug.
1990 (Clear): Check that this table is not referenced from a foreign key constraint.
1991 (Copy): Do not try to access a deleted row.
1992 (CopyProperties): Copy the PrimaryKey.
1993 (GetChanges, ImportRow): Implementation.
1994 (LoadDataRow): Adding implementation if the table has PrimaryKey.
1995 (ToString): Changing implementation to behave like ADO.NET.
1997 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
1999 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
2000 (HasErrors): Implementation.
2001 (Delete): Added checking for child rows of the deleted row.
2002 (EndEdit): Added checking for child row and firing events.
2003 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
2004 (GetColumnsInError): Added a check for null values in column error.
2005 (HasVersion): Added special treatment for special RowState.
2006 (CollectionChanged): More checks to avoid NullReferenceException.
2008 * DataRowCollection.cs (Remove): Fix a bug.
2011 2003-10-01 Duncan Mak <duncan@ximian.com>
2013 More patches from Eran Domb <erand@mainsoft.com>.
2015 * MergeManager.cs: New file.
2017 * DataRelationCollection.cs (AddCore): Check that a
2018 UniqueConstraint is already exists. It loops over the Relations
2019 instead of the Constraints.
2020 (Add, AddCore): The relation was added twice.
2022 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
2024 2003-09-30 Duncan Mak <duncan@ximian.com>
2026 Patches from Eran Domb <erand@mainsoft.com>.
2028 * DataRelation.cs (constructor): When the name of the relation is
2029 null, it should return an empty, not "Relation".
2031 * DataRow.cs (AcceptChanges): Added special case for
2033 (CancelEdit): Set editing flag to false.
2034 (IsNull): Check that the value is DBNull.
2036 * DataRowCollection.cs (Add): There was no check that the table of
2037 the collection is owned by a DataSet.
2039 * DataSet.cs (OnMergeFailed): Added.
2041 * UniqueConstraint.cs (AssertConstraint): There was no check that
2042 values in the row are not null, where it is a primary key
2043 column. Also check that the row has a proposed version, if not,
2044 get the current version when we compare the rows.
2046 2003-09-25 Duncan Mak <duncan@ximian.com>
2048 Patches from Eran Domb <erand@mainsoft.com>.
2050 * DataColumn.cs (Unique): Implemented.
2053 * ConstraintCollection.cs:
2054 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
2055 an Exception thrown. Details:
2056 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
2058 * DataRowCollection.cs (Add): There is no checking that there is
2059 no violation of the unique constrains.
2061 * UniqueConstraint.cs (AssertConstraint): There is no checking on
2062 all columns in the constraint.
2064 * DataTableCollection (Add): Correctly throw an Exception, more
2066 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
2067 (Remove, RemoveAt): Implemented.
2069 2003-07-31 Duncan Mak <duncan@ximian.com>
2071 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
2073 2003-07-25 Ravi Pratap <ravi@ximian.com>
2075 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
2076 method on a delegate is disallowed - fix this.
2078 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
2080 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
2081 xml serialization. Modified method of writing schema. Now it creates
2082 a XmlSchema object and serializes it using XmlSerializer.
2083 * XmlConstants.cs: Added constants for data type names.
2084 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
2085 type specified in the column.
2087 2003-04-20 Alan Tam <Tam@SiuLung.com>
2089 * DataRelationCollection.cs: Fix a bug that prevent relations
2090 from being added via DataSet.
2092 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
2094 * UniqueConstraint.cs: one tiny fix.
2096 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
2098 * DataTable.cs: Remove UniqueConstraints when adding new ones
2100 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
2102 * DataColumnCollection.cs: Little 'case sensitive' fix
2104 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
2106 * DataRow.cs: AutoIncrement handling to Constructor
2107 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
2109 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2111 * DataTable.cs: Some fixes to PrimaryKey etc...
2112 * UniqueConstraint.cs: Little clean up
2114 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2116 * DataTable.cs: Tiny fix to ToString () -method
2118 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2120 * ConstraintCollection.cs: Little fix.
2121 * DataColumn.cs: Added new internal method SetUnique()
2122 * UniqueConstraint.cs: some little fixes
2124 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
2126 * DataRowCollection.cs: Bugfixes, implementation,...
2128 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
2130 * DataColumn.cs: If DataType if set to something else than short, int
2131 or long and AutoIncrement is true, AutoIncrement is must set to false.
2133 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2136 (BeginEdit): fixed array bound problem when a column has been added.
2137 (EndEdit): just assign proposed to current as proposed is set to null.
2138 This also fixes another array boudn problem.
2140 2003-03-21 Alan Tam <Tam@SiuLung.com>
2142 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
2143 EndEdit and AcceptChanges to act correctly according to DataRowState
2145 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
2146 attached and detached from the collection.
2148 2003-03-20 Alan Tam <Tam@SiuLung.com>
2150 * DataColumn.cs: Store empty string for Expression when null is passed in.
2151 Classes generated by XSD.exe passes null by default.
2153 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
2155 * DataColumnCollection.cs: Tiny clean up
2157 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
2159 * DataColumn.cs: little fixes.
2160 * DataColumnCollection.cs: Lots of little fixes and improvments.
2162 2003-03-12 Alan Tam <Tam@SiuLung.com>
2164 * DataSet.cs: Fixed a bug that the file written does not close correctly.
2166 2003-03-08 Alan Tam <Tam@SiuLung.com>
2168 * DataRelationCollection.cs: Removed the mis-overridden methods
2169 * DataRow.cs: Fixed an attribute
2170 * DataSet.cs: Fixed the modifiers
2172 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
2174 * DataTableCollection.cs: The Contains (string name),
2175 IndexOf (string name) methods, and item[string name] indexer
2176 now behave more like .NET with respect to case-sensitivity.
2177 That is if there is an exactly matching item then this one is used.
2178 If there is only one item differing in case then it used.
2179 If there are more than one item differing in case then
2180 Contains returns false, IndexOf returns -1, and item[]
2181 throws an ArgumentException.
2183 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
2185 * ExpressionElement.cs: More implementation.
2187 2003-02-28 Alan Tam <Tam@SiuLung.com>
2188 * DataSet.cs: Changed WriteTable so that it now calls the newly written
2189 WriteObjectXml to direct the call to the respective XmlConvert method.
2190 This fixes the wrong format written to XML files of bool, float,
2191 double, DateTime and TimeSpan types.
2193 2003-02-25 Alan Tam <Tam@SiuLung.com>
2195 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
2196 * DataRelationCollection.cs: Implemented AddRange and Contains.
2197 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
2198 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
2199 Reimplemented most Add methods to eliminate duplicated checks.
2200 Centralized RelationName generation procedure in GetNextDefaultRelationName.
2202 2003-02-25 Alan Tam <Tam@SiuLung.com>
2204 * DataColumn.cs: Fixed wrong storage representation of Expression
2205 (using empty string instead of null) so that ToString() returns nothing.
2206 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
2207 auto column naming now works as expected. Reimplemented some Add methods
2208 to eliminate code duplication.
2210 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
2212 * DataTable.cs: DataTable.CaseSensitive follows parent
2213 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
2214 been changed directly from DataTable
2216 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
2218 * DataSet.cs: When CaseSensitive property is changed all of the Tables
2219 of DataSet have to change too
2221 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
2223 * InternalDataCollectionBase.cs: revert change to field
2226 * DataViewManager.cs
2229 * DataSet.cs: commented use of DesignerAttribute
2230 because it broke the build. According to MSDN,
2231 DesignerAttribute does not have a zero-argument constructor
2233 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
2235 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
2237 2003-02-18 Alan Tam <Tam@SiuLung.com>
2239 * DataRow.cs: Implemented GetParentRow and GetParentRows.
2240 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
2241 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
2242 RaisePropertyChanging.
2243 * DataTable.cs: Implemented NewRowArray.
2244 * DataTablePropertyDescriptor: Fixed a modifier.
2245 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
2246 * PropertyCollection.cs: Minor fix.
2247 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
2248 * DataRelation.cs DataRelationCollection.cs DataRow.cs
2249 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
2250 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
2251 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
2252 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
2253 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
2255 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
2257 * ExpressionElement.cs: More implementation
2259 2003-02-05 Alan Tam <Tam@SiuLung.com>
2261 * DataSet.cs: Added framework for DataSet.Update Implemented missing
2262 methods GetSchemaSerializable, GetSerializationData,
2263 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
2265 * DataTable.cs: Implemented missing methods CreateInstance and
2266 GetRowType for DataTable
2268 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
2270 * DataSet.cs: Implemented private method MapType for
2271 mapping datatypes for XmlSchema
2273 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2275 * DataView.cs: implemented Dispose.
2277 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
2279 * ExpressionElement.cs: Added new file. This file is for parsing
2280 and DataData.Select () -methods and DataColumn.Expression -property
2281 * DataTable.cs: Implemented Select(string) -method
2283 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
2285 * DataSet.cs: One little fix to writing xml
2287 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
2289 * XmlSchemaMapper.cs: Some fixes.
2290 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
2293 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
2295 * UniqueConstraint.cs: Do not set columns Unique property true
2297 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
2299 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
2301 * DataTableCollection.cs: Now names new DataTable if it doesn't
2302 already have a name.
2304 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
2306 * XmlSchemaMapper.cs: Improvments.
2307 * XmlConstaints.cs: Added more constants.
2308 * DataSet.cs: Improvments of reading and writing xml
2309 * DataColumn.cs: Added default values of properties.
2311 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
2313 * XmlSchemaMapper.cs: Some improvments
2315 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
2317 * DataRowCollection.cs: Added IndexOutOfRangeException
2318 * DataTableCollection.cs: Added OnCollectionChanging and
2319 OnCollectionChanged events.
2320 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
2321 * DataTable.cs: Implemented Copy () and Clone () methods.
2322 * XmlDataLoader.cs: some fixes.
2323 * XmlSchemaMapper.cs: comments.
2325 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2327 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
2329 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2331 * DataColumnPropertyDescriptor.cs: fixed typo.
2332 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
2333 to get the DataViewManager and removed TablePD class.
2334 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
2335 suggested by danmorg.
2337 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
2339 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
2341 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
2342 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
2344 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2346 * DataView.cs: made dataViewManager internal.
2347 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
2348 properties of the object, but the values of the columns present in a
2351 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
2352 which returns a PropertyDescriptorCollection. Created a new class
2353 derived from PropertyDescriptor that treats Table as an object whose
2354 properties are DataRowView.
2356 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
2358 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
2360 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
2362 * DataColumn.cs: ExtendedProperties is by default !null-
2364 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
2366 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
2367 set column's ordinal.
2369 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
2372 * XmlDataLoader.cs: XmlReader closing fixes.
2373 * XmlSchemaReader.cs: Added support for ref=
2375 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
2378 - Added XmlReader and XmlWriter Closing.
2379 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
2380 * XmlSchemaMapper.cs
2381 - Much better way IMHO to map xmlschema than the old one in
2382 DataSet.cs. Its, more flexible, cleaner, ...
2384 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
2386 * XmlDataLoader.cs: Reading diffgrams.
2388 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
2390 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
2391 * DataTable.cs: Added ChanginDataColumn () for triggering
2392 DataColumnChanging event
2394 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
2396 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
2398 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
2400 * DataSet.cs: Indentations to WriteXml ()
2402 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
2405 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
2406 class XmlDataLoader.cs
2408 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
2410 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
2412 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
2414 * DataSet.cs: Started to implement ReadXml-methods.
2416 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2418 * DataSet.cs: implemented DefaultViewManager and GetList.
2420 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
2421 DataList in System.Web.
2423 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
2426 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
2429 * DataTable.cs: Fixed NullException (rollback -event)
2430 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
2432 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
2435 * DataRowCollection.cs: Moved event triggering from DataRow to
2438 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
2440 * DataSet.cs: Little fix to WriteTable () -method
2441 and DoReadXmlSchema () -method.
2443 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
2445 * DataSet.cs: Clean up to reading xmlschema. This looks much better
2446 now (work better too), but it not working correctly yet.
2448 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
2451 * DataRowCollection.cs: Added some event handlins stuff.
2452 * DataSet.cs: Some fixes.
2453 * DataTable.cs: Added event handlers.
2455 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
2457 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
2459 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
2461 * System.Data/DataRow.cs: Added internal property XmlDataID
2463 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
2465 * DataSystem.Data.DataTableCollection.cs:
2466 Removed HashTable. There could be situations where DataTable
2467 is added to collection before it hava TableName. So using
2468 HashTable is impossible.
2470 2002-11-19 Carlos Guzmán Álvarez <carlosga@telefonica.net>
2472 * DataRow.cs: an object that is equal to null
2473 should be allowed to be set in this indexer too
2476 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
2478 * DataColumnPropertyDescriptor.cs: added file
2480 * System.Data/DataRowView.cs: started implementation
2482 * DataTable.cs: stubbed more interfaces. Implemented
2483 IListSource.GetList()
2485 * DataView.cs: stubbed more interfaces. Implemented
2486 some properties and methods: GetEnumerator(),
2487 ITypedList.GetItemProperties, Item indexer, CopyTo()
2489 2002-05-18 Nick Drochak <ndrochak@gol.com>
2491 * DataRow.cs: Fix typo.