1 2006-06-15 Senganal T <tsenganal@novell.com>
4 - Select : If Sort String is not provided, sort the result
5 DataRows in Ascending Order of the Columns used in the filter
7 2006-06-15 Senganal T <tsenganal@novell.com>
10 - InternalEnforceConstraints : Check if any null constraints
11 are violated. Throw ConstraintException only after all the errors
14 - EnforceConstraints : Move away the logic to check for
15 NullConstraintViolation.
16 - AssertNotNullConstraint : Checks for Null Constraint
18 - EndLoadData : Do not throw any exceptions here. All the
19 errors have to be found and RowErrors set before throwing the
22 - ImportRecrod : Check the values of the row for any null
24 - SetColumnError : If the error for column is already set,
25 do not add a new error but edit the existing error.
26 - CheckValue : Set the NullConstraintViolation flag if either
27 table is being loaded or if EnforceConstraints is set to
29 * Constraint.cs : Do not throw exception when EnforceConstraints is
30 set to false or table is being loaded.
31 * UniqueConstraint.cs : Correct the error message. Set ColumnErrors
32 along with the RowError.
34 2006-05-31 Gert Driesen <drieseng@users.sourceforge.net>
36 * DataTable.cs: Renamed initInProgress to fInitInProgress. BeginInit
37 and EndInit must only be virtual in 2.0 profile. Set eol-style to CRLF.
39 2006-05-31 Senganal T <tsenganal@novell.com>
41 * XmlDataInferenceLoader.cs :
42 - InferTableElement : Repeated element should result in a single
44 Patch from Deepak Kr Velachha
46 2006-04-21 Senganal T <tsenganal@novell.com>
48 * DataRowCollection.cs :
49 - Find : If search on the table using PrimaryKey fails and if
50 index is not being maintained (during table load), search the
52 - Find (int) : Removed. Deadcode.
54 - Not necessary to delete each row from the Index.
55 Just reset the Indexes after cleaning up the row
57 - Simplify dependency check for child tables
60 - Do not use DataRowCollection.Find to search for
61 existing records as this wud check even newly loaded rows.
63 - Do not add new records to Index. Update Index only
64 if an existing record is modified. New records will be
65 taken care by EndLoadData.
67 2006-04-19 Senganal T <tsenganal@novell.com>
69 * XmlHelper.cs : A helper class for encoding/decoding schema names.
70 Caches the Schema names to minimize encoding/decoding operations and
71 duplicate strings created.
73 - Use XmlHelper for encoding/decoding schema names.
74 - Encode ConstraintNames when writing as xml.
77 * XmlDataInferenceLoader.cs
78 * XmlSchemaDataImporter.cs
79 - Use XmlHelper for encoding/decoding schema names.
80 * DataTableCollections : Minor code refactor.
81 * DataRow.cs : Create XmlElement only if required.
83 2006-04-07 Senganal T <tsenganal@novell.com>
86 - InternalEnforceConstraints() : Reset Indexes of all tables
87 before validating constraints. Fixes #78010
89 2006-03-04 Boris Kirzner <borisk@mainsoft.com>
90 * TypeDataSetGeneratorException.cs: fix .Net Soap serialization compatibility.
92 2006-03-25 Senganal T <tsenganal@novell.com>
95 - RejectChanges : When row is in Deleted state, add the row back to
96 Indexes and Validate the row.
99 2006-03-23 Senganal T <tsenganal@novell.com>
102 - LoadDataRow : Add the row to the indexes, when loading a new row.
104 2006-03-22 Senganal T <tsenganal@novell.com>
107 - PrimaryKey : Set the IsPrimaryKey attribute before Removing from collection.
108 - RemoveUniqueConstraints : Removed. dead code.
111 - If adding/removing constraint fails, retain Unique value
112 - Remove redundant code
113 * UniqueConstraint.cs :
114 - SetIsPrimaryKey : Added. Sets the value of IsPrimaryKey.
115 - RemoveFromConstraintCollectionCleanup : If constraint is on a single column, then
116 set Unique for that column to false.
117 - CanRemoveFromCollection : Do not remove constraint, if its a PrimaryKey
119 2006-03-20 Senganal T <tsenganal@novell.com>
122 - CopyRelations () : When copying the relation, do not add constraints
123 automatically for the relation.
124 - OnMergeFailed () : If merge fails and no handler is set for the MergeFailedEvent,
125 then throw DataException
126 * ConstraintCollection.cs :
127 - Add () : Check if a constraint already exists on the Columns that are being
129 - IndexOf () : Do not check for equivalent constraints, check for the exact instance.
130 * MergeManager.cs ():
132 - Handle the MissingSchemaAction.Error case,
133 - Do not create constraints when mergin the DataRelation
134 - Follow the semantics for schema merge/validation when constraints are already present
135 in the target DataSet.
136 - AdjustPrimaryKeys () :
138 - Verify Order of Columns in the PrimaryKey when merging.
139 - ResolveColumns : Changed the arument to DataSet. Simplifies code elsewhere.
140 - CompareColumnArrays, CompareColumnArrays : Helper funtions.
142 2006-03-09 Senganal T <tsenganal@novell.com>
145 - RejectChanges () : Add the row to index, if it was in deleted state and
146 Update the index if in Modified State.
147 - AcceptChanges () : Do not update the Indexes.
148 - EndEdit () : Update the indexes even if BeginLoadData has been called
149 on the table. Ideally, indexes should not be maintained during DataLoad,
150 but this needs to handled in multiple places correctly. For now, just maintain
151 the index to ensure correct operation.
153 2006-03-05 Senganal T <tsenganal@novell.com>
156 - BeginInit (), EndInit () : Implemented methods
157 - InitInProgress : Added.
159 - EndInit () : Move the adding of columns and constraints
161 - FinishInit () : Added. Adds the Constraints and Columns
163 - InitInProgress : Added.
165 - FinishInit () : Added. Virtual method
166 - InitInProgress : Added. Virtual property
167 * UniqueConstraint.cs
168 * ForeignKeyConstraint.cs
169 - FinishInit () : Added.
170 - InitInProgress : Added.
171 - DataColsNotValidated : Removed.
172 * ConstraintCollection.cs
173 - PostAddRange : Removed event
174 - PostEndEdit () : Renamed to PostAddRange
175 - Add () : Simplified the testing if constraint is initialized
176 - AddRange () : Simplified initializing the constraints
177 * DataTableCollection.cs
178 - PostAddRange () : Added. Adds the tables to the collection
179 * DataColumnColletion.cs
180 - PostEndInit () : Renamed to PostAddRange.Also, add column to
181 the collection only if not null.
183 Added/Implemented methods for design time support. Renamed some methods for consistency
184 in naming across classes for methods serving the same purpose.
186 2006-02-24 Senganal T <tsenganal@novell.com>
188 * UniqueConstraint.cs :
189 - ChildConstraint : Added. Simplifies verifying if constraints are
191 - CanRemoveFromCollection : Fixed the check to verify if constraints is
192 linked to a ForeignKeyConstraint. Fixes #77630
193 * ForeignKeyConstraint.cs :
194 - _validateRemoveParentConstraint : Removed. Not used anymore
195 - ParentConstraint : Added. Simplifies verifying if constraints are
197 2006-02-22 Senganal T <tsenganal@novell.com>
200 - RejectChanges : Do not remove Row from Indexes when state is Deleted.
201 - CheckChildRows : When checking for the ChildRows, use the current value
202 and not the original value.
204 2006-02-18 Atsushi Enomoto <atsushi@ximian.com>
206 * CustomDataClassGenerator.cs : Patch by Marek Habersack. xsd now
207 outputs AutoIncrement, AutoIncrementSeed, AutoIncrementStep and
208 ReadOnly properties. This fixes bug #77576.
210 2006-02-17 Chris Toshok <toshok@ximian.com>
212 * System.Data/DataSet.cs, System.Data/DataView.cs,
213 System.Data/ForeignKeyConstraint.cs,
214 System.Data/DataViewManager.cs, System.Data/DataRow.cs,
215 System.Data/DataSysDescriptionAttribute.cs,
216 System.Data/UniqueConstraint.cs, System.Data/DataTable.cs,
217 System.Data/DataRelation.cs: lots of attribute work, removing
218 DataSysDescription atributes (and marking the class obsolete) for
221 2006-02-17 Chris Toshok <toshok@ximian.com>
223 * DataAdapterException.cs: remove this file.
225 2006-02-17 Chris Toshok <toshok@ximian.com>
227 * DataTableReader.cs: Switch to the (bool) form of Dispose to
228 override, as the no-arg form isn't virtual.
230 * Constraint.cs: #ifdef out more DataSysDescriptions.
232 * ConstraintException.cs: add ..ctor (string, Exception) for 2.0.
234 2006-02-17 Chris Toshok <toshok@ximian.com>
236 * DataColumn.cs: #ifdef all the DataSysDescriptions !NET_2_0.
238 * AdapterMappingException.cs: nuke this file.
240 * IDbAsyncConnection.cs, IDbAsyncCommand.cs, IGetTypedData.cs,
241 ISetTypedData.cs, IDataReader2.cs, IDataSources.cs,
242 IDbExecutionContext.cs, IDataRecord2.cs, IDataUpdatableRecord.cs:
243 remove these 2.0 files.
245 2006-02-17 Chris Toshok <toshok@ximian.com>
247 * ConstraintCollection.cs: in 2.0, class is not serializable and
248 is sealed. make all the "virtuals" #if !NET_2_0 as well.
250 * Constraint.cs: not serializable in 2.0.
252 * DataColumnCollection.cs: in 2.0, class is not serializable and
253 is sealed. make all the "virtuals" #if !NET_2_0 as well.
255 * DataRelationCollection.cs: not serializable in 2.0.
257 * DataRelation.cs: not serializable in 2.0.
259 * DataRowBuilder.cs: class is sealed in 2.0.
261 * DataRowCollection.cs: in 2.0, class is not serialized and is
262 sealed. Also, Add isn't virtual in 2.0 (as the class is sealed).
264 * DataRow.cs: not serializable in 2.0.
266 * DataSet.cs: remove some DataSysDescriptions from the 2.0 build,
267 and s/GetDataReader/CreateDataReader.
269 * DataTableCollection.cs: in 2.0, class is not serializable and is
270 sealed. make all the "virtuals" #if !NET_2_0 as well.
272 * DataTableReader.cs: remove VisibleFieldCount property.
274 * DataViewSettingCollection.cs: not serializable in 2.0.
276 * DataViewSetting.cs: not serializable in 2.0.
278 * ForeignKeyConstraint.cs: serializable in 2.0.
280 * OperationAbortedException.cs: class is sealed and serializable.
282 * PropertyCollection.cs: serializable in 2.0.
284 * StatementCompletedEventArgs.cs: class is sealed.
286 * UniqueConstraint.cs: not serializable in 2.0.
288 2006-02-16 Senganal T <tsenganal@novell.com>
291 WriteDataSetElement : Add an annotation element if exists.
292 WriteDataRelationAnnotation : New. Write a DataRelation as an annotation.
293 WriteConstraints : Write ForeignKeyConstraint even when not associated with
294 a DataRelation and add a "ConstraintOnly=true" attribute for such constraints.
295 * XmlConstants.cs : Add a new constant - ConstraintOnly
296 * XmlSchemaImporter.cs :
297 - ConstraintStructure : Add field ,IsConstraintOnly, to distinguish if a foreignkeyconstraint
298 is related to relation or not.
299 - GenerateRelation : Handle the case when parentkey and childkey contain multiple columnnames.
301 2006-02-11 Senganal T <tsenganal@novell.com>
303 * UniqueConstraint.cs :
304 - PostAddRange : Check PrimaryKey is not already set for the table
306 - PrimaryKey : follow ms.net behavior when BeginInit , EndInit is used.
307 - Add new priamry key only when EndInit is called.
308 - Incase of an error, retain old primarykey
310 - Add Constraints after columns are added.
311 - If both PrimaryKey Property and PrimaryKey Constraint are set,
312 then the Constraint takes precedence.
315 2006-02-03 Senganal T <tsenganal@novell.com>
317 * DataTableCollection.cs :
318 - Remove () : Check for invalid TableName
319 - Add () : Verify the table doesn't belong to another dataset
321 - CompleteLastAdded () : Do not raise ItemAdded Event as it is
322 already raised in AddNew().
324 - Expression : Verify that the Column names in the expression are valid
325 - ResetCollectionInfo : Renamed to ResetColumnInfo
327 - RejectChanges () : Reorganized the code to do the Right thing.
328 - Item : Dont check for detached and deleted rows as these are
330 * DataRowCollection.cs :
331 - Add () : Check for null value
333 - PrimaryKey : Set AllowDBNull=false for all the key columns
334 - ImportRow : Import the row only if it is not in Detached state. if in Deleted
335 state, perform the validation when AcceptChanges/RejectChanges is called.
336 * DataColumnCollection.cs :
337 - Add : Validate the column expression before adding it to the collection.
338 - GetColumnDependency () : New. Get the dependencies on the column
339 - CanRemove : Move checks to GetColumnDependency
340 - Clear () : Simplified code. Remove unncessary checks.Also, dont check Expression col.
341 - IndexOf - Check argument.
342 Overall , appropriate error msg's are thrown if Remove/Clear fails. Removed a few
343 redundant checks performed and moved the common code to GetColumnDependency.
345 2006-01-31 Senganal T <tsenganal@novell.com>
347 * DataSet.cs : Modified CopyRelations ()
348 - Added code to copy ForeignKeyConstraints. Fixes #77411.
350 2006-01-18 Boris Kirzner <borisk@mainsoft.com>
351 * DataColumn.cs: added PropertyCchangedEvent handling.
353 2006-01-17 Senganal T <tsenganal@novell.com>
356 ItemArray : Modified to raise RowInTableException only if
357 the concerned row has been removed from the table.Fixes
360 2006-01-16 Boris Kirzner <borisk@mainsoft.com>
361 * DataTable.cs: Drop dependend indexes on column removal.
363 2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
365 * CustomDataClassGenerator.cs :
366 When a DataRelation connects the same table as parent and child,
367 generate parent row property as BlahRowParent. Fixed bug #77248.
369 2006-01-10 Senganal T <tsenganal@novell.com>
370 * DataRowCollection.cs
371 - Added ListChangedEvent to notify reset of the collection.
373 - Subscribes to the ListChangedEvent of DataRowCollection
376 2006-01-09 Senganal T <tsenganal@novell.com>
379 - Resolving a name clash in IExpression
381 2006-01-06 Senganal T <tsenganal@novell.com>
384 * DataColumnCollection.cs
385 - Reset the Parameters of DataColumn to Default Values when
386 column is removed from the Table's Collection
388 2006-01-03 Senganal T <tsenganal@novell.com>
391 - ParseSortString() : Changed the way the sort string is parsed.
392 Using a regex to parse the string.Fixes bug #77104
394 2005-12-12 Konstantin Triger <kostat@mainsoft.com>
396 * DataRow.cs: Added index Updates.
397 EndEdit() fixed to first update indices and then AssertConstraints
398 based on those indices.
399 Added Validate() and AssertConstraints() functions.
400 * DataRowCollection.cs: Removed ValidateDataRowInternal().
401 * DataTable: Fixed Clear().
403 2005-12-06 Atsushi Enomoto <atsushi@ximian.com>
405 * CustomDataClassGenerator.cs : (InitializeFields) handle AllowDBNull
406 and DefaultValue as well. Patch by Marek Habersack (bug #76709).
408 2005-12-01 Miguel de Icaza <miguel@novell.com>
410 * DataSet.cs: Apply patch from Robert Jordan, to fix #76817
412 2005-11-26 Konstantin Triger <kostat@mainsoft.com>
414 * ConflictOption.cs: TARGET_JVM include.
416 2005-11-11 Senganal T <tsenganal@novell.com>
418 * ConflictOption.cs (new file)
419 - Added ConflictOption Enumeration
422 - GetProviderSpecificFieldType : Corrected the method name
424 2005-11-11 Senganal T <tsenganal@novell.com>
426 * DataSet.cs : Added the SchemaSerializationMode Property for NET_2_0
428 * SchemaSerializationMode.cs : Added SchemaSerializationMode Enumeration
429 for NET_2_0 compatibility.
433 2005-10-20 Atsushi Enomoto <atsushi@ximian.com>
435 * XmlSchemaWriter.cs : escape names in the schema with XmlConvert.
438 2005-10-14 Sureshkumar T <tsureshkumar@novell.com>
440 * DataView.cs: Correct multiple throwing of events. Patch from
442 (RowStateFilter): Fire ListChangedEvent.
443 (ApplyDefaultSort): Fire ListChangedEvent.
444 (CompleteLastAdded): call UpdateIndex to remove the row from rowCache.
445 (IBindingList.Find): Implemented.
447 2005-10-11 Sureshkumar T <tsureshkumar@novell.com>
449 * DataView.cs (IBindingList): Implemented methods for IBindingList interface.
451 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
453 * DataSet.cs: In IXmlSerializable.GetSchema, return null again for
454 untyped datasets. Fixes bug #76101.
456 2005-09-21 Boris Kirzner <borisk@mainsoft.com>
457 * DataRow.cs: Fixes for index updating.
459 - Reset case-sensitive indexes also if their filter contains columns
461 - Use GetIndex instead of FindIndex, so the indexes created in Select()
463 * RelatedDataView.cs: implement IExpression.Equals() and GetHashCode().
465 2005-09-20 Sureshkumar T <tsureshkumar@novell.com>
467 * DataView.cs (Sort): Apply default Sorting Order if Sort property
468 is reset to null. Sort property handles this. Patch from Marc.
470 * DataTable.cs (ParseSortString): Patch from Marc Haisenko for
471 allowing [ & ] in DataView.Sort string.
473 2005-09-01 Boris Kirzner <borisk@mainsoft.com>
474 * System.Data/DataRowCollection.cs: indexes should be updated even if
475 EnforceConstraints is false. Check for EnforceConstraints in
476 ValidateDataRowInternal.
478 2005-08-08 Gert Driesen <drieseng@users.sourceforge.net>
480 * DataView.cs: Changed accessibility of dataTable, rowState and
481 rowCache field to internal to fix public API. Assigned TypeConverter
483 * ForeignKeyConstraint.cs: IsConstraintViolated is now internal.
484 * Constraint.cs: IsConstraintViolated is now internal.
485 * UniqueConstraint.cs: IsConstraintViolated is now internal.
487 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
489 * XmlSchemaDataImporter.cs : When "dataset element" has identity
490 constraints, then first reserve constraints room for them and then
491 process elements, skipping pkey creation if there is already
492 reserved one. Fixed bug #75711.
494 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
496 * XmlDataInferenceLoader.cs : in GetElementMappingType(), don't guess
497 the same (QNamed) element again when it was already evaluated as
498 not simple type. Fixed one part of bug #75711.
500 2005-08-02 Boris Kirzner <borisk@mainsoft.com>
501 * XmlSchemaDataImporter.cs : Data relations should be processed after the
502 keys, so no redundant constraints created while relations processing.
504 2005-07-25 Boris Kirzner <borisk@mainsoft.com>
505 * FillOptions.cs, ConflictOptions.cs, UpdateOptions.cs:
506 added ifdef TARGET_JVM.
508 2005-07-22 Sureshkumar T <tsureshkumar@novell.com>
510 * DataViewSettingCollection.cs, DataTableCollection.cs,
511 DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
512 DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
513 DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
514 - updated attributes & attribute descriptions to match with
517 * DataView.cs: changed protected members
518 rowstate,rowcache,dataTable to protected internal.
519 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint.cs:
520 changed InConstraintViolated to protected internal.
521 * ConflictOptions.cs, UpdateOptions.cs, FillOptions.cs: enclosed
524 2005-07-21 Sureshkumar T <tsureshkumar@novell.com>
526 * ForeignKeyConstraint.cs:
527 - IsConstraintViolated (): no matter what EnforceConstraints is,
528 this function now honestly validates. It is upto the caller to run
530 - AddToConstraintCollectionSetup (): AssertConstraint according to
533 2005-07-21 Boris Kirzner <borisk@mainsoft.com>
534 * ForeignKeyConstraint.cs - IsConstraintViolated() should check also for Table.EnforceConstraints.
535 * DataTable.cs - EnforceConstraints becomes internal so it can be used by ForeignKeyConstraint.
537 2005-07-19 Sureshkumar T <tsureshkumar@novell.com>
539 * DataTable.cs - CopyConstraints (): copy constraints only if it
542 * DataSet.cs - Copy ():
543 - use activator.CreateInstance to create a typed dataset.
544 - copy tables if target does not exist, otherwise, just add rows.
545 - add relation only if it does not exists.
547 Typed datasets create the constraints & relations through
548 constructors. Fixes bug #75211.
550 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
552 * DataView.cs: Patch from Marc Haisenko to throw descriptive error
553 message when accessing Item, with invalid index.
555 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
557 reapplied patch from Marc Haisenko.
558 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
561 2005-07-13 Sureshkumar T <tsureshkumar@novell.com>
563 * DataRelationCollection.cs: adding a relation with same set of
564 parent columns & child columns, should not be allowed.
566 2005-07-08 Sureshkumar T <tsureshkumar@novell.com>
568 * DataTableReader.cs: GetSchemaTable: DataType column should be
569 passed a type of Type.
571 * DataRow.cs: Load : Fired necessary events.
573 * DataTable.cs: LoadDataRow (object [], LoadOption): Fired
576 2005-06-28 Sureshkumar T <tsureshkumar@novell.com>
578 * DataRow.cs: Delete (): if row is detached, do nothing.
581 2005-06-22 Sureshkumar T <tsureshkumar@novell.com>
583 * DataRow.cs: Added method MergeValuesToRow copy merge two rows
584 according to the merge rules.
586 * MergeManager.cs: (MergeRow): use MergeValuesToRow
587 API. CopyValuesToRow simply makes the target row same as source
588 row. Rather, MergeValuesToRow merges with the target row according
591 2005-06-19 Konstantin Triger <kostat@mainsoft.com>
593 * DataSet.cs: Fixed ReadXml to work with IXmlSerializable
595 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
597 * DataViewManager.cs: fixes exception and creates DataView
599 2005-06-15 Sureshkumar T <tsureshkumar@novell.com>
601 * DataRow.cs: CheckChildRows: cascade parent changes to child rows
602 only if there is a change in columns of the fk constraint.
604 2005-06-14 Sureshkumar T <tsureshkumar@novell.com>
606 * DataSet.cs: GetChanges: if row is deleted, get parent rows based
607 on original version. fixes bug #75227.
609 2005-06-13 Sureshkumar T <tsureshkumar@novell.com>
611 * DataRowCollection.cs: Find (keys, version): Added an overload to
612 find keys matching given DataViewRowState filter. Used in
613 DataSet.Merge and DataTable.LoadDataRow.
615 * DataTable.cs: LoadDataRow (values, LoadOption): Use
616 DataRowCollection.Find (object [], DataViewRowState) overload.
619 - CopyValuesToRow: Create target "records" out of loop. Records
620 should be created once, not for each column. Dispose Unused target
624 - MergeRow: Find rows with matching original records. If not,
625 select with current values.
626 - MergeRow: While adding new row, use NewNotInitializedRow.
628 * ForeignKeyConstraint.cs: IsConstraintViolated: should not check
629 if EnforceConstraints is false.
631 2005-06-10 Sureshkumar T <tsureshkumar@novell.com>
633 * DataRow.cs: CopyValuesToRow: if orginal == current, don't create
634 a new current record.
636 * DataSet.cs: GetChanges :Temporarily disable EnforceConstraints.
638 * MergeManager.cs: Merge: Temporarily disable
639 EnforceConstraints. Patch from george.barbarosie@gmail.com (George
642 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
644 * DataView.cs: fixes GetListName
646 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
648 * XmlSchemaConstants.cs,
649 XmlSchemaDataImporter.cs,
650 XmlSchemaWriter.cs : AutoIncrementStep support. Patch partly by
651 George Barbarosie. Fixed bug #75121.
652 * XmlSchemaMapper.cs : it is not used anymore, so just removed.
654 2005-05-31 Boris Kirzner <borisk@mainsoft.com>
655 * DataRow.cs : SetParentRow on Detached row with no Default version throws an exception.
657 2005-05-29 Konstantin Triger <kostat@mainsoft.com>
659 * This patch fixes #74813
660 * DataView.cs: rework the CreateChildView to receive the index into the indexed row array, rowState became protected to be initialized from RelatedDataView
661 * DataRowView.cs: movo the logic of creating the child view to the DataView
662 * RelatedDataView.cs: perform correct init.
664 2005-05-25 Sureshkumar T <tsureshkumar@novell.com>
666 * DataTable.cs: Reworked DataTable.LoadDataRow method after
667 regressions caused by Index redesign.
668 * DataRow.cs: Load : reworked.
670 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
672 * ISafeDataRecord.cs: Added GetDateTimeSafe method, the interface was made derived from IDataRecord
674 2005-05-22 Konstantin Triger <kostat@mainsoft.com>
676 * 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
678 2005-05-20 Sureshkumar T <tsureshkumar@novell.com>
680 * DataTable.cs: CreateRecord :value should be set to auto
681 increment value or default value if the given value is null.
683 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
685 * DataTable.cs: In DataTable.LoadDataRow with LoadOption - reverting the search order back to Original -> Current (by Suresh request)
687 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
689 * DataRow.cs, DataTable.cs: code under net_2_0 changed to use the new interface
690 * DataTable.cs: Added CompareRecords, which compares records in column order
693 2005-05-16 Sureshkumar T <tsureshkumar@novell.com>
696 * DataTable.cs: quick fix to make build 2.0 profile (follow up for
697 check in 2005-05-16). Merge with previous changes.
699 2005-05-11 Sureshkumar T <tsureshkumar@novell.com>
701 fix for "import row does not import deleted records"
703 * UniqueConstraint.cs: Make a way to access value even from a
704 deleted record. deleted records are added to the collection by
708 - Added restriction-less methods GetValue to fetch a
709 value even if it is in deleted state.
710 - If a row is detached, don't try to delete it from indexes.
711 - sanity check for record_index in CopyValuesToRow method
713 2005-05-05 Sureshkumar T <tsureshkumar@novell.com>
715 * DataTableReader.cs: Implemented Delete handler and move the
716 current pointer accordingly.
718 2005-05-04 Sureshkumar T <tsureshkumar@novell.com>
720 * DataTableReader.cs: Added event handlers to make reader stable
721 when the datasource is modified. Thanks to Umadevi for giving the
722 review comments for this implementation.
724 * DataTable.cs: Clear (): Raise TableCleared event.
726 * DataTableClearEventArgs.cs: Args for DataTableClearEventHandler.
728 * DataTableClearEventHandler.cs: Handler for DataTable.TableClear
731 * DataRow.cs: AcceptChanges: raise row changing & row changed
734 * DataRowCollection.cs: Clear : remove rows from indexes
736 2005-05-02 Atsushi Enomoto <atsushi@ximian.com>
738 * XmlSchemaDataImporter.cs : XmlSchemaParicle might be XmlSchemaAny.
739 This fixes bug #74784.
741 2005-04-29 Sureshkumar T <tsureshkumar@novell.com>
743 * DataTableReader.cs: removed use of _first. throw if given index
744 is out of range of columns. Copy DataTable [] to local array so
745 that not to be disturbed.
747 2005-04-27 Sureshkumar T <tsureshkumar@novell.com>
749 * DataTableReader.cs: Implemented most of the TODO.
751 2005-04-22 Sureshkumar T <tsureshkumar@novell.com>
753 * LoadOption.cs: Changed the enums. Keeping old values for
756 * DataTable.cs: Implemented methods Load and its overloads. Also
757 implemented LoadDataRow.
759 * DataRowCollection.cs: Added a variation of the Find method to
760 return a row even if it is of state Deleted. This is required for
761 DataTable.LoadDataRow method.
763 * DataRow.cs: Implemented internal helper method Load for loading
764 values from an object array and given an LoadOption (2.0 feature).
766 * DataRowAction.cs: Added few more enums for .net 2.0. Sorted
769 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
771 * UniqueConstraint.cs : IsNull check is relevant for rows having default row version.
772 * DataTable.cs : The row should be validated when imported
773 * DataRowCollection.cs : if the row does not contain Proposed neither Current version, it's irrelevant for validation
775 2005-04-26 Boris Kirzner <borisk@mainsoft.com>
777 * UniqueConstraint.cs :
778 - Add indication whenever the constraint belongs to collection.
779 - Calculation of IsPrimaryKey simplified.
780 - If constraint is based on single column, the column becomes unique.
781 - Use boolean IsConstraintViolated() instead of AssertConstraint().
782 - Use Index.Duplicates to proper exception message formatting.
783 - AssertConstraint(DataRow) changed to suite new indexes interface.
784 - Added CanRemoveFromCollection method.
785 - Contains() method renamed to IsColumnContained().
786 * RelatedDataView.cs : added new class.
788 - Reset indexes after merge.
789 - Add new tables when row array is merged into dataset.
790 - Clean proposed record in MergeRow.
791 - Inherit nesting on creating new relations in target data set.
792 - Avoid double loop on constraints collection.
793 * Locale.cs : added new class.
794 * ISafeDataRecord.cs : added new interface.
795 * Index.cs : commented out. Index implementation moved to System.Data.Common.
796 * ForeignKeyConstraint.cs :
797 - No more use of childColumnsExtended since new indexes allow duplicate records.
798 - Constraints can not be created on expression columns.
799 - Removed unnecessary delegation.
800 - Use boolean IsConstraintViolated() instead of AssertConstraint().
801 - Use proper exception message formatting.
802 - Contains() method renamed to IsColumnContained().
803 * DataViewRowState.cs : use enum members to simplify notation.
804 * MergeManager.cs : implemented RelationCollectionChanged().
805 * DataView.cs : new implementation.
806 * DataTableCollection.cs :
807 - Added boundary check in indexer.
808 - More accurate handling in AddRange().
809 - Raise event in Remove().
811 - Hold primary key as constraint.
812 - Added accurate handling of DefaultView.
813 - Hold DataRowBuilder per table.
814 - Proper exception messages if enforce Constraints is violated.
815 - If there is no rows, Compute() returns DBNull.
816 - Use DataRow properties instead of private members.
817 - CopyProperties() fixed.
818 - Raise proper events in EndInit().
819 - Proper order of violation checks in EndLoadData().
820 - Create array of rows using NewRowArray().
821 - ImportRow handles rows according to their versions.
822 - LoadDataRow make use of records (instead of raw object array).
823 - Added and implemented LoadDataRow() that gets IDataRecord as a parameter (used in Fill)
824 - Select() uses indexes filtering and sorting ability (instead of "loop-throw-sort" approach).
825 - Removed redundant RowSorter and Sortable column classes.
826 - ParseSortString() fixed to threat bracketed column names.
827 - Table holds collection of property descriptors.
829 - Reset table case sensitive indexes on CaseSensitive change.
830 - EnforceConstraints update logic moved to internal method (used by DataTable).
831 - InAddChangedRow first add row and than copy values for proper handling of default values.
833 - Changed private member names to suite name convention.
834 - CancelEdit() fixed.
835 - CreateChildView() delegates to DataView.
837 - Proper exception messages in indexers.
838 - RowVersion uses DataView.
839 - GetProperties() delegates to corresponding table if needed.
840 * DataRowCollection.cs :
841 - Common Add() logic moved to AddInternal() (used also by DataTable).
842 - Removed redundant check from Contains().
843 - Dalegate Find() calls when possible.
845 - RomoveAt() delegates to Remove().
846 - Optimized constraints check in row validation.
847 * DataRelationPropertyDescriptor.cs : added new class.
848 * DataRelationCollection.cs :
850 - Fixed order of actions in AddCore().
851 - RemoveCore() also delegates to base.
852 - Add relation to dataset also in AddCore().
853 - Remove relation from dataset also in RemoveCore().
854 - InTransition hold a data relation so we can properly identify the "in transition" state.
855 - Added threat of parent and child table s property descriptors in Add().
856 - Common Add() logic moved to AddCore().
858 - Remove() threats "in transition" state properly.
859 - Remove methods delegate to single implementation.
860 * DataColumnPropertyDescriptior.cs :
861 - Added new constructor.
862 - Commented out redundant method.
863 * DataColumnCollection.cs :
864 - Boundary check in indexer.
865 - RegisterName and UnregisterName become internal (used also by DataColumn).
868 - Rethrow correct exception in Clear();
869 - Change in collection resets parent table property descriptors.
870 - Added PostEndEdit() helper method (used by DataTable).
872 - Private member names changed to suite name convention.
873 - Created method for CanAutoIncrement() logic.
874 - Proper handling of column name update.
875 - Proper exception messages on expression update.
876 - Proper namespace handling (delegates to table when needed).
877 - Removed redundant check in Unique update.
878 - Implemented internal Clone().
879 - GetParentRalation() and GetChildRelation() become private.
881 - Added abstract methods (implemented in UniqueConstraint and ForeignKeyConstraint).
882 - Simplified index update.
883 * ConstraintCollection.cs :
884 - Use Locale instead of CaseSensitive in column names comparison.
886 - Rethrow correct exception type in Add().
887 - Proper update of table primary key in Add().
888 - Delegate CanRemove() to constraint.
889 - Remove table primary key in Clear();
890 - Delegate "can remove" check to constraint in Remove().
891 - Removed unnecessary methods and properties.
893 - RowSate becomes calculated property.
894 - Use properties instead of private members where possible.
896 - Fixed order of actions in ItemArray update.
898 - Added ImportRecord() method.
899 - Removed redundant SetValuesFromDataRecord().
900 - Fixed IndexFromVersion().
901 - Added VersionFromIndex() method. Returns row version the passed record index corresponds to.
902 - Fixed AcceptChanges().
903 - Fixed creating proposed version in BeginEdit();
904 - Added record disposal in Delete().
905 - Fixed CheckChildRows().
906 - EndEdit() fixed. Checks for readonly. Uses straight flow instead of "try and fix if fail" approach.
907 - GetChildRows() and GetPrarentRows() rewrited. Use records and indexes for rows lookup.
908 - GetColumnError() delegates to another implementation.
909 - HasVersion() fixed.
910 - RejectCahnges checks on child rows before passing through.
911 - SetParentRow() fixed. Create relation collection if needed. Use typed data container value copy.
912 - CopyErrors() logic moved to separate method (used also by DataTable).
913 * ExpressionElement.cs : added new class.
914 * Res.cs : added new class.
916 2005-04-20 Jordi Mas i Hernandez <jordi@ximian.com>
918 * DataViewManager.cs: implements TypedList.GetListName used in SWF
920 2005-04-19 Atsushi Enomoto <atsushi@ximian.com>
922 * DataRowView.cs : indexer should access to DataRow with proper
923 DataRowVersion. Fixed bug #74650.
925 2005-04-18 Sureshkumar T <tsureshkumar@novell.com>
927 * DataRow.cs: if there are no mapping fields, fill with default
930 2005-04-17 Atsushi Enomoto <atsushi@ximian.com>
932 * DataView.cs : Delete() should not try to remove row twice.
935 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
937 * DataTable.cs : Use GetRowType() for the base of the returning array
938 type of Select(). Fix by Gerhard Rittweger.
939 * CustomDataClassGenerator.cs : Fixed slightly harmless wrong code.
941 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
943 * CustomDataClassGenerator.cs : custom relation was not added to
944 Relations property. The second entry of bug #69276 was fixed.
945 Patch by Daniel Rodriguez.
947 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
949 * DataRowCollection.cs: Fix the signature of the Add method
952 2005-03-16 Atsushi Enomoto <atsushi@ximian.com>
954 * DataRow.cs : on importing row, it was copying data from incorrect
955 DataRow. This fixes bug #73288.
957 2005-03-07 Jackson Harper <jackson@ximian.com>
959 * DataViewManagerListItemTypeDescriptor.cs: Implement missing
960 features. These are needed for System.Windows.Forms databinding.
962 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
964 * DataColumn.cs : setting negative value on MaxLength of SimpleContent
965 column is still valid.
967 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
969 * XmlSchemaWriter.cs : new file for outputting XmlSchema.
970 * DataSet.cs : removed rewritten code in XmlSchemaWriter.
971 * XmlConstants.cs : added UseCurrentCulture constant.
973 Use new Xml Schema writer.
974 Use XmlSchemaDataImporter as we use in DataSet.
976 2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
978 * DataView.cs, DataRowView.cs : Fixed bug #72421. CreateChildView()
979 should target only child rows.
981 2005-02-03 Atsushi Enomoto <atsushi@ximian.com>
983 * DataViewManager.cs: misuse of ReadStartElement(string).
984 * DataRowView.cs : removed some MonoTODO.
986 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
987 Ankit Jain <radical@corewars.org>
989 * DataColumn.cs: throw exception if the column is part of a
990 relationship, when chaning the data type. Added methods
991 "GetParentRelation ()" and "GetChildRelation ()" get the relation
992 which contains the current column
993 * DataRelation.cs: Added method "Contains (DataColumn)" to check
994 whether the relation contains the given column.
996 fixes nunit failure: DataRelationTest.InvalidConstraintException2.
998 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1000 * DataColumnCollection.cs: implemented todo item "check for
1001 constraints" when removing columns from table.
1002 * DataRowCollection.cs: Clear (): don't have to throw child key
1003 constraint exception when the child table does not have any
1004 rows. safe to remove parent rows.
1005 * UniqueConstraint.cs: added method "Contains (DataColumn)" to
1006 check whether a column is part of UniqueConstraint.
1007 * ForeignKeyConstraint.cs: added method "Contains (DataColumn,
1008 lookInParent)" to check whether a column is part of foreignkey.
1010 fixes nunit failure: DataTableTest.ClearTest ()
1012 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1014 * ForeignKeyConstraint.cs: validating columns: move checking
1015 "tables are of same dataset" before "checking column types".
1017 fixes nunit failure: ForeignKeyConstraint.CtorExceptions.
1019 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1021 * DataViewManager.cs : let's just use StringWriter instead of
1022 XmlTextWriter (to avoid empty tag string mismatch annoyance.)
1023 * DataView.cs : implemented BeginInit() and EndInit(). Don't update
1024 rows during init phase until EndInit() is invoked. During init phase,
1025 just hold properties such as Sort that affects on rows.
1027 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1029 * DataTableCollection.cs : (RemoveAt) just use IndexOutOfRangeException.
1031 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1033 * DataView.cs : DataRowView.EndEdit() raises ItemMoved event.
1034 set_Table clears Sort and RowFilter.
1036 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1039 - Clear() should clear AddNew cache.
1040 - Open() invokes Reset().
1041 - ConstraintCollectionChanged() itself does not invoke OnListChanged().
1042 - Reset() does not Open, Close and Update Index.
1043 - UpdateIndex() can be invoked even if it has no table.
1044 - Reset event is invoked always after actual query to table.
1045 - set_Table should raise PropertyDescriptorChanged event.
1047 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1049 * DataView.cs : ColumnCollectionChanged() is the event invoker (i.e.
1050 when overriden, no column change events are fired).
1052 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1054 * DataView.cs : CancelEditRowView() and DeleteRowView() was incorrectly
1055 checking target tables. They also should raise events if required.
1057 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1059 * DataView.cs : simplify code with UnsortedList.
1061 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1063 * DataView.cs : Mostly reimplemented.
1064 - UpdateIndex() is invoked only when it is required (results in
1065 significant performance improvement).
1066 - Use SortedList and wrapper OptionalSortedList which switches
1067 between SortedList (with Sort) and UnsortedList (without Sort).
1068 - DataView itself now contains two collections for rowviews:
1069 Table rows based pool and AddNew() based cache. Consider those
1070 two collections in every members.
1071 - Reset() does not clear rows. Just invokes UpdateIndex().
1072 - Hook RowDeleting, ColumnChanging and ColumnChanged events in table
1073 which is required to handle state changes.
1074 - Reimplemented Find() and FindRows() because of internal changes.
1076 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1078 * DataTable.cs : Fixed row comparer. Even if every of the sort target
1079 columns are identical for two rows, they should not be regarded as
1080 the same unless they are Object.ReferenceEquals.
1082 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1084 * DataRowCollection.cs : on adding a row, should raise
1085 ChangingDataRow() as well as ChangedDataRow().
1087 2005-01-31 Sureshkumar T <tsureshkumar@novell.com>
1089 * DataRow.cs: SetParentRow (): use relation.ParentColumns &
1090 relation.ChildColumns instead of relation.ChildKeyConstraint.*
1091 because createConstrains flag may be false when creating data
1092 relations. Hack along with Ankit Jain.
1094 2005-01-31 Atsushi Enomoto <atsushi@ximian.com>
1096 * DataView.cs :some interface implementations.
1098 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1100 * DataView.cs : Add to table only when the row is not in the table.
1102 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1104 * DataView.cs : implemented FindRows() (btw we should not use
1105 DataTable since there are detached rows by AddNew().)
1107 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1110 Code cleanup: privatify some members, remove unused methods.
1111 Some event-based invocation methods should not raise NotImplemented.
1113 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1115 * DataSet.cs : ReadXml() became closer to MS behavior, being hacky.
1117 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1119 * XmlSchemaDataImporter.cs : empty element is not regarded as a column.
1121 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1123 * UniqueConstraint.cs : mostly reverted the previous patch + check
1124 IsPrimaryKey before validation.
1126 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1128 * DataView.cs : Fixed duplicate insertion to Hashtable.
1129 * UniqueConstraint.cs : Unique constrained pair of columns could be
1132 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1135 Don't do anything for Sort/ApplyDefaultSort/RowFilter/RowStateFilter
1136 when the same value is being set.
1137 Examined UpdateIndex() and marked FIXME where MS does not invoke it.
1138 Removed unused OnColumnChanged().
1139 Now store rowViewPool and reuse DataRowView objects.
1140 Optimized UpdateIndex() - avoid ArrayList. Avoid Haashtable.Rehash().
1142 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1144 * DataViewSettings.cs : no MonoTODO anymore.
1145 * DataViewManager.cs : pass itself to new DataView() (new ctor).
1146 * DataRowView.cs : GetHashCode() returns its Row's hash.
1147 * DataTablePropertyDescriptor.cs : use new ctor().
1148 * DataView.cs : added new ctor()s that accept DataViewManager.
1150 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1152 * DataView.cs, DataRowView.cs : AddNew() should not add the row to table
1153 (it is still detached). So handle those rows differntly.
1154 CancelEdit(), EndEdit() and Delete() propagates those events to
1155 DataView (and handle row collection).
1156 Eliminate "throw new Exception()".
1157 Don't catch all the exception thrown in ListChanged event.
1158 * DataTable.cs : made RowSorter as internal and use it in DataView.
1159 no need to pass DataRow[] to .ctor().
1161 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1163 * DataTable.cs : don't create DefaultView unless it is required. It
1164 significantly improves performance. (i.e. DataView perf. is sick ;-)
1166 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1168 * DataViewSetting.cs,
1169 DataViewSettingCollection.cs,
1170 DataViewManager.cs : implemented basic members.
1172 2005-01-26 Atsushi Enomoto <atsushi@ximian.com>
1174 * Node.cs, DataColumnPropertyDescriptor.cs, DataTable.cs :
1175 Eliminate "throw new Exception".
1177 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1179 * DataRow.cs : (set_Item) RowNotInTableExeption check should be done
1180 regardless of index existence.
1182 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1184 * DataTable.cs : use new IExpression.EvalBoolean() to avoid extraneous
1187 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
1189 * DataTable.cs: ImportRow :Do not add to rows collection if the
1190 import row is in detached state.
1192 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
1194 * DataRow.cs: CopyValuesToRow : set the column value with the
1195 default version of the given row.
1196 * DataTable.cs: ImportRow: Copy values before adding row.
1197 * DataSet.cs: AddChangedRow: Add the row to the table after
1200 Fixes bug #67317. Patch by Ankit Jain.
1202 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1204 * DataRowView.cs : Fixed IsEdit to reflect correct status of DataRow.
1205 * DataRow.cs : Expose editing status internally.
1207 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1209 * DataView.cs : missing attributes.
1211 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
1213 * DataRowView.cs : implemented CreateChildView().
1215 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
1217 * DataTable.cs, DataView.cs :
1218 Optimized DataView to compile only once RowFilter and Sort when
1219 those properties are set. To make it possible, extracted
1220 SortableColumn out of DataTable and added internal DataTable.Select()
1221 that accepts precompiled IExpression and SortableColumns[].
1223 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
1225 * DataColumn.cs : set_MaxLength is not allowed when it is mapped to
1226 SimpleContent. (However, it is weird but it never fails when we set
1227 ColumnMapping = MappingType.SimpleContent when we fhave MaxLength.)
1229 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
1231 * DataRow.cs : more Current -> Default fixes. Check if it should throw
1232 VersionNotFoundException. Patch by Ankit Jain.
1234 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
1236 * DataRow.cs : Default selects the right version for the current
1237 state of the row. Current is not always available. Also change
1238 that for GetParentRow(). Patch by Ankit Jain.
1240 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
1242 * DataTable.cs : CopyColumn() should copy AutoIncrement after
1243 DefaultValue, or it will raise an error in some cases.
1245 2005-01-20 Atsushi Enomoto <atsushi@ximian.com>
1247 * ConstraintCollection.cs : Add() should throw ArgumentException when
1248 the argument constraint fails validation.
1249 DataTable.cs : set_PrimaryKey should throw ArgumentException when
1250 the argument contains constraints which fail validation.
1252 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
1254 * DataRelationCollection.cs:
1256 Method Remove : Donot throw exception if DataRelation argument is
1257 null in DataRelationCollection.Remove method.
1259 Method RemoveAt : Exception should be IndexOutOfRangeException if
1260 row index is not in list range.
1262 Fixes nunit failures DataRelationCollection.Remove and
1263 DataRelationCollection.RemoveAt.
1265 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
1267 * ConstraintCollection.cs: Donot throw exception if constraints
1268 are null in AddRange method. Check for null before using the
1273 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
1275 * XmlDataInferenceLoader.cs,
1276 XmlDataReader.cs : Check if the XmlReader (node) represents DataSet
1277 or a table, reusing code block in XmlDataInferenceLoader.
1278 This fixes bug #60118.
1280 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
1282 * XmlDiffLoader.cs : Ankit Jain <radical@imt.ac.in> has a conflicting
1283 patches and some good catches. Some attributes should be skipped,
1284 and loaded value must be typed.
1286 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
1289 XmlDataInferenceLoader.cs,
1290 XmlDataReader.cs : use common const for http://www.w3.org/2000/xmlns/.
1291 * XmlDiffLoader.cs : It was not handling attributes. Fixed bug #70961.
1293 2005-01-18 Sureshkumar T <tsureshkumar@novell.com>
1295 Fix for bug #66838. This patch is submitted by "Ankit Jain"
1296 <radical@corewars.org> and refactored.
1298 * DataRow.cs: Allows to set a parent row even if the row is in
1301 * DataRelation.cs: method "UpdateConstraints" is added to check
1302 and create missing keys when adding a relation. This is refactored
1303 approach from DataRelationCollection.Add method.
1305 * DataRelationCollection.cs: AddCore methods of all relation types
1306 are synchronized. A Check for existing constraints is
1307 done. Relation is added to the list only if all checks are passed.
1309 2004-01-18 Atsushi Enomoto <atsushi@ximian.com>
1311 * DataColumnCollection.cs : Clear() throws ArgumentException that
1312 wraps thrown innerException.
1313 * XmlSchemaDataImporter.cs : removed FIXMEs.
1315 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
1317 * DataSet.cs : When serializing DataTable, BuildSchema() is passed
1318 null relation collections.
1319 Quick fix for XmlSerializer deserialization. It does not require
1320 XML Schema included.
1322 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
1325 CustomDataClassGenerator.cs :
1326 In DataSet class, IXmlSerializable.GetSchema() returns null.
1327 In strongly-typed class, it returns schema.
1329 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
1331 * XmlDataInferenceLoader.cs : test driver class should be excluded.
1333 2004-12-01 Miguel de Icaza <miguel@ximian.com>
1335 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
1338 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
1340 * CustomDataClassGenerator.cs : generated foreign key constraint
1341 construction code was creating empty child columns and thus it
1342 was invalid. This fixes bug #69276 (patch by Martin Voelkle).
1344 2004-11-02 Atsushi Enomoto <atsushi@ximian.com>
1346 * CustomDataClassGenerator.cs : custom DataTable ctor should call
1347 InitializeFields(), and those DataColumns created by that method
1348 should take data type. This should fix bug #68972.
1350 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
1352 * DataSet.cs : Also clear UnhandledAttributes ArrayList before
1353 generating next attribute column schema. This fixes bug #68432.
1355 2004-10-14 Umadevi S <sumadevi@novell.com>
1356 * DataTable.cs : Corrected the Clone method to use Activator.CreateInstance so that the
1357 correct subclass is returned. This fixes bug #67631
1359 2004-10-14 Umadevi S <sumadevi@novell.com>
1360 * DataSet.cs : Corrected the Clone method to use Activator.CreateInstance so that the
1361 correct subclass is returned. This fixes bug #67627
1363 2004-10-13 Atsushi Enomoto <atsushi@ximian.com>
1365 * DataSet.cs : clear UnhandledAttributes ArrayList before generating
1366 next element column schema. This fixes bug #68256.
1368 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
1370 * DataSet.cs : now xs:schema contains xmlns="".
1371 This fixes bug #68008.
1373 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
1375 * DataSet.cs : DBNull attribute column should not be written as
1376 empty attribute. This fixes bug #68007.
1378 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
1380 * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
1381 DataColumn.ReadOnly was not handled. This fixes bug #68005.
1382 Attribute defaultValue was not handled too.
1384 2004-10-07 Atsushi Enomoto <atsushi@ximian.com>
1387 - When AllowDBNull is false on attribute DataColumn, its schema
1388 should contain use="required". This fixes bug #66792.
1389 - If MaxLength is set on attribute DataColumn, the mapped schema
1390 type should contain maxLength facet. This fixes bug #66793.
1392 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
1394 * DataSet.cs : For a row, when a relation is not nested, then it is
1395 still output target since it won't be written as a child of its
1396 parent. It fixes bug #66379.
1398 2004-10-03 Atsushi Enomoto <atsushi@ximian.com>
1400 * DataSet.cs : Attribute constraint field XPath must be written as
1401 @blah. This fixes bug #66366.
1403 2004-09-28 Umadevi S <sumadevi@novell.com>
1404 * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
1406 2004-09-24 Sureshkumar T <tsureshkumar@novell.com>
1408 * DataSet.cs : Don't check constraints for dataset clear
1409 * DataRowCollection.cs : check for EnforceConstraints flag
1410 before checking foriegn key constraints in Clear method
1411 * DataTable.cs : Redundant checking removed in Clear method as it is
1412 checked in DataRowCollection.Clear method.
1415 2004-09-19 Sureshkumar T <tsureshkumar@novell.com>
1416 * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
1417 hence, adding a row cache is necessary if the original row happens to be current.
1420 2004-08-23 Martin Baulig <martin@ximian.com>
1422 * XmlDataInferenceLoader.cs (Driver): Make this class internal,
1425 2004-08-18 Umadevi S <sumadevi@novell.com>
1426 * DataView.cs - Completed most of the event handling.
1427 Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
1428 Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
1429 * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
1431 2004-08-06 Atsushi Enomoto <atsushi@ximian.com>
1433 * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
1435 2004-08-05 Atsushi Enomoto <atsushi@ximian.com>
1437 * XmlConstants.cs : Added constants for "msprop" support.
1438 * DataSet.cs : ExtendedProperties should be written in the schema.
1439 This fixes bug #61233.
1441 2004-07-27 Atsushi Enomoto <atsushi@ximian.com>
1443 * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
1444 used. There were also some culture dependency problems to write int.
1446 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
1448 * XmlDataInferenceLoader.cs : It was not always filling relation
1449 child table information correctly. This fixes bug #60742.
1451 2004-06-23 Umadevi S <sumadevi@novell.com>
1452 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
1454 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
1456 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
1457 schema is inside the document element (as created in XmlWriteMode
1458 .WriteSchema), it should read schema from that non-document element.
1459 This fixes one case reported in bug #60470.
1461 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
1463 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
1464 inference target. For bug #60470. (MS does not support schema
1465 document inference and results in unconsistent dataset structure.)
1467 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
1469 * DataTableCollection.cs : reset the table's DataSet to null when
1470 removing a table from this collection.
1471 * DataTable.cs : When Namespace is not specified explicitly, its
1472 Namespace property reflects DataSet's Namespace if exist.
1473 This fixes bug #60469.
1475 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
1477 * DBConcurrentcyException.cs: CRLF to LF
1478 * DataViewSetting.cs: CRLF to LF
1480 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
1482 * DataViewSetting.cs: renamed fields to match MS.NET
1484 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
1486 * DBConcurrencyException.cs: fixed serialization compatibility with
1489 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1491 * ChangeLog : Fix for misspelled words.
1493 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1495 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
1497 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1500 - Table stores default values for columns in special default values row.
1501 It is allocated once (in NewRow).
1502 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
1503 - OnRemoveColumn has nothing to perform by now.
1505 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1508 - Changed access of original, current and proposed indexes to internal.
1509 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
1510 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
1511 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
1512 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
1513 Care about Null and DBNull values is now in DataContainer.
1514 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
1515 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
1516 - Fix in CopyState : clone column errors.
1517 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
1519 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1521 * DataColumnCollection.cs :
1522 - Fix : Add() now delegates to Add(DataColumn).
1523 - autoIncrement list holds DataColumn objects, and not just column names.
1525 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1528 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
1529 - DefaultValue fixes. Default value from now on is also stored in special record in
1530 DataTable, so we're able to set default value for the column faster (typed).
1533 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
1535 * DataSet.cs : children of non-root rows were not properly written.
1538 2004-06-10 Umadevi S <sumadevi@novell.com>
1539 * DataRelation.cs - Constructor
1540 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
1542 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
1544 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
1546 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
1548 * Constraint.cs: marked methods internal to fix public API
1549 * ConstraintCollection.cs: to fix public API, use
1550 DataTable.fInitInProgress to check whether initialization
1551 of DataTable is in progress
1552 * DataColumn.cs: added stubs for missing methods
1553 * DataRowBuilder.cs: marked Table property internal to
1555 * DataSet.cs: removed extra empty destructor, marked
1556 OnMergeFailed internal to fix public API
1557 * DataTable.cs: use fInitInProgress field to hold init
1558 status, to match MS.NET
1559 * DataView.cs: added missing attributes on IsOpen
1561 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
1563 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
1564 in XmlNamespaceManager.
1566 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
1568 * DataSet.cs : complex table content child was not properly added
1569 when it is the only one child in the parent table. Fixed bug #53959.
1571 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
1572 * DataTableTypeConverter.cs: added
1573 * DataView.cs: added missing attribute on Table property
1574 * DataViewManager.cs: moved attribute to correct property
1575 * UniqueConstraint.cs: removed extra ReadOnly attribute from
1576 IsPrimaryKey property
1578 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
1580 * DataRow.cs : ColumnsChanged event is not required in .ctor().
1582 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
1584 * XmlDataReader.cs : type change is required before setting value
1587 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1589 * DataSet.cs : Loop-break of the last fix was incorrect.
1591 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1593 * DataSet.cs : When a row has no parent row but the table has parent
1594 relation(s), that row had been always ignored.
1596 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1598 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
1599 rejected same-named tables in different hierarchy. Thanks to Boris.
1601 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1603 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
1604 infinite loop. Thanks to Boris for this fix.
1606 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1608 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
1609 Thanks to Boris for this fix.
1611 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
1613 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
1614 for ReadXml(). Thanks to Boris.
1616 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
1618 - CheckReadOnlyStatus : use typed (and faster comparing).
1619 - EndEdit : bug fix - do not dispose record if it holds original version.
1620 - SetValuesFromDataRecord : Take care about autoincrement columns.
1623 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
1625 * MergeManager.cs : don't output debug message to Console.
1627 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
1629 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
1630 structure. Thanks to Boris Kirzner for the fix.
1632 2004-05-27 Umadevi S <sumadevi@novell.com>
1633 * DataRelationCollection.cs - fixed nunit test errors
1635 2004-05-27 Umadevi S <sumadevi@novell.com>
1636 * DataTableCollection.cs - fixed nunit test errors
1638 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1640 * DataColumnCollection.cs : NullReferenceException was thrown when
1641 the table was not found.
1642 * DataRowCollection.cs :
1643 Find() just returns null for null value under MS.NET 1.1.
1644 RemoveAt() should also avoid to call AcceptChanges() like Remove().
1645 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
1646 directly under MS.NET (for nunit test).
1648 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1650 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
1651 caused problem on qualified name to get schema Field name.
1653 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1655 * XmlDataReader.cs : Now data reader is namespace aware in all places.
1656 When table's namespace is different, it entered to infinite loop.
1658 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1659 * MergeManager.cs : AdjustSchema now updates by reference new created table,
1660 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
1663 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1665 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
1666 * DataColumnCollection.cs : fixed parantethes.
1668 - AcceptChanges : do nothing if row state is unchanged.
1669 - GetChildRows, GetParentRows : bug fix (use correct index).
1670 * DataRowCollection.cs : bug fix (compare all row's values).
1671 * DataTable.cs : bug fix (use correct row version).
1673 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1675 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
1676 When content type is Mixed, text column is not required (it is
1677 required only when the complex type has no particle).
1678 "Repeated element" column is also created (considering maxOccurs=0
1679 and complex content extension).
1681 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1683 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
1686 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1688 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
1689 Fixed relation inference to consider attribute XPath.
1691 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
1693 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
1696 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1698 * DataColumn.cs - removed default member attribute.
1700 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1703 DataColumnChangeEventArgs.cs,
1704 DataColumnCollection.cs,
1706 DataRowCollection.cs,
1708 Index.cs : Data storage in the row is redesigned. Now data is stored in
1709 typed containers inside DataColumn. Row holds its versions as indexes inside
1710 each of data container, accessed through the row that holds it.
1712 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1714 * UniqueConstraint.cs - added comment.
1716 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
1718 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
1721 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
1724 XmlDataInferenceLoader.cs,
1726 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
1727 XmlEncode every local name to write. This should fix bug #58268.
1729 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
1731 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
1732 Supported repeated elements. Removed MonoTODOs.
1733 * XmlDataInferenceLoader.cs : Design change to support ignored
1734 namespace and repeated elements.
1735 * XmlSchemaDataImporter.cs : Added mapping support classes.
1737 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
1739 * CustomDataClassGenerator.cs :
1740 Added property parent "[foo]Row" and children "Get[foo]Row" support
1741 for custom DataRow classes.
1742 Fixed DataColumn property accessibility (public --> internal).
1744 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1746 * CustomDataClassGenerator.cs :
1747 - Put classes inside custom DataSet class.
1748 - Added automatic DataRelation creation support.
1749 - Added Constraints creation support. That is done separate from
1750 relations, since they might be independently created.
1751 - Added non-MS public DataRelation fields.
1752 - Removed extraneous "DataRelation type generation" code.
1753 - Fixed custom_dataset.Initialize() not to create "c" field that
1754 was created more than once.
1755 - Implemented AddxxxRow() that takes parameters for every column.
1757 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1759 * XmlSchemaDataImporter.cs : When primary key is used more than once,
1760 DataRelation borked because of empty parent column name.
1762 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1764 * XmlSchemaDataImporter.cs : When Creating constraints with related
1765 to DataRelation creation, also set PrimaryKey to the parent table.
1767 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1769 * XmlSchemaDataImporter.cs :
1770 Design change to add indirect table and relation structures.
1771 Support for "relation" annotation for local element.
1772 Support for repeatable simple element column (maxOccurs > 1).
1773 Fixed handling of Nested property on DataRelation (for globally
1774 annotated relation, Nested is false).
1776 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
1778 * DataRow.cs : Added DataElement property to avoid storing every row-
1779 element mapping. It stored even for nodes that should be removed.
1781 2004-05-13 Umadevi S <sumadevi@novell.com>
1783 * RelationshipConverter.cs - Stubbed this class
1784 * DataRelation.cs - added TypeConveterAttribute
1786 2004-05-13 Umadevi S <sumadevi@novell.com>
1788 * DataColumnCollection.cs - Added ResDescriptionAttribute
1789 * DataRelation.cs - Added TypeConverterAttribute
1790 * DataRelationCollection.cs - Added DefaultPropertyAttribute
1791 * DataRowView.cs - Added GetHashCode method with a TODO tag
1792 * DataSet.cs - Added DesignerAttribute
1793 * DataView.cs - Added DesignerAttribute
1794 * DataViewManager.cs - Added DesignerAttribute
1795 * DataViewSetting.cs - Added TypeConverterAttribute
1797 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
1799 * DataRow.cs : Added XmlDataElement initialization code.
1801 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
1803 * XmlDataInferenceLoader.cs :
1804 It now requires XmlDocument as input. Improved identification of
1805 DataSet element. Removed extra lines.
1806 Moved boresome design notes to bottom of the source and
1807 added standalone runnable driver (not included on build).
1809 Update with related to the change above.
1810 WriteXml() should call Flush() after writing. This fixes bug #58327.
1811 * XmlSchemaDataImporter.cs :
1812 Improved indentification of DataSet element.
1814 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
1815 * DataTable: marked initStatus enum internal
1817 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
1818 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
1820 * DataRowView.cs: removed extra Error property
1821 * DataRow.cs: reduced accessibility of CollectionChanged method
1823 * DataColumnPropertyDescriptor.cs: made class internal
1824 * DataColumn.cs: removed extra TypeConvertorAttribute
1825 * ConstrainCollection.cs: marked PostEndInit method internal
1827 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
1830 In WriteXmlSchema(), when complex type contains simple type content
1831 attributes must not added to XmlSchemaComplexType directly. It
1832 causes schema compilation error.
1833 DataRelation should not be output when related columns are hidden.
1835 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
1837 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
1838 also expected to do ReadXml(), but I will remove that feature and
1839 support column reordering).
1840 * XmlSchemaDataImporter.cs : Always initialize dataset name.
1841 Always set Nested and primary key for parent table.
1842 * XmlDataReader.cs : Now it is used.
1843 Top level element might not match to dataset name nor any table
1844 name, but still possible to read content tables.
1845 Handle empty element correctly in some places.
1846 Handle Fragment mode (read up XmlReader to the end).
1847 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
1848 XmlDataInferenceLoader and XmlDataReader.
1850 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
1853 Eliminated CRLF injection.
1854 More clear message in Clear().
1855 Updates reflecting XmlSchemaDataImporter change.
1856 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
1857 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
1858 but that depends on different behavior from ms.net).
1859 Set locale also for DataTable.
1860 Add xs:element only when target namespace matches to the
1861 element's namespace. Otherwise, add xs:import for external namespace.
1862 Put xs:sequence for dataset element's particle _only when_ actual
1865 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
1867 * XmlDataReader.cs : Added. This class will work better when our
1868 schema inference and schema read engine gets improved. (It contains
1869 standalone testable Driver class.)
1871 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
1873 * ForeignKeyConstraint.cs : Check step change. Existence then column
1874 validity. just for tests.
1875 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
1878 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1880 * DataSet.cs : Ignore empty content only when output type is diffgram.
1882 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1884 * CustomDataClassGenerator.cs : Modified that DataSet contains each
1885 DataTable field so that each table property can access them directly.
1886 (plus, modified standalone code driver code: shouldn't affect)
1888 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
1890 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
1892 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1894 * XmlSchemaDataImporter.cs :
1895 SimpleContent column support.
1896 Annotated relation support.
1897 Top-level element is counted only when its type is complex.
1898 xs:anyType is no longer treated as complex type.
1899 dataset existence is mandatory now.
1900 Improved DataType and DefaultValue support.
1901 Attribute namespace is properly handled now.
1902 Prohibited attribute is now treated as hidden column.
1903 Reject list or union simple type.
1905 Still incomplete 1) to read relationship in some cases, 2) to
1906 determine whether an element is dataset or table, 3) thus to
1907 exclude extraneous column, 4) to remove extraneous *_Id column.
1909 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1912 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
1913 serialization .ctor() (thus schema read/inference should be easier).
1914 DataRowSorter should consider Table's Locale.
1916 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1918 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
1919 use it instead of duplicating logic.
1921 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1923 * ConstraintCollection.cs :
1924 Use Table.CaseSensitive and Table.Locale to compare strings.
1925 Duplicate constraint name exception does not occur under .NET 1.1.
1927 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
1929 * XmlSchemaDataImporter.cs: Added little type check.
1931 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
1933 * DataSet.cs: Implemented support for runtime serialization. Fixed support
1934 for xml serialization.
1935 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
1937 2004-04-30 Umadevi S <sumadevi@novell.com>
1938 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
1939 * DataTableCollection.cs : Tested and removed TODO
1940 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
1942 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
1944 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
1946 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1948 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
1949 constraint is defined on single column.
1951 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
1953 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
1954 not ArgumentException (maybe changed after 1.1).
1956 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
1958 * DataRow.cs : When Column was added and it was AutoIncrement column,
1959 it extended the item object array incorrectly.
1960 (Plus tiny comment and incorrect indentation fix.)
1962 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1964 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
1966 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1968 * DataRow.cs : Bug fix in CopyValuesToRow().
1970 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
1972 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
1973 each of the columns should not be unique, but only all the constraint's columns together.
1975 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
1978 - Added using of list of autoIncrement columns
1979 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
1980 - Fix in CheckNullConstraints
1981 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
1982 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
1983 - Added onColumnRemoved() method to threat column removal accurately.
1985 * DataRowCollection.cs :
1986 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
1987 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
1990 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
1992 * DataColumnCollection.cs :
1993 - Perfomance fixes :
1994 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
1995 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
1996 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
1999 - Uses autoincrement list of a table
2001 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2003 * XmlDataLoader.cs : Even when it should ignore schema, it was
2005 * XmlSchemaDataImporter.cs : DataRelation creation support.
2006 Improved "DataSet" element handing. When attributes are on the
2007 element, it is not a "DataSet" element.
2008 Fixed parent key column name.
2009 Unique name creation is not required. Just raise an error.
2010 Fill facet also for attribute types.
2012 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2014 * DataRow.cs : Null check for CheckReadOnlyStatus() and
2015 CheckNullConstraints(), with some coding guideline fixes.
2016 Type check should be done by Type instance comparison.
2018 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2020 * DataColumnCollection.cs : When add a column to the collection, fill
2021 auto-increment column.
2023 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
2025 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
2027 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
2029 * CustomDataClassGenerator.cs : Added.
2030 * TypedDataSetGenerator.cs : Implemented Generate().
2031 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
2032 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
2034 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
2036 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
2038 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
2040 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
2042 2004-04-23 Umadevi S (sumadevi@novell.com)
2043 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
2044 - Added error handling to the above methods
2046 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
2048 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
2049 the support is incomplete yet).
2050 * XmlDataLoader.cs :
2051 Reverted ReadModeSchema() argument change. XmlReadMode would be
2052 useful to handle IgnoreSchema.
2053 Don't overwrite DataSetName when mode is not such kind.
2054 Set Prefix and Namespace as well as DataSetName.
2055 AllowDBNull looks set false by default for element column.
2056 Set unique constraint as primary key when infering the table schema.
2058 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
2061 Never set null string for Prefix and Namespace.
2062 In InferXmlSchema() when null XmlReader is passed, just do nothing.
2063 In WriteXmlSchema(string), earlier try block.
2064 In BuildSchema(), try to add serialization namespaces for each
2065 namespaces in DataSet/DataTable/DataColumn.
2066 Removed namespace argument from WriteColumnAsElement() and don't
2067 overwrite when namespace is "". This fixes bug #57330.
2068 * DataColumn.cs : For Namespace and Prefix, never set null.
2070 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2072 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
2073 before creating and adding foreign key constraint and relation.
2075 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2077 * MergeManager.cs : In AdjustSchema() source table clone should be added
2078 and not the table itself.
2080 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2083 - CaseSensitive : Additional fix (removed unnesessary assignment).
2084 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
2086 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2088 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
2090 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
2093 - EndLoadData() : perfomance fix in case of null constraint violation
2094 during data load (also in DataRow.cs).
2095 - CaseSensitive : If DataTable belongs to DataSet it should always use
2096 DataSet.CaseSensitive untill explicitly changed.
2097 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
2100 - Pefromance fix in case of null constraint violation
2101 during data load (also in DataTable.cs).
2102 - CollectionChanged() : use correct column number after new DataColumn was added
2103 (differs in case some DataColumn was previosly removed).
2104 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
2106 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
2108 * DataColumnCollection.cs : Since unique constraint is added now
2109 in DataColumn.SetTable() the additional creation of constraint in
2110 DataColumnCollection.Add() is redundant and causes exception - fixed.
2112 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
2114 * XmlDataLoader.cs : Added "never add data rows" mode.
2115 Removed unused code. However, it is temporary fixes to unify
2116 ReadXml() and InferXmlSchema().
2117 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
2119 I'll create another XmlDataLoader since there are many problems
2120 such that 1) it is too waste to read the entire xml into an
2121 XmlDocument, 2) it does not handle attributes correctly, and 3) it
2122 must handle "ignored namespaces".
2124 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
2126 * Added XmlSchemaDataImporter.cs (new schema reader).
2127 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
2128 for ReadXmlSchema().
2129 Let schema reading work to ReadXmlSchema().
2130 Don't return ReadSchema when argument read mode was DiffGram.
2132 2004-04-15 Umadevi S (sumadevi@novell.com)
2133 * Updated Clone/Copy methods in DataSet along with Testcase
2134 * ForeignKeyConstraint.cs - special ctor implemented
2135 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).
2136 * Changes in ConstraintCollection.cs for the above
2137 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.
2140 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
2142 * XmlSchemaMapper.cs : set parent key and foreign key info to
2143 DataRelation when reading refkey constraints.
2144 Supply constraint name for fkey.
2146 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
2148 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
2149 mode is Auto, just ignore the schema if there is already schema info.
2150 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
2152 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
2155 - In MS output, XML declaration looks to have standalone decl (yes).
2156 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
2157 - ReadXml(reader, mode)
2158 1) return originally specified mode, instead of (always) Auto.
2159 2) Check empty reader.
2160 3) Check diffgram schema and content separately.
2161 4) When diffgram exists, remaining (the same-level) contents
2163 5) Similar fact should be applied, but somewhat different.
2164 InferSchema and IgnoreSchema just skips, Fragment reads both
2165 schema and content, others just reads schema.
2166 - Removed unused code.
2167 * XmlDataLoader.cs :
2168 - Read() should skip in some ReadMode.
2169 - Don't compare schema element name as case-insensitive (well,
2170 should schemas be checked here?)
2171 - Avoided BuildDocument() not to create confusing DataSet
2173 - Don't add any tables when reader has single element.
2174 * XmlDiffLoader.cs :
2175 When target table was not found, MS.NET doesn't raise an error.
2176 * XmlSchemaMapper.cs :
2177 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
2179 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
2182 - InferXmlSchema(): Throw explicit NotImplementedException now.
2183 - Don't put XML declaration everywhere. Write just for filename arg.
2184 - xmlns="" should not be written. Maybe WebService problem is
2185 because default namespace is overwritten. This patch will keep
2186 the WS problem away and actually fixes some unit tests (i.e. use
2187 explicit String.Empty for null namespace in WriteStartElement()).
2188 - MoveToContent() should always be called, not only when
2189 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
2190 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
2191 element. As to MSDN, diffgram does not contain schema.
2193 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2195 * DataTable.cs: made _initStatus private so that System.Data is CLS
2198 2004-04-13 Umadevi S <sumadevi@novell.com>
2199 * UniqueConstraint.cs:
2200 * ConstraintCollection.cs:
2202 - Implemented a Constructor for UniqueConstraint.cs
2203 - Used EndInit on DataTable to call a delegate which adds the
2204 constraints passed to the most recent call of AddRange().Used
2205 AddRange() on ConstraintCollection to check whether
2206 DataTable.BeginInit has occurred. If yes, save the argument
2207 constraint collection passed, then return. If no, Check whether the
2208 constraints are of type UniqueConstraint and initialized with the
2209 special constructor If yes Initialized the table property of this
2210 UniqueConstraint object with table assosciated with the current
2211 instance of ConstraintCollection class.
2213 2004-04-07 Marek Safar <marek.safar@seznam.cz>
2215 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
2217 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2220 * DataColumnCollection.cs:
2221 * DataRelationCollection.cs:
2222 * DataRowCollection.cs:
2223 * DataTableCollection.cs:
2224 * InternalDataCollectionBase.cs:
2225 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
2228 2004-04-05 Jackson Harper <jackson@ximian.com>
2230 * DataTable.cs: Add rows to the row list if there is no filter.
2232 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
2234 * DataColumn.cs : Setting Caption to null sets it to the empty string
2235 (ms.net behaviour, testcase is in DataColumnTest).
2237 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
2240 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
2242 * DataColumn.cs: In Expression setter, set the expression member even if
2243 it is an empty string.
2244 * DataSet.cs: Support serialization of byte[] columns.
2245 * XmlDataLoader.cs: Support deserialization of Guid columns.
2246 Set MappingType.Attribute to columns infered from attributes.
2248 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
2250 * ExpressionElements.cs : remove
2251 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
2252 Integration of new Mono.Data.SqlExpressions classes used in
2253 DataTable.{Select, Compute}.
2254 Fixes bug #55503 and lots of failures in DataTableTest.cs.
2256 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
2258 * Index.cs: Simple fix in ComparePartialRowNonUnique.
2259 This fixes bugs #56129 and #56014.
2261 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
2263 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
2264 stream after writing the dataset. This fixes bug #52581.
2265 Also added several writer.Close into finally blocks, so writers are properly
2266 closed in case of an exception.
2268 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2270 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
2271 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
2272 * ColumnTypeConverter.cs: Added stub
2273 * DefaultValueTypeConverter: Added stub
2274 * ConstraintConverter.cs: Added stub
2276 2004-03-04 Eran Domb <erand@mainsoft.com>
2278 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
2279 in MS.NET documentation (missing DataSet element etc).
2281 2004-03-04 Eran Domb <erand@mainsoft.com>
2284 * Index.cs : Rollback last changes.
2286 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
2288 * Index.cs : justa build fix.
2290 2004-03-03 Eran Domb <erand@mainsoft.com>
2293 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
2294 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
2295 This changes made for performance improvement.
2297 2004-02-08 Eran Domb <erand@mainsoft.com>
2299 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
2301 2004-02-08 Eran Domb <erand@mainsoft.com>
2303 * DataSet.cs: Fix some bugs in ReadXml().
2305 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
2307 * DataSet.cs: Added missing method that broke the build.
2309 2004-02-04 Eran Domb <erand@mainsoft.com>
2311 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
2313 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
2314 when all column are attributes (elements count is 0), we still want to add the relations. No relations
2315 can be on simple contents.
2316 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
2317 (AddForeignKeys) Check that the relation has constraints attach to it.
2318 * XmlConstants.cs : Added constant.
2320 2004-02-04 Eran Domb <erand@mainsoft.com>
2322 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
2323 DoWriteXmlSchema calls BuildSchema ().
2325 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
2327 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
2329 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
2331 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
2332 also be added to the dataset.
2333 In WriteTable(), do not write unchanged rows when writing the original
2334 version of the table.
2335 Added WriteIndividualTableContent(), for writing the contents of a single
2337 Changed BuildSchema and related methods, so it can generate a schema for
2338 any set of tables, not just the tables of the dataset (needed for
2339 single datatable serialization).
2340 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
2341 Also implemented some ReadXmlSchema methods.
2342 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
2343 instead of loading the full dataset in an XmlDocument. It is faster and
2344 saves memory. Also fixed several problems when generating the changes.
2345 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
2346 table serialization).
2348 2004-02-02 Eran Domb <erand@mainsoft.com>
2350 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
2351 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
2352 * DataTable.cs (NewRow): Create only one DataRowBuilder.
2353 Initiate new row with row id -1.
2354 * DataRow.cs : Add RowId property.
2355 * DataRowBuilder.cs : Add _rowId member.
2356 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
2358 2004-01-26 Eran Domb <erand@mainsoft.com>
2360 * XmlConstants.cs : Added some constants.
2361 * DataColumn.cs : Added a method to retrive AutoIncrement value.
2362 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
2363 parent table column.
2364 * XmlDiffLoader.cs : Convert the value comming from the xml.
2365 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
2366 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
2367 (ReadXmlSchemaElement) : Set the locale of the dataset.
2368 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
2369 (GetColumnType) : New method to get the column type from the attribute value.
2370 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
2371 and add the constraint to the table.
2372 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
2374 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
2375 Writing more information to the schema for interoperability with ms.net.
2376 Improve diffgarm writing mode.
2379 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
2381 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
2383 2004-01-21 Eran Domb <erand@mainsoft.com>
2385 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
2386 Do not set the child column to be AutoIncrement.
2387 Create the new column for the relation as MappingType.Hidden so they will not be serialized
2388 when writing the dataset to xml.
2390 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
2392 * Added missing TypedDataSetGenerator.cs.
2394 2004-01-08 Eran Domb <erand@mainsoft.com>
2396 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
2397 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
2398 InferSchema, ReadSchema and IgnoreSchema.
2399 * XmlDataLoader.cs : All modes use the same logic.
2400 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
2402 2004-01-06 Eran Domb <erand@mainsoft.com>
2404 * DataRelationCollection.cs : Use IndexOf in indexer.
2405 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
2406 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
2407 * XmlDiffLoader.cs : Reading nested tables.
2408 * XmlSchemaMapper.cs : Reading the relation.
2409 * XmlConstants.cs : Adding some constants.
2411 2004-01-05 Jackson Harper <jackson@ximian.com>
2413 * DataView.cs: Set readonly property of property descriptor. This
2416 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
2418 * DataRelationCollection.cs : Fixed incorrect generation of default
2420 * DataSet.cs : Added missing functionality in WriteXml().
2421 * XmlConstants.cs : Added new constants.
2423 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
2425 * DataSet.cs : Fixed incorrect WriteXml() signature.
2427 2003-12-18 Jackson Harper <jackson@ximian.com>
2429 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
2431 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
2433 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
2434 they take shape of xml. This fixed bug #52240
2436 2003-12-16 Tim Coleman <tim@timcoleman.com>
2437 * KeyRestrictionBehavior.cs:
2438 New stubs added for .NET 1.2
2442 2003-12-08 Eran Domb <erand@mainsoft.com>
2443 * DataColumn.cs (Expression) : Validate the expression.
2445 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
2446 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
2448 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
2449 (RejectChanges) : Detach row when state was Added.
2450 (CollectionChanged) : Fix a bug.
2452 * ExpressionElement (ValidateExpression) : Fix a bug.
2454 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
2455 a parent row in the parent table.
2456 (_validateColumns) : Fix bugs.
2458 * MergeManager.cs (AdjustSchema) : Fix a bug.
2460 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
2463 2003-11-30 Eran Domb <erand@mainsoft.com>
2464 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
2465 (Add) : Find if the new column name is the same as the one found in IndexOf.
2466 (IndexOf) : New method.
2467 (Contains) : Use new IndexOf.
2468 (IndexOf) : Use new IndexOf.
2470 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
2471 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
2473 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
2474 (Delete) : Detach row if the RowState was Added.
2475 (GetChildRows) : Get the array form the ChildTable.
2476 (GetParentRows) : Get the array from the ParenTable.
2478 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
2480 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
2482 * DataTable.cs (PrimaryKey) : Fix bugs.
2483 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
2485 * DataTableCollection.cs (Add) : Fix a bug.
2487 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
2488 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
2489 Some code style changes (tab instead of whit spaces, alignment, etc...).
2491 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
2493 * MergeManager.cs (AdjustSchema) : Fix a bug.
2497 2003-11-26 Miguel de Icaza <miguel@ximian.com>
2499 * DataSet.cs: Add a few more missing methods, code style updated
2502 2003-11-26 Tim Coleman <tim@timcoleman.com>
2504 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
2505 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
2506 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
2507 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
2508 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
2509 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
2510 * StatementCompletedEventHandler.cs UpdateOptions.cs:
2511 New classes added for NET_2_0
2512 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
2513 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
2514 Modifications to add new NET_2_0 functions
2516 2003-11-25 Tim Coleman <tim@timcoleman.com>
2520 2003-11-21 Pedro Martínez Juliá <yoros@wanadoo.es>
2522 * DataRow.cs: Detached row can be accesible (new rows from data
2523 table are detached). Closes but #51263.
2525 2003-11-19 Eran Domb <erand@mainsoft.com>
2526 * DataRow.cs : Throw exceptions if Row is Detached.
2527 (EndEdit) : Check that we are not in middle of ChangeEvent.
2528 (AcceptChanges) : Detach the row.
2530 * DataRelation.cs : throw correct exception.
2531 *UniqueConstraint.cs : throw correct exception.
2534 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
2536 * DataRow.cs: Use RemoveInternal instead of Remove because the last
2537 one uses Delete and AcceptChanges.
2539 * DataRowCollection.cs: When removing, Delete and AcceptChanges
2540 method from the row are called. Added an internal method that will
2541 be used by DataRow to "physically" remove the row from the list.
2543 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
2545 * DataRowCollection.cs: To follow the specification: Remove and
2546 RemoveAt should remove the row. But needed to call DeletingDataRow
2547 to prepare the deleting.
2549 * DataRow.cs: Don't call DeletingDataRow when it is called by the
2550 method Table.Rows.Remove.
2552 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
2554 * DataRowCollection.cs: Make the row be deleted by itself. If not,
2555 it fails because we need to call OnRowDeleting and OnRowDeleted. It
2556 is full implemented inside DataRow.
2558 2003-11-05 Eran Domb <erand@mainsoft.com>
2559 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
2561 2003-11-04 Eran Domb <erand@mainsoft.com>
2562 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
2564 (GetChildRows) : Adding some checks.
2565 (GetParentRows) : Adding some checks. Fix a bug in implementation.
2566 (SetParentRow) : Added implementation.
2568 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
2569 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
2570 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
2571 * MergeManager.cs : Check that the target table is not null.
2573 2003-10-27 Eran Domb <erand@mainsoft.com>
2574 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
2575 can be converted to the column type.
2577 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
2579 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
2580 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
2582 * DataRowCollection.cs (Add) : Fixing a bug.
2583 (Clear) : Before clearing the array check that there is no violation of FK constraint.
2585 * DataSet.cs (Prefix) : If value is null chage it to empty string.
2586 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
2588 * ExpressionElement : Adding support for IN expresion.
2590 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
2591 (Select) : Adding support for DataViewwRowState.
2593 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
2595 * MergeManager.cs (MergeRow) : Fix bugs.
2597 2003-10-27 Eran Domb <erand@mainsoft.com>
2598 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
2599 check null values when ending loading data.
2601 * DataSet.cs (RejectChanges) : Imlementation.
2602 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
2603 change it to empty string.
2605 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
2607 2003-10-22 Eran Domb <erand@mainsoft.com>
2608 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
2610 * ConstraintCollection.cs (RamoveAt): Change implemntation.
2612 * DataTableCollection (CanRemove): Removing cast to Constraint.
2614 2003-10-22 Eran Domb <erand@mainsoft.com>
2615 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
2616 (Clear): The collection was cleared without removing the relation from the parent and child tables.
2618 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
2619 (HasChanges, Reset): Imlementation.
2621 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
2622 This is because the we do not no when to turn off the flag.
2623 (Locale): Changing implementation to behave like ADO.NET.
2624 (AcceptChanges): Fix bug.
2625 (Clear): Check that this table is not referenced from a foreign key constraint.
2626 (Copy): Do not try to access a deleted row.
2627 (CopyProperties): Copy the PrimaryKey.
2628 (GetChanges, ImportRow): Implementation.
2629 (LoadDataRow): Adding implementation if the table has PrimaryKey.
2630 (ToString): Changing implementation to behave like ADO.NET.
2632 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
2634 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
2635 (HasErrors): Implementation.
2636 (Delete): Added checking for child rows of the deleted row.
2637 (EndEdit): Added checking for child row and firing events.
2638 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
2639 (GetColumnsInError): Added a check for null values in column error.
2640 (HasVersion): Added special treatment for special RowState.
2641 (CollectionChanged): More checks to avoid NullReferenceException.
2643 * DataRowCollection.cs (Remove): Fix a bug.
2646 2003-10-01 Duncan Mak <duncan@ximian.com>
2648 More patches from Eran Domb <erand@mainsoft.com>.
2650 * MergeManager.cs: New file.
2652 * DataRelationCollection.cs (AddCore): Check that a
2653 UniqueConstraint is already exists. It loops over the Relations
2654 instead of the Constraints.
2655 (Add, AddCore): The relation was added twice.
2657 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
2659 2003-09-30 Duncan Mak <duncan@ximian.com>
2661 Patches from Eran Domb <erand@mainsoft.com>.
2663 * DataRelation.cs (constructor): When the name of the relation is
2664 null, it should return an empty, not "Relation".
2666 * DataRow.cs (AcceptChanges): Added special case for
2668 (CancelEdit): Set editing flag to false.
2669 (IsNull): Check that the value is DBNull.
2671 * DataRowCollection.cs (Add): There was no check that the table of
2672 the collection is owned by a DataSet.
2674 * DataSet.cs (OnMergeFailed): Added.
2676 * UniqueConstraint.cs (AssertConstraint): There was no check that
2677 values in the row are not null, where it is a primary key
2678 column. Also check that the row has a proposed version, if not,
2679 get the current version when we compare the rows.
2681 2003-09-25 Duncan Mak <duncan@ximian.com>
2683 Patches from Eran Domb <erand@mainsoft.com>.
2685 * DataColumn.cs (Unique): Implemented.
2688 * ConstraintCollection.cs:
2689 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
2690 an Exception thrown. Details:
2691 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
2693 * DataRowCollection.cs (Add): There is no checking that there is
2694 no violation of the unique constrains.
2696 * UniqueConstraint.cs (AssertConstraint): There is no checking on
2697 all columns in the constraint.
2699 * DataTableCollection (Add): Correctly throw an Exception, more
2701 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
2702 (Remove, RemoveAt): Implemented.
2704 2003-07-31 Duncan Mak <duncan@ximian.com>
2706 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
2708 2003-07-25 Ravi Pratap <ravi@ximian.com>
2710 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
2711 method on a delegate is disallowed - fix this.
2713 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
2715 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
2716 xml serialization. Modified method of writing schema. Now it creates
2717 a XmlSchema object and serializes it using XmlSerializer.
2718 * XmlConstants.cs: Added constants for data type names.
2719 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
2720 type specified in the column.
2722 2003-04-20 Alan Tam <Tam@SiuLung.com>
2724 * DataRelationCollection.cs: Fix a bug that prevent relations
2725 from being added via DataSet.
2727 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
2729 * UniqueConstraint.cs: one tiny fix.
2731 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
2733 * DataTable.cs: Remove UniqueConstraints when adding new ones
2735 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
2737 * DataColumnCollection.cs: Little 'case sensitive' fix
2739 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
2741 * DataRow.cs: AutoIncrement handling to Constructor
2742 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
2744 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2746 * DataTable.cs: Some fixes to PrimaryKey etc...
2747 * UniqueConstraint.cs: Little clean up
2749 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2751 * DataTable.cs: Tiny fix to ToString () -method
2753 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2755 * ConstraintCollection.cs: Little fix.
2756 * DataColumn.cs: Added new internal method SetUnique()
2757 * UniqueConstraint.cs: some little fixes
2759 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
2761 * DataRowCollection.cs: Bugfixes, implementation,...
2763 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
2765 * DataColumn.cs: If DataType if set to something else than short, int
2766 or long and AutoIncrement is true, AutoIncrement is must set to false.
2768 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2771 (BeginEdit): fixed array bound problem when a column has been added.
2772 (EndEdit): just assign proposed to current as proposed is set to null.
2773 This also fixes another array boudn problem.
2775 2003-03-21 Alan Tam <Tam@SiuLung.com>
2777 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
2778 EndEdit and AcceptChanges to act correctly according to DataRowState
2780 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
2781 attached and detached from the collection.
2783 2003-03-20 Alan Tam <Tam@SiuLung.com>
2785 * DataColumn.cs: Store empty string for Expression when null is passed in.
2786 Classes generated by XSD.exe passes null by default.
2788 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
2790 * DataColumnCollection.cs: Tiny clean up
2792 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
2794 * DataColumn.cs: little fixes.
2795 * DataColumnCollection.cs: Lots of little fixes and improvments.
2797 2003-03-12 Alan Tam <Tam@SiuLung.com>
2799 * DataSet.cs: Fixed a bug that the file written does not close correctly.
2801 2003-03-08 Alan Tam <Tam@SiuLung.com>
2803 * DataRelationCollection.cs: Removed the mis-overridden methods
2804 * DataRow.cs: Fixed an attribute
2805 * DataSet.cs: Fixed the modifiers
2807 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
2809 * DataTableCollection.cs: The Contains (string name),
2810 IndexOf (string name) methods, and item[string name] indexer
2811 now behave more like .NET with respect to case-sensitivity.
2812 That is if there is an exactly matching item then this one is used.
2813 If there is only one item differing in case then it used.
2814 If there are more than one item differing in case then
2815 Contains returns false, IndexOf returns -1, and item[]
2816 throws an ArgumentException.
2818 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
2820 * ExpressionElement.cs: More implementation.
2822 2003-02-28 Alan Tam <Tam@SiuLung.com>
2823 * DataSet.cs: Changed WriteTable so that it now calls the newly written
2824 WriteObjectXml to direct the call to the respective XmlConvert method.
2825 This fixes the wrong format written to XML files of bool, float,
2826 double, DateTime and TimeSpan types.
2828 2003-02-25 Alan Tam <Tam@SiuLung.com>
2830 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
2831 * DataRelationCollection.cs: Implemented AddRange and Contains.
2832 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
2833 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
2834 Reimplemented most Add methods to eliminate duplicated checks.
2835 Centralized RelationName generation procedure in GetNextDefaultRelationName.
2837 2003-02-25 Alan Tam <Tam@SiuLung.com>
2839 * DataColumn.cs: Fixed wrong storage representation of Expression
2840 (using empty string instead of null) so that ToString() returns nothing.
2841 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
2842 auto column naming now works as expected. Reimplemented some Add methods
2843 to eliminate code duplication.
2845 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
2847 * DataTable.cs: DataTable.CaseSensitive follows parent
2848 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
2849 been changed directly from DataTable
2851 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
2853 * DataSet.cs: When CaseSensitive property is changed all of the Tables
2854 of DataSet have to change too
2856 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
2858 * InternalDataCollectionBase.cs: revert change to field
2861 * DataViewManager.cs
2864 * DataSet.cs: commented use of DesignerAttribute
2865 because it broke the build. According to MSDN,
2866 DesignerAttribute does not have a zero-argument constructor
2868 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
2870 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
2872 2003-02-18 Alan Tam <Tam@SiuLung.com>
2874 * DataRow.cs: Implemented GetParentRow and GetParentRows.
2875 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
2876 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
2877 RaisePropertyChanging.
2878 * DataTable.cs: Implemented NewRowArray.
2879 * DataTablePropertyDescriptor: Fixed a modifier.
2880 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
2881 * PropertyCollection.cs: Minor fix.
2882 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
2883 * DataRelation.cs DataRelationCollection.cs DataRow.cs
2884 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
2885 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
2886 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
2887 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
2888 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
2890 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
2892 * ExpressionElement.cs: More implementation
2894 2003-02-05 Alan Tam <Tam@SiuLung.com>
2896 * DataSet.cs: Added framework for DataSet.Update Implemented missing
2897 methods GetSchemaSerializable, GetSerializationData,
2898 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
2900 * DataTable.cs: Implemented missing methods CreateInstance and
2901 GetRowType for DataTable
2903 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
2905 * DataSet.cs: Implemented private method MapType for
2906 mapping datatypes for XmlSchema
2908 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2910 * DataView.cs: implemented Dispose.
2912 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
2914 * ExpressionElement.cs: Added new file. This file is for parsing
2915 and DataData.Select () -methods and DataColumn.Expression -property
2916 * DataTable.cs: Implemented Select(string) -method
2918 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
2920 * DataSet.cs: One little fix to writing xml
2922 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
2924 * XmlSchemaMapper.cs: Some fixes.
2925 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
2928 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
2930 * UniqueConstraint.cs: Do not set columns Unique property true
2932 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
2934 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
2936 * DataTableCollection.cs: Now names new DataTable if it doesn't
2937 already have a name.
2939 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
2941 * XmlSchemaMapper.cs: Improvments.
2942 * XmlConstaints.cs: Added more constants.
2943 * DataSet.cs: Improvments of reading and writing xml
2944 * DataColumn.cs: Added default values of properties.
2946 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
2948 * XmlSchemaMapper.cs: Some improvments
2950 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
2952 * DataRowCollection.cs: Added IndexOutOfRangeException
2953 * DataTableCollection.cs: Added OnCollectionChanging and
2954 OnCollectionChanged events.
2955 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
2956 * DataTable.cs: Implemented Copy () and Clone () methods.
2957 * XmlDataLoader.cs: some fixes.
2958 * XmlSchemaMapper.cs: comments.
2960 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2962 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
2964 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2966 * DataColumnPropertyDescriptor.cs: fixed typo.
2967 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
2968 to get the DataViewManager and removed TablePD class.
2969 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
2970 suggested by danmorg.
2972 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
2974 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
2976 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
2977 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
2979 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2981 * DataView.cs: made dataViewManager internal.
2982 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
2983 properties of the object, but the values of the columns present in a
2986 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
2987 which returns a PropertyDescriptorCollection. Created a new class
2988 derived from PropertyDescriptor that treats Table as an object whose
2989 properties are DataRowView.
2991 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
2993 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
2995 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
2997 * DataColumn.cs: ExtendedProperties is by default !null-
2999 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3001 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
3002 set column's ordinal.
3004 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
3007 * XmlDataLoader.cs: XmlReader closing fixes.
3008 * XmlSchemaReader.cs: Added support for ref=
3010 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
3013 - Added XmlReader and XmlWriter Closing.
3014 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
3015 * XmlSchemaMapper.cs
3016 - Much better way IMHO to map xmlschema than the old one in
3017 DataSet.cs. Its, more flexible, cleaner, ...
3019 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
3021 * XmlDataLoader.cs: Reading diffgrams.
3023 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
3025 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
3026 * DataTable.cs: Added ChanginDataColumn () for triggering
3027 DataColumnChanging event
3029 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3031 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
3033 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3035 * DataSet.cs: Indentations to WriteXml ()
3037 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
3040 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
3041 class XmlDataLoader.cs
3043 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
3045 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
3047 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
3049 * DataSet.cs: Started to implement ReadXml-methods.
3051 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3053 * DataSet.cs: implemented DefaultViewManager and GetList.
3055 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
3056 DataList in System.Web.
3058 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
3061 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
3064 * DataTable.cs: Fixed NullException (rollback -event)
3065 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
3067 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
3070 * DataRowCollection.cs: Moved event triggering from DataRow to
3073 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
3075 * DataSet.cs: Little fix to WriteTable () -method
3076 and DoReadXmlSchema () -method.
3078 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
3080 * DataSet.cs: Clean up to reading xmlschema. This looks much better
3081 now (work better too), but it not working correctly yet.
3083 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
3086 * DataRowCollection.cs: Added some event handlins stuff.
3087 * DataSet.cs: Some fixes.
3088 * DataTable.cs: Added event handlers.
3090 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
3092 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
3094 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
3096 * System.Data/DataRow.cs: Added internal property XmlDataID
3098 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
3100 * DataSystem.Data.DataTableCollection.cs:
3101 Removed HashTable. There could be situations where DataTable
3102 is added to collection before it hava TableName. So using
3103 HashTable is impossible.
3105 2002-11-19 Carlos Guzmán Álvarez <carlosga@telefonica.net>
3107 * DataRow.cs: an object that is equal to null
3108 should be allowed to be set in this indexer too
3111 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
3113 * DataColumnPropertyDescriptor.cs: added file
3115 * System.Data/DataRowView.cs: started implementation
3117 * DataTable.cs: stubbed more interfaces. Implemented
3118 IListSource.GetList()
3120 * DataView.cs: stubbed more interfaces. Implemented
3121 some properties and methods: GetEnumerator(),
3122 ITypedList.GetItemProperties, Item indexer, CopyTo()
3124 2002-05-18 Nick Drochak <ndrochak@gol.com>
3126 * DataRow.cs: Fix typo.