1 2006-11-15 Nagappan A <anagappan@novell.com>
3 * DataTable.cs (RemotingFormat): Set the default value attribute
4 as SerializationFormat.Xml.
5 (OnTableNewRow, NewRowAdded): Implemented new function to raise an
6 event when a new row is added to the table.
7 (DataTableInitialized, OnTableInitialized): Implemented new
8 function to raise an event when a table is initialized.
9 (IsInitialized): Implemented public function to check whether a
10 table is initialized or not.
11 (OnTableClearing): Raise an event before the table is cleared.
12 (GetObjectData): Modified to public for .NET 2.0 implementation.
13 (Load): Implemented missing API to call the registered delegate
14 function on load exception.
15 (WriteXmlSchema): Implemented overloaded function to write the
16 hierarchy with XML Schema.
18 2006-11-15 Konstantin Triger <kostat@mainsoft.com>
20 * DataTable.cs: Fixed LoadDataRow scenarios.
21 * DataRowCollection.cs: Added override for AddInternal taking DataRowAction parameter.
23 2006-11-14 Konstantin Triger <kostat@mainsoft.com>
25 * DataColumn.cs: consider row version wen checking row.IsNull().
27 2006-10-18 Nagappan A <anagappan@novell.com>
29 * ForeignKeyConstraint.cs (_validateColumns): Parent and child
30 columns can't be the same column - Exception, bug # 79689
32 2006-10-13 Nagappan A <anagappan@novell.com>
34 * DataTable.cs (DeserializeConstraints): Fine tuned the
35 serialization and deserialization of constraints.
37 * DataRelationCollection.cs (Contains): Fixes bug
38 #79233. DuplicateNameException when two relations for different
39 DataTables in DataSet are defined
41 2006-10-06 Patrick Earl <mono@patearl.net>
43 * DataTable.cs, XmlTableWriter.cs, XmlSchemaWriter.cs, DataSet.cs:
44 Implemented DataTable.WriteXml
46 2006-09-26 Nagappan A <anagappan@novell.com>
48 * DataTable.cs, DataSet.cs, DataColumn.cs, Constraint.cs,
49 DataRow.cs: Implementation of Binary Serialization /
52 * DataTable.cs (RowsExist): Check rows based on version.
54 * DataRow.cs: Raise exception same as MS.NET. Thanks to
55 Hubert FONGARNAND <informatique.internet@fiducial.fr> for
58 2006-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
60 * DataSet.cs: added 2.0 stubs to solve typed dataset porting issues
62 2006-08-30 Nagappan A <anagappan@novell.com>
64 * DataRow.cs (EndEdit): DataRow.EndEdit emits RowChanged too
65 often. Fixes bug # 78885.
67 2006-08-14 Konstantin Triger <kostat@mainsoft.com>
69 * DataTableCollection.cs, DataRelationCollection.cs, DataRowCollection.cs,
70 DataColumnCollection.cs: implemented specialized CopyTo() method.
72 2006-07-26 Nagappan A <anagappan@novell.com>
74 * DataTable.cs (GetIndex): Fixes memory explode on
75 DataTable.Select - Bug # 77691.
77 2006-07-25 Nagappan A <anagappan@novell.com>
79 * DataView.cs (OnRowCollectionChanged): On DataTable.Clear,
80 setting rowCache to empty DataRowView. Fixes bug # 78610.
82 * DataTable.cs (AcceptChanges): Raises Reset event. Fixes bug #
85 2006-07-20 Senganal T <tsenganal@novell.com>
88 - Merge : moved the columntypecheck to AdjustSchema,
89 Remove the unncessary calls to Table.ResetIndexes.
90 - AdjustSchema : check for columntypes
91 Thanks to Deepak Kr Valechha for the patch
93 2006-07-17 Senganal T <tsenganal@novell.com>
96 - ToTable : Implemented all the overloads
97 - Equals : Implemented
98 - IBindingListView : Implemented the interface
100 2006-07-15 Senganal T <tsenganal@novell.com>
102 * DataTableCollection.cs :
103 - Contain,IndexOf,Remove,Add,Indexer : support for table
104 namespace. Remove redundant checks in Remove/Add.
106 2006-07-14 Senganal T <tsenganal@novell.com>
109 - SetOrdinal : Implemented
110 - Ordinal : added internal set
111 * DataColumnCollection.cs :
112 - Add : Set the column ordinals
113 - MoveColumn : Changes the position of column in the
116 2006-07-14 Senganal T <tsenganal@novell.com>
119 - Merge - Implement the merge methods
120 - Clone - Ensure column's DateTimeMode property is also copied
122 - DateTimeMode : Implemement
123 - DataTypeMatches : Added. In 2.0 profile, test DateTime
124 property when verifying column types.
126 - ctr : For DateTime columns, check DateTimeMode property
127 * ForeignKeyConstraint.cs :
128 - _validateColumns : For DateTime columns, check DateTimeMode
131 - Merge : Added. Overload to merge two tables
132 - ResolveColumns : Change the method to use a table instead of
134 - Renamed AdjustSchema to AdjustSchemaRelations
136 2006-07-13 Senganal T <tsenganal@novell.com>
139 - WriteTables : Remove some commented out code
140 - WriteTable : Fix the logic to skip the table data when the
141 table has a nested relation.
144 2006-07-12 Senganal T <tsenganal@novell.com>
146 * ConstraintCollection.cs :
147 - Remove (string): If constraint name is not found, throw exception
148 - Remove (Constraint): Set the ConstraintCollection of the removed
150 Thanks to Deepak Kr Velachha for reporting the bug.
152 2006-07-12 Senganal T <tsenganal@novell.com>
155 - LoadColumnChildren : If schema name is missing, skip the
157 Thanks to Deepak Kr Velachha for identifying the bug.
159 2006-07-11 Senganal T <tsenganal@novell.com>
161 * XmlSchemaWriter.cs :
162 - WriteTableType : If Relation.Nested is true, then nest the
163 table schemas. Correct the xml to add the table element within
164 the <Sequence> element.
165 - WriteChildRelations : Correct the Xml element name and
166 attributes. Close the attribute correctly.
168 * XmlSchemaDataImporter.cs :
169 - GenerateRelationship : When creating the relations, if
170 ParentColumn exists but Corr ChildCol is null, create a child
171 Column with the same name and type as the parent column.
172 - Renamed DataSetDefinesPrimaryKey to DataSetDefinesKey
173 - DataSetDefinesKey : if either xsd:key or xsd:keyref is
174 defined for the dataset, do not manually create the relations.
175 - AddParentKeyColumn : if Columnname already exists, use
176 colname_0 instead of throwing an exception.
177 - FillDataColumnRepeatedSimpleElement : Do not set the Unique
178 value as it creates a constraint by default. The unique value
179 is automatically set when pk is set.
180 - CreateChildColumns : Added. Creates a ChildColumn duplicating
181 ParentColumn properties.
183 2006-06-30 Senganal T <tsenganal@novell.com>
186 - SetAdded, SetModified : new methods in 2.0
188 2006-06-30 Senganal T <tsenganal@novell.com>
189 * SerializationFormat.cs, DataSetDateTime.cs, DataTableNewRowEventArgs.cs,
190 DataTableNewRowEventHandler.cs : Added
191 * SyntaxErrorException.cs EvaluateException.cs StrongTypingException.cs
192 IsolationLevel.cs ReadOnlyException.cs DataTableCollection.cs
193 DataRowState.cs MissingPrimaryKeyException.cs DeletedRowInaccessibleException.cs
194 DuplicateNameException.cs PropertyAttributes.cs StatementType.cs
195 VersionNotFoundException.cs FillErrorEventHandler.cs DataRowChangeEventHandler.cs
196 XmlWriteMode.cs InvalidExpressionException.cs StateChangeEventHandler.cs
197 DbType.cs DataColumnChangeEventHandler.cs KeyRestrictionBehavior.cs
198 ConnectionState.cs SchemaType.cs MergeFailedEventHandler.cs SqlDbType.cs
199 DataRowVersion.cs ForeignKeyConstraint.cs DBConcurrencyException.cs
200 OperationAbortedException.cs MissingSchemaAction.cs DataTableClearEventHandler.cs
201 DataRowView.cs DataRowAction.cs ConstraintCollection.cs DataTableReader.cs
202 LoadOption.cs InvalidConstraintException.cs InternalDataCollectionBase.cs
203 ParameterDirection.cs AcceptRejectRule.cs UpdateRowSource.cs XmlReadMode.cs
204 TypedDataSetGenerator.cs RowNotInTableException.cs TypeDataSetGeneratorException.cs
205 InRowChangingEventException.cs MissingMappingAction.cs NoNullAllowedException.cs
206 CommandBehavior.cs PropertyCollection.cs CommandType.cs
207 UpdateStatus.cs ConflictOption.cs DataViewRowState.cs Rule.cs
208 DataColumnCollection.cs :
211 2006-06-27 Senganal T <tsenganal@novell.com>
213 * DataSet.cs, DataTable.cs : implement CreateDataReader methods
214 * InternalDataCollectionBase.cs
215 - ToArray () : helper method
216 * DataTableReader.cs :
217 - GetSchemaTable : set the schema info correctly
218 - GetProvider*, GetChars, GetBytes, GetValues :
219 Implemented the methods
220 - GetName : return the name of corresponding schema.
221 - ValidateSchemaIntact, OnColumnCollectionChanged,
223 Listen and raise expception if schema changes
225 2006-06-21 Chris Toshok <toshok@ximian.com>
227 * DataView.cs: update the index after we successfully add the new
228 row. This keeps the dataview's row view count in sync with the
231 2006-06-20 Chris Toshok <toshok@ximian.com>
233 * DataView.cs: the PropertyDescriptorCollection returned by
234 ITyepdList.GetItemProperties should include the child relations of
235 our table, in order to match MS's behavior.
237 * DataViewManager.cs: ICollection.Count property is always 1.
239 2006-06-15 Senganal T <tsenganal@novell.com>
242 - Select : If Sort String is not provided, sort the result
243 DataRows in Ascending Order of the Columns used in the filter
245 2006-06-15 Senganal T <tsenganal@novell.com>
248 - InternalEnforceConstraints : Check if any null constraints
249 are violated. Throw ConstraintException only after all the errors
252 - EnforceConstraints : Move away the logic to check for
253 NullConstraintViolation.
254 - AssertNotNullConstraint : Checks for Null Constraint
256 - EndLoadData : Do not throw any exceptions here. All the
257 errors have to be found and RowErrors set before throwing the
260 - ImportRecrod : Check the values of the row for any null
262 - SetColumnError : If the error for column is already set,
263 do not add a new error but edit the existing error.
264 - CheckValue : Set the NullConstraintViolation flag if either
265 table is being loaded or if EnforceConstraints is set to
267 * Constraint.cs : Do not throw exception when EnforceConstraints is
268 set to false or table is being loaded.
269 * UniqueConstraint.cs : Correct the error message. Set ColumnErrors
270 along with the RowError.
272 2006-05-31 Gert Driesen <drieseng@users.sourceforge.net>
274 * DataTable.cs: Renamed initInProgress to fInitInProgress. BeginInit
275 and EndInit must only be virtual in 2.0 profile. Set eol-style to CRLF.
277 2006-05-31 Senganal T <tsenganal@novell.com>
279 * XmlDataInferenceLoader.cs :
280 - InferTableElement : Repeated element should result in a single
282 Patch from Deepak Kr Velachha
284 2006-04-21 Senganal T <tsenganal@novell.com>
286 * DataRowCollection.cs :
287 - Find : If search on the table using PrimaryKey fails and if
288 index is not being maintained (during table load), search the
290 - Find (int) : Removed. Deadcode.
292 - Not necessary to delete each row from the Index.
293 Just reset the Indexes after cleaning up the row
295 - Simplify dependency check for child tables
298 - Do not use DataRowCollection.Find to search for
299 existing records as this wud check even newly loaded rows.
301 - Do not add new records to Index. Update Index only
302 if an existing record is modified. New records will be
303 taken care by EndLoadData.
305 2006-04-19 Senganal T <tsenganal@novell.com>
307 * XmlHelper.cs : A helper class for encoding/decoding schema names.
308 Caches the Schema names to minimize encoding/decoding operations and
309 duplicate strings created.
311 - Use XmlHelper for encoding/decoding schema names.
312 - Encode ConstraintNames when writing as xml.
315 * XmlDataInferenceLoader.cs
316 * XmlSchemaDataImporter.cs
317 - Use XmlHelper for encoding/decoding schema names.
318 * DataTableCollections : Minor code refactor.
319 * DataRow.cs : Create XmlElement only if required.
321 2006-04-07 Senganal T <tsenganal@novell.com>
324 - InternalEnforceConstraints() : Reset Indexes of all tables
325 before validating constraints. Fixes #78010
327 2006-03-04 Boris Kirzner <borisk@mainsoft.com>
328 * TypeDataSetGeneratorException.cs: fix .Net Soap serialization compatibility.
330 2006-03-25 Senganal T <tsenganal@novell.com>
333 - RejectChanges : When row is in Deleted state, add the row back to
334 Indexes and Validate the row.
337 2006-03-23 Senganal T <tsenganal@novell.com>
340 - LoadDataRow : Add the row to the indexes, when loading a new row.
342 2006-03-22 Senganal T <tsenganal@novell.com>
345 - PrimaryKey : Set the IsPrimaryKey attribute before Removing from collection.
346 - RemoveUniqueConstraints : Removed. dead code.
349 - If adding/removing constraint fails, retain Unique value
350 - Remove redundant code
351 * UniqueConstraint.cs :
352 - SetIsPrimaryKey : Added. Sets the value of IsPrimaryKey.
353 - RemoveFromConstraintCollectionCleanup : If constraint is on a single column, then
354 set Unique for that column to false.
355 - CanRemoveFromCollection : Do not remove constraint, if its a PrimaryKey
357 2006-03-20 Senganal T <tsenganal@novell.com>
360 - CopyRelations () : When copying the relation, do not add constraints
361 automatically for the relation.
362 - OnMergeFailed () : If merge fails and no handler is set for the MergeFailedEvent,
363 then throw DataException
364 * ConstraintCollection.cs :
365 - Add () : Check if a constraint already exists on the Columns that are being
367 - IndexOf () : Do not check for equivalent constraints, check for the exact instance.
368 * MergeManager.cs ():
370 - Handle the MissingSchemaAction.Error case,
371 - Do not create constraints when mergin the DataRelation
372 - Follow the semantics for schema merge/validation when constraints are already present
373 in the target DataSet.
374 - AdjustPrimaryKeys () :
376 - Verify Order of Columns in the PrimaryKey when merging.
377 - ResolveColumns : Changed the arument to DataSet. Simplifies code elsewhere.
378 - CompareColumnArrays, CompareColumnArrays : Helper funtions.
380 2006-03-09 Senganal T <tsenganal@novell.com>
383 - RejectChanges () : Add the row to index, if it was in deleted state and
384 Update the index if in Modified State.
385 - AcceptChanges () : Do not update the Indexes.
386 - EndEdit () : Update the indexes even if BeginLoadData has been called
387 on the table. Ideally, indexes should not be maintained during DataLoad,
388 but this needs to handled in multiple places correctly. For now, just maintain
389 the index to ensure correct operation.
391 2006-03-05 Senganal T <tsenganal@novell.com>
394 - BeginInit (), EndInit () : Implemented methods
395 - InitInProgress : Added.
397 - EndInit () : Move the adding of columns and constraints
399 - FinishInit () : Added. Adds the Constraints and Columns
401 - InitInProgress : Added.
403 - FinishInit () : Added. Virtual method
404 - InitInProgress : Added. Virtual property
405 * UniqueConstraint.cs
406 * ForeignKeyConstraint.cs
407 - FinishInit () : Added.
408 - InitInProgress : Added.
409 - DataColsNotValidated : Removed.
410 * ConstraintCollection.cs
411 - PostAddRange : Removed event
412 - PostEndEdit () : Renamed to PostAddRange
413 - Add () : Simplified the testing if constraint is initialized
414 - AddRange () : Simplified initializing the constraints
415 * DataTableCollection.cs
416 - PostAddRange () : Added. Adds the tables to the collection
417 * DataColumnColletion.cs
418 - PostEndInit () : Renamed to PostAddRange.Also, add column to
419 the collection only if not null.
421 Added/Implemented methods for design time support. Renamed some methods for consistency
422 in naming across classes for methods serving the same purpose.
424 2006-02-24 Senganal T <tsenganal@novell.com>
426 * UniqueConstraint.cs :
427 - ChildConstraint : Added. Simplifies verifying if constraints are
429 - CanRemoveFromCollection : Fixed the check to verify if constraints is
430 linked to a ForeignKeyConstraint. Fixes #77630
431 * ForeignKeyConstraint.cs :
432 - _validateRemoveParentConstraint : Removed. Not used anymore
433 - ParentConstraint : Added. Simplifies verifying if constraints are
435 2006-02-22 Senganal T <tsenganal@novell.com>
438 - RejectChanges : Do not remove Row from Indexes when state is Deleted.
439 - CheckChildRows : When checking for the ChildRows, use the current value
440 and not the original value.
442 2006-02-18 Atsushi Enomoto <atsushi@ximian.com>
444 * CustomDataClassGenerator.cs : Patch by Marek Habersack. xsd now
445 outputs AutoIncrement, AutoIncrementSeed, AutoIncrementStep and
446 ReadOnly properties. This fixes bug #77576.
448 2006-02-17 Chris Toshok <toshok@ximian.com>
450 * System.Data/DataSet.cs, System.Data/DataView.cs,
451 System.Data/ForeignKeyConstraint.cs,
452 System.Data/DataViewManager.cs, System.Data/DataRow.cs,
453 System.Data/DataSysDescriptionAttribute.cs,
454 System.Data/UniqueConstraint.cs, System.Data/DataTable.cs,
455 System.Data/DataRelation.cs: lots of attribute work, removing
456 DataSysDescription atributes (and marking the class obsolete) for
459 2006-02-17 Chris Toshok <toshok@ximian.com>
461 * DataAdapterException.cs: remove this file.
463 2006-02-17 Chris Toshok <toshok@ximian.com>
465 * DataTableReader.cs: Switch to the (bool) form of Dispose to
466 override, as the no-arg form isn't virtual.
468 * Constraint.cs: #ifdef out more DataSysDescriptions.
470 * ConstraintException.cs: add ..ctor (string, Exception) for 2.0.
472 2006-02-17 Chris Toshok <toshok@ximian.com>
474 * DataColumn.cs: #ifdef all the DataSysDescriptions !NET_2_0.
476 * AdapterMappingException.cs: nuke this file.
478 * IDbAsyncConnection.cs, IDbAsyncCommand.cs, IGetTypedData.cs,
479 ISetTypedData.cs, IDataReader2.cs, IDataSources.cs,
480 IDbExecutionContext.cs, IDataRecord2.cs, IDataUpdatableRecord.cs:
481 remove these 2.0 files.
483 2006-02-17 Chris Toshok <toshok@ximian.com>
485 * ConstraintCollection.cs: in 2.0, class is not serializable and
486 is sealed. make all the "virtuals" #if !NET_2_0 as well.
488 * Constraint.cs: not serializable in 2.0.
490 * DataColumnCollection.cs: in 2.0, class is not serializable and
491 is sealed. make all the "virtuals" #if !NET_2_0 as well.
493 * DataRelationCollection.cs: not serializable in 2.0.
495 * DataRelation.cs: not serializable in 2.0.
497 * DataRowBuilder.cs: class is sealed in 2.0.
499 * DataRowCollection.cs: in 2.0, class is not serialized and is
500 sealed. Also, Add isn't virtual in 2.0 (as the class is sealed).
502 * DataRow.cs: not serializable in 2.0.
504 * DataSet.cs: remove some DataSysDescriptions from the 2.0 build,
505 and s/GetDataReader/CreateDataReader.
507 * DataTableCollection.cs: in 2.0, class is not serializable and is
508 sealed. make all the "virtuals" #if !NET_2_0 as well.
510 * DataTableReader.cs: remove VisibleFieldCount property.
512 * DataViewSettingCollection.cs: not serializable in 2.0.
514 * DataViewSetting.cs: not serializable in 2.0.
516 * ForeignKeyConstraint.cs: serializable in 2.0.
518 * OperationAbortedException.cs: class is sealed and serializable.
520 * PropertyCollection.cs: serializable in 2.0.
522 * StatementCompletedEventArgs.cs: class is sealed.
524 * UniqueConstraint.cs: not serializable in 2.0.
526 2006-02-16 Senganal T <tsenganal@novell.com>
529 WriteDataSetElement : Add an annotation element if exists.
530 WriteDataRelationAnnotation : New. Write a DataRelation as an annotation.
531 WriteConstraints : Write ForeignKeyConstraint even when not associated with
532 a DataRelation and add a "ConstraintOnly=true" attribute for such constraints.
533 * XmlConstants.cs : Add a new constant - ConstraintOnly
534 * XmlSchemaImporter.cs :
535 - ConstraintStructure : Add field ,IsConstraintOnly, to distinguish if a foreignkeyconstraint
536 is related to relation or not.
537 - GenerateRelation : Handle the case when parentkey and childkey contain multiple columnnames.
539 2006-02-11 Senganal T <tsenganal@novell.com>
541 * UniqueConstraint.cs :
542 - PostAddRange : Check PrimaryKey is not already set for the table
544 - PrimaryKey : follow ms.net behavior when BeginInit , EndInit is used.
545 - Add new priamry key only when EndInit is called.
546 - Incase of an error, retain old primarykey
548 - Add Constraints after columns are added.
549 - If both PrimaryKey Property and PrimaryKey Constraint are set,
550 then the Constraint takes precedence.
553 2006-02-03 Senganal T <tsenganal@novell.com>
555 * DataTableCollection.cs :
556 - Remove () : Check for invalid TableName
557 - Add () : Verify the table doesn't belong to another dataset
559 - CompleteLastAdded () : Do not raise ItemAdded Event as it is
560 already raised in AddNew().
562 - Expression : Verify that the Column names in the expression are valid
563 - ResetCollectionInfo : Renamed to ResetColumnInfo
565 - RejectChanges () : Reorganized the code to do the Right thing.
566 - Item : Dont check for detached and deleted rows as these are
568 * DataRowCollection.cs :
569 - Add () : Check for null value
571 - PrimaryKey : Set AllowDBNull=false for all the key columns
572 - ImportRow : Import the row only if it is not in Detached state. if in Deleted
573 state, perform the validation when AcceptChanges/RejectChanges is called.
574 * DataColumnCollection.cs :
575 - Add : Validate the column expression before adding it to the collection.
576 - GetColumnDependency () : New. Get the dependencies on the column
577 - CanRemove : Move checks to GetColumnDependency
578 - Clear () : Simplified code. Remove unncessary checks.Also, dont check Expression col.
579 - IndexOf - Check argument.
580 Overall , appropriate error msg's are thrown if Remove/Clear fails. Removed a few
581 redundant checks performed and moved the common code to GetColumnDependency.
583 2006-01-31 Senganal T <tsenganal@novell.com>
585 * DataSet.cs : Modified CopyRelations ()
586 - Added code to copy ForeignKeyConstraints. Fixes #77411.
588 2006-01-18 Boris Kirzner <borisk@mainsoft.com>
589 * DataColumn.cs: added PropertyCchangedEvent handling.
591 2006-01-17 Senganal T <tsenganal@novell.com>
594 ItemArray : Modified to raise RowInTableException only if
595 the concerned row has been removed from the table.Fixes
598 2006-01-16 Boris Kirzner <borisk@mainsoft.com>
599 * DataTable.cs: Drop dependend indexes on column removal.
601 2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
603 * CustomDataClassGenerator.cs :
604 When a DataRelation connects the same table as parent and child,
605 generate parent row property as BlahRowParent. Fixed bug #77248.
607 2006-01-10 Senganal T <tsenganal@novell.com>
608 * DataRowCollection.cs
609 - Added ListChangedEvent to notify reset of the collection.
611 - Subscribes to the ListChangedEvent of DataRowCollection
614 2006-01-09 Senganal T <tsenganal@novell.com>
617 - Resolving a name clash in IExpression
619 2006-01-06 Senganal T <tsenganal@novell.com>
622 * DataColumnCollection.cs
623 - Reset the Parameters of DataColumn to Default Values when
624 column is removed from the Table's Collection
626 2006-01-03 Senganal T <tsenganal@novell.com>
629 - ParseSortString() : Changed the way the sort string is parsed.
630 Using a regex to parse the string.Fixes bug #77104
632 2005-12-12 Konstantin Triger <kostat@mainsoft.com>
634 * DataRow.cs: Added index Updates.
635 EndEdit() fixed to first update indices and then AssertConstraints
636 based on those indices.
637 Added Validate() and AssertConstraints() functions.
638 * DataRowCollection.cs: Removed ValidateDataRowInternal().
639 * DataTable: Fixed Clear().
641 2005-12-06 Atsushi Enomoto <atsushi@ximian.com>
643 * CustomDataClassGenerator.cs : (InitializeFields) handle AllowDBNull
644 and DefaultValue as well. Patch by Marek Habersack (bug #76709).
646 2005-12-01 Miguel de Icaza <miguel@novell.com>
648 * DataSet.cs: Apply patch from Robert Jordan, to fix #76817
650 2005-11-26 Konstantin Triger <kostat@mainsoft.com>
652 * ConflictOption.cs: TARGET_JVM include.
654 2005-11-11 Senganal T <tsenganal@novell.com>
656 * ConflictOption.cs (new file)
657 - Added ConflictOption Enumeration
660 - GetProviderSpecificFieldType : Corrected the method name
662 2005-11-11 Senganal T <tsenganal@novell.com>
664 * DataSet.cs : Added the SchemaSerializationMode Property for NET_2_0
666 * SchemaSerializationMode.cs : Added SchemaSerializationMode Enumeration
667 for NET_2_0 compatibility.
671 2005-10-20 Atsushi Enomoto <atsushi@ximian.com>
673 * XmlSchemaWriter.cs : escape names in the schema with XmlConvert.
676 2005-10-14 Sureshkumar T <tsureshkumar@novell.com>
678 * DataView.cs: Correct multiple throwing of events. Patch from
680 (RowStateFilter): Fire ListChangedEvent.
681 (ApplyDefaultSort): Fire ListChangedEvent.
682 (CompleteLastAdded): call UpdateIndex to remove the row from rowCache.
683 (IBindingList.Find): Implemented.
685 2005-10-11 Sureshkumar T <tsureshkumar@novell.com>
687 * DataView.cs (IBindingList): Implemented methods for IBindingList interface.
689 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
691 * DataSet.cs: In IXmlSerializable.GetSchema, return null again for
692 untyped datasets. Fixes bug #76101.
694 2005-09-21 Boris Kirzner <borisk@mainsoft.com>
695 * DataRow.cs: Fixes for index updating.
697 - Reset case-sensitive indexes also if their filter contains columns
699 - Use GetIndex instead of FindIndex, so the indexes created in Select()
701 * RelatedDataView.cs: implement IExpression.Equals() and GetHashCode().
703 2005-09-20 Sureshkumar T <tsureshkumar@novell.com>
705 * DataView.cs (Sort): Apply default Sorting Order if Sort property
706 is reset to null. Sort property handles this. Patch from Marc.
708 * DataTable.cs (ParseSortString): Patch from Marc Haisenko for
709 allowing [ & ] in DataView.Sort string.
711 2005-09-01 Boris Kirzner <borisk@mainsoft.com>
712 * System.Data/DataRowCollection.cs: indexes should be updated even if
713 EnforceConstraints is false. Check for EnforceConstraints in
714 ValidateDataRowInternal.
716 2005-08-08 Gert Driesen <drieseng@users.sourceforge.net>
718 * DataView.cs: Changed accessibility of dataTable, rowState and
719 rowCache field to internal to fix public API. Assigned TypeConverter
721 * ForeignKeyConstraint.cs: IsConstraintViolated is now internal.
722 * Constraint.cs: IsConstraintViolated is now internal.
723 * UniqueConstraint.cs: IsConstraintViolated is now internal.
725 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
727 * XmlSchemaDataImporter.cs : When "dataset element" has identity
728 constraints, then first reserve constraints room for them and then
729 process elements, skipping pkey creation if there is already
730 reserved one. Fixed bug #75711.
732 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
734 * XmlDataInferenceLoader.cs : in GetElementMappingType(), don't guess
735 the same (QNamed) element again when it was already evaluated as
736 not simple type. Fixed one part of bug #75711.
738 2005-08-02 Boris Kirzner <borisk@mainsoft.com>
739 * XmlSchemaDataImporter.cs : Data relations should be processed after the
740 keys, so no redundant constraints created while relations processing.
742 2005-07-25 Boris Kirzner <borisk@mainsoft.com>
743 * FillOptions.cs, ConflictOptions.cs, UpdateOptions.cs:
744 added ifdef TARGET_JVM.
746 2005-07-22 Sureshkumar T <tsureshkumar@novell.com>
748 * DataViewSettingCollection.cs, DataTableCollection.cs,
749 DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
750 DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
751 DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
752 - updated attributes & attribute descriptions to match with
755 * DataView.cs: changed protected members
756 rowstate,rowcache,dataTable to protected internal.
757 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint.cs:
758 changed InConstraintViolated to protected internal.
759 * ConflictOptions.cs, UpdateOptions.cs, FillOptions.cs: enclosed
762 2005-07-21 Sureshkumar T <tsureshkumar@novell.com>
764 * ForeignKeyConstraint.cs:
765 - IsConstraintViolated (): no matter what EnforceConstraints is,
766 this function now honestly validates. It is upto the caller to run
768 - AddToConstraintCollectionSetup (): AssertConstraint according to
771 2005-07-21 Boris Kirzner <borisk@mainsoft.com>
772 * ForeignKeyConstraint.cs - IsConstraintViolated() should check also for Table.EnforceConstraints.
773 * DataTable.cs - EnforceConstraints becomes internal so it can be used by ForeignKeyConstraint.
775 2005-07-19 Sureshkumar T <tsureshkumar@novell.com>
777 * DataTable.cs - CopyConstraints (): copy constraints only if it
780 * DataSet.cs - Copy ():
781 - use activator.CreateInstance to create a typed dataset.
782 - copy tables if target does not exist, otherwise, just add rows.
783 - add relation only if it does not exists.
785 Typed datasets create the constraints & relations through
786 constructors. Fixes bug #75211.
788 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
790 * DataView.cs: Patch from Marc Haisenko to throw descriptive error
791 message when accessing Item, with invalid index.
793 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
795 reapplied patch from Marc Haisenko.
796 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
799 2005-07-13 Sureshkumar T <tsureshkumar@novell.com>
801 * DataRelationCollection.cs: adding a relation with same set of
802 parent columns & child columns, should not be allowed.
804 2005-07-08 Sureshkumar T <tsureshkumar@novell.com>
806 * DataTableReader.cs: GetSchemaTable: DataType column should be
807 passed a type of Type.
809 * DataRow.cs: Load : Fired necessary events.
811 * DataTable.cs: LoadDataRow (object [], LoadOption): Fired
814 2005-06-28 Sureshkumar T <tsureshkumar@novell.com>
816 * DataRow.cs: Delete (): if row is detached, do nothing.
819 2005-06-22 Sureshkumar T <tsureshkumar@novell.com>
821 * DataRow.cs: Added method MergeValuesToRow copy merge two rows
822 according to the merge rules.
824 * MergeManager.cs: (MergeRow): use MergeValuesToRow
825 API. CopyValuesToRow simply makes the target row same as source
826 row. Rather, MergeValuesToRow merges with the target row according
829 2005-06-19 Konstantin Triger <kostat@mainsoft.com>
831 * DataSet.cs: Fixed ReadXml to work with IXmlSerializable
833 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
835 * DataViewManager.cs: fixes exception and creates DataView
837 2005-06-15 Sureshkumar T <tsureshkumar@novell.com>
839 * DataRow.cs: CheckChildRows: cascade parent changes to child rows
840 only if there is a change in columns of the fk constraint.
842 2005-06-14 Sureshkumar T <tsureshkumar@novell.com>
844 * DataSet.cs: GetChanges: if row is deleted, get parent rows based
845 on original version. fixes bug #75227.
847 2005-06-13 Sureshkumar T <tsureshkumar@novell.com>
849 * DataRowCollection.cs: Find (keys, version): Added an overload to
850 find keys matching given DataViewRowState filter. Used in
851 DataSet.Merge and DataTable.LoadDataRow.
853 * DataTable.cs: LoadDataRow (values, LoadOption): Use
854 DataRowCollection.Find (object [], DataViewRowState) overload.
857 - CopyValuesToRow: Create target "records" out of loop. Records
858 should be created once, not for each column. Dispose Unused target
862 - MergeRow: Find rows with matching original records. If not,
863 select with current values.
864 - MergeRow: While adding new row, use NewNotInitializedRow.
866 * ForeignKeyConstraint.cs: IsConstraintViolated: should not check
867 if EnforceConstraints is false.
869 2005-06-10 Sureshkumar T <tsureshkumar@novell.com>
871 * DataRow.cs: CopyValuesToRow: if orginal == current, don't create
872 a new current record.
874 * DataSet.cs: GetChanges :Temporarily disable EnforceConstraints.
876 * MergeManager.cs: Merge: Temporarily disable
877 EnforceConstraints. Patch from george.barbarosie@gmail.com (George
880 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
882 * DataView.cs: fixes GetListName
884 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
886 * XmlSchemaConstants.cs,
887 XmlSchemaDataImporter.cs,
888 XmlSchemaWriter.cs : AutoIncrementStep support. Patch partly by
889 George Barbarosie. Fixed bug #75121.
890 * XmlSchemaMapper.cs : it is not used anymore, so just removed.
892 2005-05-31 Boris Kirzner <borisk@mainsoft.com>
893 * DataRow.cs : SetParentRow on Detached row with no Default version throws an exception.
895 2005-05-29 Konstantin Triger <kostat@mainsoft.com>
897 * This patch fixes #74813
898 * DataView.cs: rework the CreateChildView to receive the index into the indexed row array, rowState became protected to be initialized from RelatedDataView
899 * DataRowView.cs: movo the logic of creating the child view to the DataView
900 * RelatedDataView.cs: perform correct init.
902 2005-05-25 Sureshkumar T <tsureshkumar@novell.com>
904 * DataTable.cs: Reworked DataTable.LoadDataRow method after
905 regressions caused by Index redesign.
906 * DataRow.cs: Load : reworked.
908 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
910 * ISafeDataRecord.cs: Added GetDateTimeSafe method, the interface was made derived from IDataRecord
912 2005-05-22 Konstantin Triger <kostat@mainsoft.com>
914 * 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
916 2005-05-20 Sureshkumar T <tsureshkumar@novell.com>
918 * DataTable.cs: CreateRecord :value should be set to auto
919 increment value or default value if the given value is null.
921 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
923 * DataTable.cs: In DataTable.LoadDataRow with LoadOption - reverting the search order back to Original -> Current (by Suresh request)
925 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
927 * DataRow.cs, DataTable.cs: code under net_2_0 changed to use the new interface
928 * DataTable.cs: Added CompareRecords, which compares records in column order
931 2005-05-16 Sureshkumar T <tsureshkumar@novell.com>
934 * DataTable.cs: quick fix to make build 2.0 profile (follow up for
935 check in 2005-05-16). Merge with previous changes.
937 2005-05-11 Sureshkumar T <tsureshkumar@novell.com>
939 fix for "import row does not import deleted records"
941 * UniqueConstraint.cs: Make a way to access value even from a
942 deleted record. deleted records are added to the collection by
946 - Added restriction-less methods GetValue to fetch a
947 value even if it is in deleted state.
948 - If a row is detached, don't try to delete it from indexes.
949 - sanity check for record_index in CopyValuesToRow method
951 2005-05-05 Sureshkumar T <tsureshkumar@novell.com>
953 * DataTableReader.cs: Implemented Delete handler and move the
954 current pointer accordingly.
956 2005-05-04 Sureshkumar T <tsureshkumar@novell.com>
958 * DataTableReader.cs: Added event handlers to make reader stable
959 when the datasource is modified. Thanks to Umadevi for giving the
960 review comments for this implementation.
962 * DataTable.cs: Clear (): Raise TableCleared event.
964 * DataTableClearEventArgs.cs: Args for DataTableClearEventHandler.
966 * DataTableClearEventHandler.cs: Handler for DataTable.TableClear
969 * DataRow.cs: AcceptChanges: raise row changing & row changed
972 * DataRowCollection.cs: Clear : remove rows from indexes
974 2005-05-02 Atsushi Enomoto <atsushi@ximian.com>
976 * XmlSchemaDataImporter.cs : XmlSchemaParicle might be XmlSchemaAny.
977 This fixes bug #74784.
979 2005-04-29 Sureshkumar T <tsureshkumar@novell.com>
981 * DataTableReader.cs: removed use of _first. throw if given index
982 is out of range of columns. Copy DataTable [] to local array so
983 that not to be disturbed.
985 2005-04-27 Sureshkumar T <tsureshkumar@novell.com>
987 * DataTableReader.cs: Implemented most of the TODO.
989 2005-04-22 Sureshkumar T <tsureshkumar@novell.com>
991 * LoadOption.cs: Changed the enums. Keeping old values for
994 * DataTable.cs: Implemented methods Load and its overloads. Also
995 implemented LoadDataRow.
997 * DataRowCollection.cs: Added a variation of the Find method to
998 return a row even if it is of state Deleted. This is required for
999 DataTable.LoadDataRow method.
1001 * DataRow.cs: Implemented internal helper method Load for loading
1002 values from an object array and given an LoadOption (2.0 feature).
1004 * DataRowAction.cs: Added few more enums for .net 2.0. Sorted
1007 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1009 * UniqueConstraint.cs : IsNull check is relevant for rows having default row version.
1010 * DataTable.cs : The row should be validated when imported
1011 * DataRowCollection.cs : if the row does not contain Proposed neither Current version, it's irrelevant for validation
1013 2005-04-26 Boris Kirzner <borisk@mainsoft.com>
1015 * UniqueConstraint.cs :
1016 - Add indication whenever the constraint belongs to collection.
1017 - Calculation of IsPrimaryKey simplified.
1018 - If constraint is based on single column, the column becomes unique.
1019 - Use boolean IsConstraintViolated() instead of AssertConstraint().
1020 - Use Index.Duplicates to proper exception message formatting.
1021 - AssertConstraint(DataRow) changed to suite new indexes interface.
1022 - Added CanRemoveFromCollection method.
1023 - Contains() method renamed to IsColumnContained().
1024 * RelatedDataView.cs : added new class.
1026 - Reset indexes after merge.
1027 - Add new tables when row array is merged into dataset.
1028 - Clean proposed record in MergeRow.
1029 - Inherit nesting on creating new relations in target data set.
1030 - Avoid double loop on constraints collection.
1031 * Locale.cs : added new class.
1032 * ISafeDataRecord.cs : added new interface.
1033 * Index.cs : commented out. Index implementation moved to System.Data.Common.
1034 * ForeignKeyConstraint.cs :
1035 - No more use of childColumnsExtended since new indexes allow duplicate records.
1036 - Constraints can not be created on expression columns.
1037 - Removed unnecessary delegation.
1038 - Use boolean IsConstraintViolated() instead of AssertConstraint().
1039 - Use proper exception message formatting.
1040 - Contains() method renamed to IsColumnContained().
1041 * DataViewRowState.cs : use enum members to simplify notation.
1042 * MergeManager.cs : implemented RelationCollectionChanged().
1043 * DataView.cs : new implementation.
1044 * DataTableCollection.cs :
1045 - Added boundary check in indexer.
1046 - More accurate handling in AddRange().
1047 - Raise event in Remove().
1049 - Hold primary key as constraint.
1050 - Added accurate handling of DefaultView.
1051 - Hold DataRowBuilder per table.
1052 - Proper exception messages if enforce Constraints is violated.
1053 - If there is no rows, Compute() returns DBNull.
1054 - Use DataRow properties instead of private members.
1055 - CopyProperties() fixed.
1056 - Raise proper events in EndInit().
1057 - Proper order of violation checks in EndLoadData().
1058 - Create array of rows using NewRowArray().
1059 - ImportRow handles rows according to their versions.
1060 - LoadDataRow make use of records (instead of raw object array).
1061 - Added and implemented LoadDataRow() that gets IDataRecord as a parameter (used in Fill)
1062 - Select() uses indexes filtering and sorting ability (instead of "loop-throw-sort" approach).
1063 - Removed redundant RowSorter and Sortable column classes.
1064 - ParseSortString() fixed to threat bracketed column names.
1065 - Table holds collection of property descriptors.
1067 - Reset table case sensitive indexes on CaseSensitive change.
1068 - EnforceConstraints update logic moved to internal method (used by DataTable).
1069 - InAddChangedRow first add row and than copy values for proper handling of default values.
1071 - Changed private member names to suite name convention.
1072 - CancelEdit() fixed.
1073 - CreateChildView() delegates to DataView.
1075 - Proper exception messages in indexers.
1076 - RowVersion uses DataView.
1077 - GetProperties() delegates to corresponding table if needed.
1078 * DataRowCollection.cs :
1079 - Common Add() logic moved to AddInternal() (used also by DataTable).
1080 - Removed redundant check from Contains().
1081 - Dalegate Find() calls when possible.
1083 - RomoveAt() delegates to Remove().
1084 - Optimized constraints check in row validation.
1085 * DataRelationPropertyDescriptor.cs : added new class.
1086 * DataRelationCollection.cs :
1088 - Fixed order of actions in AddCore().
1089 - RemoveCore() also delegates to base.
1090 - Add relation to dataset also in AddCore().
1091 - Remove relation from dataset also in RemoveCore().
1092 - InTransition hold a data relation so we can properly identify the "in transition" state.
1093 - Added threat of parent and child table s property descriptors in Add().
1094 - Common Add() logic moved to AddCore().
1096 - Remove() threats "in transition" state properly.
1097 - Remove methods delegate to single implementation.
1098 * DataColumnPropertyDescriptior.cs :
1099 - Added new constructor.
1100 - Commented out redundant method.
1101 * DataColumnCollection.cs :
1102 - Boundary check in indexer.
1103 - RegisterName and UnregisterName become internal (used also by DataColumn).
1105 - Fixed CanRemove().
1106 - Rethrow correct exception in Clear();
1107 - Change in collection resets parent table property descriptors.
1108 - Added PostEndEdit() helper method (used by DataTable).
1110 - Private member names changed to suite name convention.
1111 - Created method for CanAutoIncrement() logic.
1112 - Proper handling of column name update.
1113 - Proper exception messages on expression update.
1114 - Proper namespace handling (delegates to table when needed).
1115 - Removed redundant check in Unique update.
1116 - Implemented internal Clone().
1117 - GetParentRalation() and GetChildRelation() become private.
1119 - Added abstract methods (implemented in UniqueConstraint and ForeignKeyConstraint).
1120 - Simplified index update.
1121 * ConstraintCollection.cs :
1122 - Use Locale instead of CaseSensitive in column names comparison.
1124 - Rethrow correct exception type in Add().
1125 - Proper update of table primary key in Add().
1126 - Delegate CanRemove() to constraint.
1127 - Remove table primary key in Clear();
1128 - Delegate "can remove" check to constraint in Remove().
1129 - Removed unnecessary methods and properties.
1131 - RowSate becomes calculated property.
1132 - Use properties instead of private members where possible.
1134 - Fixed order of actions in ItemArray update.
1135 - Fixed DetachRow().
1136 - Added ImportRecord() method.
1137 - Removed redundant SetValuesFromDataRecord().
1138 - Fixed IndexFromVersion().
1139 - Added VersionFromIndex() method. Returns row version the passed record index corresponds to.
1140 - Fixed AcceptChanges().
1141 - Fixed creating proposed version in BeginEdit();
1142 - Added record disposal in Delete().
1143 - Fixed CheckChildRows().
1144 - EndEdit() fixed. Checks for readonly. Uses straight flow instead of "try and fix if fail" approach.
1145 - GetChildRows() and GetPrarentRows() rewrited. Use records and indexes for rows lookup.
1146 - GetColumnError() delegates to another implementation.
1147 - HasVersion() fixed.
1148 - RejectCahnges checks on child rows before passing through.
1149 - SetParentRow() fixed. Create relation collection if needed. Use typed data container value copy.
1150 - CopyErrors() logic moved to separate method (used also by DataTable).
1151 * ExpressionElement.cs : added new class.
1152 * Res.cs : added new class.
1154 2005-04-20 Jordi Mas i Hernandez <jordi@ximian.com>
1156 * DataViewManager.cs: implements TypedList.GetListName used in SWF
1158 2005-04-19 Atsushi Enomoto <atsushi@ximian.com>
1160 * DataRowView.cs : indexer should access to DataRow with proper
1161 DataRowVersion. Fixed bug #74650.
1163 2005-04-18 Sureshkumar T <tsureshkumar@novell.com>
1165 * DataRow.cs: if there are no mapping fields, fill with default
1168 2005-04-17 Atsushi Enomoto <atsushi@ximian.com>
1170 * DataView.cs : Delete() should not try to remove row twice.
1173 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
1175 * DataTable.cs : Use GetRowType() for the base of the returning array
1176 type of Select(). Fix by Gerhard Rittweger.
1177 * CustomDataClassGenerator.cs : Fixed slightly harmless wrong code.
1179 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
1181 * CustomDataClassGenerator.cs : custom relation was not added to
1182 Relations property. The second entry of bug #69276 was fixed.
1183 Patch by Daniel Rodriguez.
1185 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
1187 * DataRowCollection.cs: Fix the signature of the Add method
1190 2005-03-16 Atsushi Enomoto <atsushi@ximian.com>
1192 * DataRow.cs : on importing row, it was copying data from incorrect
1193 DataRow. This fixes bug #73288.
1195 2005-03-07 Jackson Harper <jackson@ximian.com>
1197 * DataViewManagerListItemTypeDescriptor.cs: Implement missing
1198 features. These are needed for System.Windows.Forms databinding.
1200 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1202 * DataColumn.cs : setting negative value on MaxLength of SimpleContent
1203 column is still valid.
1205 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
1207 * XmlSchemaWriter.cs : new file for outputting XmlSchema.
1208 * DataSet.cs : removed rewritten code in XmlSchemaWriter.
1209 * XmlConstants.cs : added UseCurrentCulture constant.
1211 Use new Xml Schema writer.
1212 Use XmlSchemaDataImporter as we use in DataSet.
1214 2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
1216 * DataView.cs, DataRowView.cs : Fixed bug #72421. CreateChildView()
1217 should target only child rows.
1219 2005-02-03 Atsushi Enomoto <atsushi@ximian.com>
1221 * DataViewManager.cs: misuse of ReadStartElement(string).
1222 * DataRowView.cs : removed some MonoTODO.
1224 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1225 Ankit Jain <radical@corewars.org>
1227 * DataColumn.cs: throw exception if the column is part of a
1228 relationship, when chaning the data type. Added methods
1229 "GetParentRelation ()" and "GetChildRelation ()" get the relation
1230 which contains the current column
1231 * DataRelation.cs: Added method "Contains (DataColumn)" to check
1232 whether the relation contains the given column.
1234 fixes nunit failure: DataRelationTest.InvalidConstraintException2.
1236 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1238 * DataColumnCollection.cs: implemented todo item "check for
1239 constraints" when removing columns from table.
1240 * DataRowCollection.cs: Clear (): don't have to throw child key
1241 constraint exception when the child table does not have any
1242 rows. safe to remove parent rows.
1243 * UniqueConstraint.cs: added method "Contains (DataColumn)" to
1244 check whether a column is part of UniqueConstraint.
1245 * ForeignKeyConstraint.cs: added method "Contains (DataColumn,
1246 lookInParent)" to check whether a column is part of foreignkey.
1248 fixes nunit failure: DataTableTest.ClearTest ()
1250 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1252 * ForeignKeyConstraint.cs: validating columns: move checking
1253 "tables are of same dataset" before "checking column types".
1255 fixes nunit failure: ForeignKeyConstraint.CtorExceptions.
1257 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1259 * DataViewManager.cs : let's just use StringWriter instead of
1260 XmlTextWriter (to avoid empty tag string mismatch annoyance.)
1261 * DataView.cs : implemented BeginInit() and EndInit(). Don't update
1262 rows during init phase until EndInit() is invoked. During init phase,
1263 just hold properties such as Sort that affects on rows.
1265 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1267 * DataTableCollection.cs : (RemoveAt) just use IndexOutOfRangeException.
1269 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1271 * DataView.cs : DataRowView.EndEdit() raises ItemMoved event.
1272 set_Table clears Sort and RowFilter.
1274 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1277 - Clear() should clear AddNew cache.
1278 - Open() invokes Reset().
1279 - ConstraintCollectionChanged() itself does not invoke OnListChanged().
1280 - Reset() does not Open, Close and Update Index.
1281 - UpdateIndex() can be invoked even if it has no table.
1282 - Reset event is invoked always after actual query to table.
1283 - set_Table should raise PropertyDescriptorChanged event.
1285 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1287 * DataView.cs : ColumnCollectionChanged() is the event invoker (i.e.
1288 when overriden, no column change events are fired).
1290 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1292 * DataView.cs : CancelEditRowView() and DeleteRowView() was incorrectly
1293 checking target tables. They also should raise events if required.
1295 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1297 * DataView.cs : simplify code with UnsortedList.
1299 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1301 * DataView.cs : Mostly reimplemented.
1302 - UpdateIndex() is invoked only when it is required (results in
1303 significant performance improvement).
1304 - Use SortedList and wrapper OptionalSortedList which switches
1305 between SortedList (with Sort) and UnsortedList (without Sort).
1306 - DataView itself now contains two collections for rowviews:
1307 Table rows based pool and AddNew() based cache. Consider those
1308 two collections in every members.
1309 - Reset() does not clear rows. Just invokes UpdateIndex().
1310 - Hook RowDeleting, ColumnChanging and ColumnChanged events in table
1311 which is required to handle state changes.
1312 - Reimplemented Find() and FindRows() because of internal changes.
1314 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1316 * DataTable.cs : Fixed row comparer. Even if every of the sort target
1317 columns are identical for two rows, they should not be regarded as
1318 the same unless they are Object.ReferenceEquals.
1320 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1322 * DataRowCollection.cs : on adding a row, should raise
1323 ChangingDataRow() as well as ChangedDataRow().
1325 2005-01-31 Sureshkumar T <tsureshkumar@novell.com>
1327 * DataRow.cs: SetParentRow (): use relation.ParentColumns &
1328 relation.ChildColumns instead of relation.ChildKeyConstraint.*
1329 because createConstrains flag may be false when creating data
1330 relations. Hack along with Ankit Jain.
1332 2005-01-31 Atsushi Enomoto <atsushi@ximian.com>
1334 * DataView.cs :some interface implementations.
1336 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1338 * DataView.cs : Add to table only when the row is not in the table.
1340 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1342 * DataView.cs : implemented FindRows() (btw we should not use
1343 DataTable since there are detached rows by AddNew().)
1345 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1348 Code cleanup: privatify some members, remove unused methods.
1349 Some event-based invocation methods should not raise NotImplemented.
1351 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1353 * DataSet.cs : ReadXml() became closer to MS behavior, being hacky.
1355 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1357 * XmlSchemaDataImporter.cs : empty element is not regarded as a column.
1359 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1361 * UniqueConstraint.cs : mostly reverted the previous patch + check
1362 IsPrimaryKey before validation.
1364 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1366 * DataView.cs : Fixed duplicate insertion to Hashtable.
1367 * UniqueConstraint.cs : Unique constrained pair of columns could be
1370 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1373 Don't do anything for Sort/ApplyDefaultSort/RowFilter/RowStateFilter
1374 when the same value is being set.
1375 Examined UpdateIndex() and marked FIXME where MS does not invoke it.
1376 Removed unused OnColumnChanged().
1377 Now store rowViewPool and reuse DataRowView objects.
1378 Optimized UpdateIndex() - avoid ArrayList. Avoid Haashtable.Rehash().
1380 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1382 * DataViewSettings.cs : no MonoTODO anymore.
1383 * DataViewManager.cs : pass itself to new DataView() (new ctor).
1384 * DataRowView.cs : GetHashCode() returns its Row's hash.
1385 * DataTablePropertyDescriptor.cs : use new ctor().
1386 * DataView.cs : added new ctor()s that accept DataViewManager.
1388 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1390 * DataView.cs, DataRowView.cs : AddNew() should not add the row to table
1391 (it is still detached). So handle those rows differntly.
1392 CancelEdit(), EndEdit() and Delete() propagates those events to
1393 DataView (and handle row collection).
1394 Eliminate "throw new Exception()".
1395 Don't catch all the exception thrown in ListChanged event.
1396 * DataTable.cs : made RowSorter as internal and use it in DataView.
1397 no need to pass DataRow[] to .ctor().
1399 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1401 * DataTable.cs : don't create DefaultView unless it is required. It
1402 significantly improves performance. (i.e. DataView perf. is sick ;-)
1404 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1406 * DataViewSetting.cs,
1407 DataViewSettingCollection.cs,
1408 DataViewManager.cs : implemented basic members.
1410 2005-01-26 Atsushi Enomoto <atsushi@ximian.com>
1412 * Node.cs, DataColumnPropertyDescriptor.cs, DataTable.cs :
1413 Eliminate "throw new Exception".
1415 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1417 * DataRow.cs : (set_Item) RowNotInTableExeption check should be done
1418 regardless of index existence.
1420 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1422 * DataTable.cs : use new IExpression.EvalBoolean() to avoid extraneous
1425 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
1427 * DataTable.cs: ImportRow :Do not add to rows collection if the
1428 import row is in detached state.
1430 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
1432 * DataRow.cs: CopyValuesToRow : set the column value with the
1433 default version of the given row.
1434 * DataTable.cs: ImportRow: Copy values before adding row.
1435 * DataSet.cs: AddChangedRow: Add the row to the table after
1438 Fixes bug #67317. Patch by Ankit Jain.
1440 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1442 * DataRowView.cs : Fixed IsEdit to reflect correct status of DataRow.
1443 * DataRow.cs : Expose editing status internally.
1445 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1447 * DataView.cs : missing attributes.
1449 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
1451 * DataRowView.cs : implemented CreateChildView().
1453 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
1455 * DataTable.cs, DataView.cs :
1456 Optimized DataView to compile only once RowFilter and Sort when
1457 those properties are set. To make it possible, extracted
1458 SortableColumn out of DataTable and added internal DataTable.Select()
1459 that accepts precompiled IExpression and SortableColumns[].
1461 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
1463 * DataColumn.cs : set_MaxLength is not allowed when it is mapped to
1464 SimpleContent. (However, it is weird but it never fails when we set
1465 ColumnMapping = MappingType.SimpleContent when we fhave MaxLength.)
1467 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
1469 * DataRow.cs : more Current -> Default fixes. Check if it should throw
1470 VersionNotFoundException. Patch by Ankit Jain.
1472 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
1474 * DataRow.cs : Default selects the right version for the current
1475 state of the row. Current is not always available. Also change
1476 that for GetParentRow(). Patch by Ankit Jain.
1478 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
1480 * DataTable.cs : CopyColumn() should copy AutoIncrement after
1481 DefaultValue, or it will raise an error in some cases.
1483 2005-01-20 Atsushi Enomoto <atsushi@ximian.com>
1485 * ConstraintCollection.cs : Add() should throw ArgumentException when
1486 the argument constraint fails validation.
1487 DataTable.cs : set_PrimaryKey should throw ArgumentException when
1488 the argument contains constraints which fail validation.
1490 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
1492 * DataRelationCollection.cs:
1494 Method Remove : Donot throw exception if DataRelation argument is
1495 null in DataRelationCollection.Remove method.
1497 Method RemoveAt : Exception should be IndexOutOfRangeException if
1498 row index is not in list range.
1500 Fixes nunit failures DataRelationCollection.Remove and
1501 DataRelationCollection.RemoveAt.
1503 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
1505 * ConstraintCollection.cs: Donot throw exception if constraints
1506 are null in AddRange method. Check for null before using the
1511 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
1513 * XmlDataInferenceLoader.cs,
1514 XmlDataReader.cs : Check if the XmlReader (node) represents DataSet
1515 or a table, reusing code block in XmlDataInferenceLoader.
1516 This fixes bug #60118.
1518 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
1520 * XmlDiffLoader.cs : Ankit Jain <radical@imt.ac.in> has a conflicting
1521 patches and some good catches. Some attributes should be skipped,
1522 and loaded value must be typed.
1524 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
1527 XmlDataInferenceLoader.cs,
1528 XmlDataReader.cs : use common const for http://www.w3.org/2000/xmlns/.
1529 * XmlDiffLoader.cs : It was not handling attributes. Fixed bug #70961.
1531 2005-01-18 Sureshkumar T <tsureshkumar@novell.com>
1533 Fix for bug #66838. This patch is submitted by "Ankit Jain"
1534 <radical@corewars.org> and refactored.
1536 * DataRow.cs: Allows to set a parent row even if the row is in
1539 * DataRelation.cs: method "UpdateConstraints" is added to check
1540 and create missing keys when adding a relation. This is refactored
1541 approach from DataRelationCollection.Add method.
1543 * DataRelationCollection.cs: AddCore methods of all relation types
1544 are synchronized. A Check for existing constraints is
1545 done. Relation is added to the list only if all checks are passed.
1547 2004-01-18 Atsushi Enomoto <atsushi@ximian.com>
1549 * DataColumnCollection.cs : Clear() throws ArgumentException that
1550 wraps thrown innerException.
1551 * XmlSchemaDataImporter.cs : removed FIXMEs.
1553 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
1555 * DataSet.cs : When serializing DataTable, BuildSchema() is passed
1556 null relation collections.
1557 Quick fix for XmlSerializer deserialization. It does not require
1558 XML Schema included.
1560 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
1563 CustomDataClassGenerator.cs :
1564 In DataSet class, IXmlSerializable.GetSchema() returns null.
1565 In strongly-typed class, it returns schema.
1567 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
1569 * XmlDataInferenceLoader.cs : test driver class should be excluded.
1571 2004-12-01 Miguel de Icaza <miguel@ximian.com>
1573 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
1576 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
1578 * CustomDataClassGenerator.cs : generated foreign key constraint
1579 construction code was creating empty child columns and thus it
1580 was invalid. This fixes bug #69276 (patch by Martin Voelkle).
1582 2004-11-02 Atsushi Enomoto <atsushi@ximian.com>
1584 * CustomDataClassGenerator.cs : custom DataTable ctor should call
1585 InitializeFields(), and those DataColumns created by that method
1586 should take data type. This should fix bug #68972.
1588 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
1590 * DataSet.cs : Also clear UnhandledAttributes ArrayList before
1591 generating next attribute column schema. This fixes bug #68432.
1593 2004-10-14 Umadevi S <sumadevi@novell.com>
1594 * DataTable.cs : Corrected the Clone method to use Activator.CreateInstance so that the
1595 correct subclass is returned. This fixes bug #67631
1597 2004-10-14 Umadevi S <sumadevi@novell.com>
1598 * DataSet.cs : Corrected the Clone method to use Activator.CreateInstance so that the
1599 correct subclass is returned. This fixes bug #67627
1601 2004-10-13 Atsushi Enomoto <atsushi@ximian.com>
1603 * DataSet.cs : clear UnhandledAttributes ArrayList before generating
1604 next element column schema. This fixes bug #68256.
1606 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
1608 * DataSet.cs : now xs:schema contains xmlns="".
1609 This fixes bug #68008.
1611 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
1613 * DataSet.cs : DBNull attribute column should not be written as
1614 empty attribute. This fixes bug #68007.
1616 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
1618 * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
1619 DataColumn.ReadOnly was not handled. This fixes bug #68005.
1620 Attribute defaultValue was not handled too.
1622 2004-10-07 Atsushi Enomoto <atsushi@ximian.com>
1625 - When AllowDBNull is false on attribute DataColumn, its schema
1626 should contain use="required". This fixes bug #66792.
1627 - If MaxLength is set on attribute DataColumn, the mapped schema
1628 type should contain maxLength facet. This fixes bug #66793.
1630 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
1632 * DataSet.cs : For a row, when a relation is not nested, then it is
1633 still output target since it won't be written as a child of its
1634 parent. It fixes bug #66379.
1636 2004-10-03 Atsushi Enomoto <atsushi@ximian.com>
1638 * DataSet.cs : Attribute constraint field XPath must be written as
1639 @blah. This fixes bug #66366.
1641 2004-09-28 Umadevi S <sumadevi@novell.com>
1642 * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
1644 2004-09-24 Sureshkumar T <tsureshkumar@novell.com>
1646 * DataSet.cs : Don't check constraints for dataset clear
1647 * DataRowCollection.cs : check for EnforceConstraints flag
1648 before checking foriegn key constraints in Clear method
1649 * DataTable.cs : Redundant checking removed in Clear method as it is
1650 checked in DataRowCollection.Clear method.
1653 2004-09-19 Sureshkumar T <tsureshkumar@novell.com>
1654 * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
1655 hence, adding a row cache is necessary if the original row happens to be current.
1658 2004-08-23 Martin Baulig <martin@ximian.com>
1660 * XmlDataInferenceLoader.cs (Driver): Make this class internal,
1663 2004-08-18 Umadevi S <sumadevi@novell.com>
1664 * DataView.cs - Completed most of the event handling.
1665 Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
1666 Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
1667 * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
1669 2004-08-06 Atsushi Enomoto <atsushi@ximian.com>
1671 * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
1673 2004-08-05 Atsushi Enomoto <atsushi@ximian.com>
1675 * XmlConstants.cs : Added constants for "msprop" support.
1676 * DataSet.cs : ExtendedProperties should be written in the schema.
1677 This fixes bug #61233.
1679 2004-07-27 Atsushi Enomoto <atsushi@ximian.com>
1681 * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
1682 used. There were also some culture dependency problems to write int.
1684 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
1686 * XmlDataInferenceLoader.cs : It was not always filling relation
1687 child table information correctly. This fixes bug #60742.
1689 2004-06-23 Umadevi S <sumadevi@novell.com>
1690 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
1692 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
1694 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
1695 schema is inside the document element (as created in XmlWriteMode
1696 .WriteSchema), it should read schema from that non-document element.
1697 This fixes one case reported in bug #60470.
1699 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
1701 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
1702 inference target. For bug #60470. (MS does not support schema
1703 document inference and results in unconsistent dataset structure.)
1705 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
1707 * DataTableCollection.cs : reset the table's DataSet to null when
1708 removing a table from this collection.
1709 * DataTable.cs : When Namespace is not specified explicitly, its
1710 Namespace property reflects DataSet's Namespace if exist.
1711 This fixes bug #60469.
1713 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
1715 * DBConcurrentcyException.cs: CRLF to LF
1716 * DataViewSetting.cs: CRLF to LF
1718 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
1720 * DataViewSetting.cs: renamed fields to match MS.NET
1722 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
1724 * DBConcurrencyException.cs: fixed serialization compatibility with
1727 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1729 * ChangeLog : Fix for misspelled words.
1731 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1733 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
1735 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1738 - Table stores default values for columns in special default values row.
1739 It is allocated once (in NewRow).
1740 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
1741 - OnRemoveColumn has nothing to perform by now.
1743 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1746 - Changed access of original, current and proposed indexes to internal.
1747 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
1748 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
1749 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
1750 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
1751 Care about Null and DBNull values is now in DataContainer.
1752 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
1753 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
1754 - Fix in CopyState : clone column errors.
1755 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
1757 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1759 * DataColumnCollection.cs :
1760 - Fix : Add() now delegates to Add(DataColumn).
1761 - autoIncrement list holds DataColumn objects, and not just column names.
1763 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1766 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
1767 - DefaultValue fixes. Default value from now on is also stored in special record in
1768 DataTable, so we're able to set default value for the column faster (typed).
1771 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
1773 * DataSet.cs : children of non-root rows were not properly written.
1776 2004-06-10 Umadevi S <sumadevi@novell.com>
1777 * DataRelation.cs - Constructor
1778 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
1780 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
1782 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
1784 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
1786 * Constraint.cs: marked methods internal to fix public API
1787 * ConstraintCollection.cs: to fix public API, use
1788 DataTable.fInitInProgress to check whether initialization
1789 of DataTable is in progress
1790 * DataColumn.cs: added stubs for missing methods
1791 * DataRowBuilder.cs: marked Table property internal to
1793 * DataSet.cs: removed extra empty destructor, marked
1794 OnMergeFailed internal to fix public API
1795 * DataTable.cs: use fInitInProgress field to hold init
1796 status, to match MS.NET
1797 * DataView.cs: added missing attributes on IsOpen
1799 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
1801 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
1802 in XmlNamespaceManager.
1804 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
1806 * DataSet.cs : complex table content child was not properly added
1807 when it is the only one child in the parent table. Fixed bug #53959.
1809 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
1810 * DataTableTypeConverter.cs: added
1811 * DataView.cs: added missing attribute on Table property
1812 * DataViewManager.cs: moved attribute to correct property
1813 * UniqueConstraint.cs: removed extra ReadOnly attribute from
1814 IsPrimaryKey property
1816 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
1818 * DataRow.cs : ColumnsChanged event is not required in .ctor().
1820 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
1822 * XmlDataReader.cs : type change is required before setting value
1825 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1827 * DataSet.cs : Loop-break of the last fix was incorrect.
1829 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1831 * DataSet.cs : When a row has no parent row but the table has parent
1832 relation(s), that row had been always ignored.
1834 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1836 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
1837 rejected same-named tables in different hierarchy. Thanks to Boris.
1839 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1841 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
1842 infinite loop. Thanks to Boris for this fix.
1844 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1846 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
1847 Thanks to Boris for this fix.
1849 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
1851 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
1852 for ReadXml(). Thanks to Boris.
1854 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
1856 - CheckReadOnlyStatus : use typed (and faster comparing).
1857 - EndEdit : bug fix - do not dispose record if it holds original version.
1858 - SetValuesFromDataRecord : Take care about autoincrement columns.
1861 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
1863 * MergeManager.cs : don't output debug message to Console.
1865 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
1867 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
1868 structure. Thanks to Boris Kirzner for the fix.
1870 2004-05-27 Umadevi S <sumadevi@novell.com>
1871 * DataRelationCollection.cs - fixed nunit test errors
1873 2004-05-27 Umadevi S <sumadevi@novell.com>
1874 * DataTableCollection.cs - fixed nunit test errors
1876 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1878 * DataColumnCollection.cs : NullReferenceException was thrown when
1879 the table was not found.
1880 * DataRowCollection.cs :
1881 Find() just returns null for null value under MS.NET 1.1.
1882 RemoveAt() should also avoid to call AcceptChanges() like Remove().
1883 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
1884 directly under MS.NET (for nunit test).
1886 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1888 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
1889 caused problem on qualified name to get schema Field name.
1891 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1893 * XmlDataReader.cs : Now data reader is namespace aware in all places.
1894 When table's namespace is different, it entered to infinite loop.
1896 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1897 * MergeManager.cs : AdjustSchema now updates by reference new created table,
1898 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
1901 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1903 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
1904 * DataColumnCollection.cs : fixed parantethes.
1906 - AcceptChanges : do nothing if row state is unchanged.
1907 - GetChildRows, GetParentRows : bug fix (use correct index).
1908 * DataRowCollection.cs : bug fix (compare all row's values).
1909 * DataTable.cs : bug fix (use correct row version).
1911 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1913 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
1914 When content type is Mixed, text column is not required (it is
1915 required only when the complex type has no particle).
1916 "Repeated element" column is also created (considering maxOccurs=0
1917 and complex content extension).
1919 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1921 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
1924 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1926 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
1927 Fixed relation inference to consider attribute XPath.
1929 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
1931 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
1934 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1936 * DataColumn.cs - removed default member attribute.
1938 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1941 DataColumnChangeEventArgs.cs,
1942 DataColumnCollection.cs,
1944 DataRowCollection.cs,
1946 Index.cs : Data storage in the row is redesigned. Now data is stored in
1947 typed containers inside DataColumn. Row holds its versions as indexes inside
1948 each of data container, accessed through the row that holds it.
1950 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1952 * UniqueConstraint.cs - added comment.
1954 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
1956 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
1959 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
1962 XmlDataInferenceLoader.cs,
1964 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
1965 XmlEncode every local name to write. This should fix bug #58268.
1967 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
1969 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
1970 Supported repeated elements. Removed MonoTODOs.
1971 * XmlDataInferenceLoader.cs : Design change to support ignored
1972 namespace and repeated elements.
1973 * XmlSchemaDataImporter.cs : Added mapping support classes.
1975 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
1977 * CustomDataClassGenerator.cs :
1978 Added property parent "[foo]Row" and children "Get[foo]Row" support
1979 for custom DataRow classes.
1980 Fixed DataColumn property accessibility (public --> internal).
1982 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1984 * CustomDataClassGenerator.cs :
1985 - Put classes inside custom DataSet class.
1986 - Added automatic DataRelation creation support.
1987 - Added Constraints creation support. That is done separate from
1988 relations, since they might be independently created.
1989 - Added non-MS public DataRelation fields.
1990 - Removed extraneous "DataRelation type generation" code.
1991 - Fixed custom_dataset.Initialize() not to create "c" field that
1992 was created more than once.
1993 - Implemented AddxxxRow() that takes parameters for every column.
1995 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1997 * XmlSchemaDataImporter.cs : When primary key is used more than once,
1998 DataRelation borked because of empty parent column name.
2000 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2002 * XmlSchemaDataImporter.cs : When Creating constraints with related
2003 to DataRelation creation, also set PrimaryKey to the parent table.
2005 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2007 * XmlSchemaDataImporter.cs :
2008 Design change to add indirect table and relation structures.
2009 Support for "relation" annotation for local element.
2010 Support for repeatable simple element column (maxOccurs > 1).
2011 Fixed handling of Nested property on DataRelation (for globally
2012 annotated relation, Nested is false).
2014 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
2016 * DataRow.cs : Added DataElement property to avoid storing every row-
2017 element mapping. It stored even for nodes that should be removed.
2019 2004-05-13 Umadevi S <sumadevi@novell.com>
2021 * RelationshipConverter.cs - Stubbed this class
2022 * DataRelation.cs - added TypeConveterAttribute
2024 2004-05-13 Umadevi S <sumadevi@novell.com>
2026 * DataColumnCollection.cs - Added ResDescriptionAttribute
2027 * DataRelation.cs - Added TypeConverterAttribute
2028 * DataRelationCollection.cs - Added DefaultPropertyAttribute
2029 * DataRowView.cs - Added GetHashCode method with a TODO tag
2030 * DataSet.cs - Added DesignerAttribute
2031 * DataView.cs - Added DesignerAttribute
2032 * DataViewManager.cs - Added DesignerAttribute
2033 * DataViewSetting.cs - Added TypeConverterAttribute
2035 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
2037 * DataRow.cs : Added XmlDataElement initialization code.
2039 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
2041 * XmlDataInferenceLoader.cs :
2042 It now requires XmlDocument as input. Improved identification of
2043 DataSet element. Removed extra lines.
2044 Moved boresome design notes to bottom of the source and
2045 added standalone runnable driver (not included on build).
2047 Update with related to the change above.
2048 WriteXml() should call Flush() after writing. This fixes bug #58327.
2049 * XmlSchemaDataImporter.cs :
2050 Improved indentification of DataSet element.
2052 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
2053 * DataTable: marked initStatus enum internal
2055 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
2056 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
2058 * DataRowView.cs: removed extra Error property
2059 * DataRow.cs: reduced accessibility of CollectionChanged method
2061 * DataColumnPropertyDescriptor.cs: made class internal
2062 * DataColumn.cs: removed extra TypeConvertorAttribute
2063 * ConstrainCollection.cs: marked PostEndInit method internal
2065 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
2068 In WriteXmlSchema(), when complex type contains simple type content
2069 attributes must not added to XmlSchemaComplexType directly. It
2070 causes schema compilation error.
2071 DataRelation should not be output when related columns are hidden.
2073 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
2075 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
2076 also expected to do ReadXml(), but I will remove that feature and
2077 support column reordering).
2078 * XmlSchemaDataImporter.cs : Always initialize dataset name.
2079 Always set Nested and primary key for parent table.
2080 * XmlDataReader.cs : Now it is used.
2081 Top level element might not match to dataset name nor any table
2082 name, but still possible to read content tables.
2083 Handle empty element correctly in some places.
2084 Handle Fragment mode (read up XmlReader to the end).
2085 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
2086 XmlDataInferenceLoader and XmlDataReader.
2088 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2091 Eliminated CRLF injection.
2092 More clear message in Clear().
2093 Updates reflecting XmlSchemaDataImporter change.
2094 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
2095 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
2096 but that depends on different behavior from ms.net).
2097 Set locale also for DataTable.
2098 Add xs:element only when target namespace matches to the
2099 element's namespace. Otherwise, add xs:import for external namespace.
2100 Put xs:sequence for dataset element's particle _only when_ actual
2103 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2105 * XmlDataReader.cs : Added. This class will work better when our
2106 schema inference and schema read engine gets improved. (It contains
2107 standalone testable Driver class.)
2109 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2111 * ForeignKeyConstraint.cs : Check step change. Existence then column
2112 validity. just for tests.
2113 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
2116 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2118 * DataSet.cs : Ignore empty content only when output type is diffgram.
2120 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2122 * CustomDataClassGenerator.cs : Modified that DataSet contains each
2123 DataTable field so that each table property can access them directly.
2124 (plus, modified standalone code driver code: shouldn't affect)
2126 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
2128 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
2130 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2132 * XmlSchemaDataImporter.cs :
2133 SimpleContent column support.
2134 Annotated relation support.
2135 Top-level element is counted only when its type is complex.
2136 xs:anyType is no longer treated as complex type.
2137 dataset existence is mandatory now.
2138 Improved DataType and DefaultValue support.
2139 Attribute namespace is properly handled now.
2140 Prohibited attribute is now treated as hidden column.
2141 Reject list or union simple type.
2143 Still incomplete 1) to read relationship in some cases, 2) to
2144 determine whether an element is dataset or table, 3) thus to
2145 exclude extraneous column, 4) to remove extraneous *_Id column.
2147 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2150 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
2151 serialization .ctor() (thus schema read/inference should be easier).
2152 DataRowSorter should consider Table's Locale.
2154 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2156 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
2157 use it instead of duplicating logic.
2159 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2161 * ConstraintCollection.cs :
2162 Use Table.CaseSensitive and Table.Locale to compare strings.
2163 Duplicate constraint name exception does not occur under .NET 1.1.
2165 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
2167 * XmlSchemaDataImporter.cs: Added little type check.
2169 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
2171 * DataSet.cs: Implemented support for runtime serialization. Fixed support
2172 for xml serialization.
2173 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
2175 2004-04-30 Umadevi S <sumadevi@novell.com>
2176 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
2177 * DataTableCollection.cs : Tested and removed TODO
2178 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
2180 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2182 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
2184 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2186 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
2187 constraint is defined on single column.
2189 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2191 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
2192 not ArgumentException (maybe changed after 1.1).
2194 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2196 * DataRow.cs : When Column was added and it was AutoIncrement column,
2197 it extended the item object array incorrectly.
2198 (Plus tiny comment and incorrect indentation fix.)
2200 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2202 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
2204 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2206 * DataRow.cs : Bug fix in CopyValuesToRow().
2208 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2210 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
2211 each of the columns should not be unique, but only all the constraint's columns together.
2213 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
2216 - Added using of list of autoIncrement columns
2217 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
2218 - Fix in CheckNullConstraints
2219 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
2220 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
2221 - Added onColumnRemoved() method to threat column removal accurately.
2223 * DataRowCollection.cs :
2224 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
2225 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
2228 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
2230 * DataColumnCollection.cs :
2231 - Perfomance fixes :
2232 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
2233 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
2234 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
2237 - Uses autoincrement list of a table
2239 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2241 * XmlDataLoader.cs : Even when it should ignore schema, it was
2243 * XmlSchemaDataImporter.cs : DataRelation creation support.
2244 Improved "DataSet" element handing. When attributes are on the
2245 element, it is not a "DataSet" element.
2246 Fixed parent key column name.
2247 Unique name creation is not required. Just raise an error.
2248 Fill facet also for attribute types.
2250 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2252 * DataRow.cs : Null check for CheckReadOnlyStatus() and
2253 CheckNullConstraints(), with some coding guideline fixes.
2254 Type check should be done by Type instance comparison.
2256 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2258 * DataColumnCollection.cs : When add a column to the collection, fill
2259 auto-increment column.
2261 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
2263 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
2265 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
2267 * CustomDataClassGenerator.cs : Added.
2268 * TypedDataSetGenerator.cs : Implemented Generate().
2269 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
2270 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
2272 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
2274 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
2276 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
2278 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
2280 2004-04-23 Umadevi S (sumadevi@novell.com)
2281 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
2282 - Added error handling to the above methods
2284 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
2286 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
2287 the support is incomplete yet).
2288 * XmlDataLoader.cs :
2289 Reverted ReadModeSchema() argument change. XmlReadMode would be
2290 useful to handle IgnoreSchema.
2291 Don't overwrite DataSetName when mode is not such kind.
2292 Set Prefix and Namespace as well as DataSetName.
2293 AllowDBNull looks set false by default for element column.
2294 Set unique constraint as primary key when infering the table schema.
2296 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
2299 Never set null string for Prefix and Namespace.
2300 In InferXmlSchema() when null XmlReader is passed, just do nothing.
2301 In WriteXmlSchema(string), earlier try block.
2302 In BuildSchema(), try to add serialization namespaces for each
2303 namespaces in DataSet/DataTable/DataColumn.
2304 Removed namespace argument from WriteColumnAsElement() and don't
2305 overwrite when namespace is "". This fixes bug #57330.
2306 * DataColumn.cs : For Namespace and Prefix, never set null.
2308 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2310 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
2311 before creating and adding foreign key constraint and relation.
2313 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2315 * MergeManager.cs : In AdjustSchema() source table clone should be added
2316 and not the table itself.
2318 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2321 - CaseSensitive : Additional fix (removed unnesessary assignment).
2322 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
2324 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2326 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
2328 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
2331 - EndLoadData() : perfomance fix in case of null constraint violation
2332 during data load (also in DataRow.cs).
2333 - CaseSensitive : If DataTable belongs to DataSet it should always use
2334 DataSet.CaseSensitive untill explicitly changed.
2335 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
2338 - Pefromance fix in case of null constraint violation
2339 during data load (also in DataTable.cs).
2340 - CollectionChanged() : use correct column number after new DataColumn was added
2341 (differs in case some DataColumn was previosly removed).
2342 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
2344 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
2346 * DataColumnCollection.cs : Since unique constraint is added now
2347 in DataColumn.SetTable() the additional creation of constraint in
2348 DataColumnCollection.Add() is redundant and causes exception - fixed.
2350 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
2352 * XmlDataLoader.cs : Added "never add data rows" mode.
2353 Removed unused code. However, it is temporary fixes to unify
2354 ReadXml() and InferXmlSchema().
2355 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
2357 I'll create another XmlDataLoader since there are many problems
2358 such that 1) it is too waste to read the entire xml into an
2359 XmlDocument, 2) it does not handle attributes correctly, and 3) it
2360 must handle "ignored namespaces".
2362 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
2364 * Added XmlSchemaDataImporter.cs (new schema reader).
2365 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
2366 for ReadXmlSchema().
2367 Let schema reading work to ReadXmlSchema().
2368 Don't return ReadSchema when argument read mode was DiffGram.
2370 2004-04-15 Umadevi S (sumadevi@novell.com)
2371 * Updated Clone/Copy methods in DataSet along with Testcase
2372 * ForeignKeyConstraint.cs - special ctor implemented
2373 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).
2374 * Changes in ConstraintCollection.cs for the above
2375 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.
2378 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
2380 * XmlSchemaMapper.cs : set parent key and foreign key info to
2381 DataRelation when reading refkey constraints.
2382 Supply constraint name for fkey.
2384 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
2386 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
2387 mode is Auto, just ignore the schema if there is already schema info.
2388 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
2390 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
2393 - In MS output, XML declaration looks to have standalone decl (yes).
2394 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
2395 - ReadXml(reader, mode)
2396 1) return originally specified mode, instead of (always) Auto.
2397 2) Check empty reader.
2398 3) Check diffgram schema and content separately.
2399 4) When diffgram exists, remaining (the same-level) contents
2401 5) Similar fact should be applied, but somewhat different.
2402 InferSchema and IgnoreSchema just skips, Fragment reads both
2403 schema and content, others just reads schema.
2404 - Removed unused code.
2405 * XmlDataLoader.cs :
2406 - Read() should skip in some ReadMode.
2407 - Don't compare schema element name as case-insensitive (well,
2408 should schemas be checked here?)
2409 - Avoided BuildDocument() not to create confusing DataSet
2411 - Don't add any tables when reader has single element.
2412 * XmlDiffLoader.cs :
2413 When target table was not found, MS.NET doesn't raise an error.
2414 * XmlSchemaMapper.cs :
2415 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
2417 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
2420 - InferXmlSchema(): Throw explicit NotImplementedException now.
2421 - Don't put XML declaration everywhere. Write just for filename arg.
2422 - xmlns="" should not be written. Maybe WebService problem is
2423 because default namespace is overwritten. This patch will keep
2424 the WS problem away and actually fixes some unit tests (i.e. use
2425 explicit String.Empty for null namespace in WriteStartElement()).
2426 - MoveToContent() should always be called, not only when
2427 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
2428 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
2429 element. As to MSDN, diffgram does not contain schema.
2431 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2433 * DataTable.cs: made _initStatus private so that System.Data is CLS
2436 2004-04-13 Umadevi S <sumadevi@novell.com>
2437 * UniqueConstraint.cs:
2438 * ConstraintCollection.cs:
2440 - Implemented a Constructor for UniqueConstraint.cs
2441 - Used EndInit on DataTable to call a delegate which adds the
2442 constraints passed to the most recent call of AddRange().Used
2443 AddRange() on ConstraintCollection to check whether
2444 DataTable.BeginInit has occurred. If yes, save the argument
2445 constraint collection passed, then return. If no, Check whether the
2446 constraints are of type UniqueConstraint and initialized with the
2447 special constructor If yes Initialized the table property of this
2448 UniqueConstraint object with table assosciated with the current
2449 instance of ConstraintCollection class.
2451 2004-04-07 Marek Safar <marek.safar@seznam.cz>
2453 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
2455 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2458 * DataColumnCollection.cs:
2459 * DataRelationCollection.cs:
2460 * DataRowCollection.cs:
2461 * DataTableCollection.cs:
2462 * InternalDataCollectionBase.cs:
2463 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
2466 2004-04-05 Jackson Harper <jackson@ximian.com>
2468 * DataTable.cs: Add rows to the row list if there is no filter.
2470 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
2472 * DataColumn.cs : Setting Caption to null sets it to the empty string
2473 (ms.net behaviour, testcase is in DataColumnTest).
2475 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
2478 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
2480 * DataColumn.cs: In Expression setter, set the expression member even if
2481 it is an empty string.
2482 * DataSet.cs: Support serialization of byte[] columns.
2483 * XmlDataLoader.cs: Support deserialization of Guid columns.
2484 Set MappingType.Attribute to columns infered from attributes.
2486 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
2488 * ExpressionElements.cs : remove
2489 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
2490 Integration of new Mono.Data.SqlExpressions classes used in
2491 DataTable.{Select, Compute}.
2492 Fixes bug #55503 and lots of failures in DataTableTest.cs.
2494 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
2496 * Index.cs: Simple fix in ComparePartialRowNonUnique.
2497 This fixes bugs #56129 and #56014.
2499 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
2501 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
2502 stream after writing the dataset. This fixes bug #52581.
2503 Also added several writer.Close into finally blocks, so writers are properly
2504 closed in case of an exception.
2506 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2508 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
2509 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
2510 * ColumnTypeConverter.cs: Added stub
2511 * DefaultValueTypeConverter: Added stub
2512 * ConstraintConverter.cs: Added stub
2514 2004-03-04 Eran Domb <erand@mainsoft.com>
2516 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
2517 in MS.NET documentation (missing DataSet element etc).
2519 2004-03-04 Eran Domb <erand@mainsoft.com>
2522 * Index.cs : Rollback last changes.
2524 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
2526 * Index.cs : justa build fix.
2528 2004-03-03 Eran Domb <erand@mainsoft.com>
2531 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
2532 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
2533 This changes made for performance improvement.
2535 2004-02-08 Eran Domb <erand@mainsoft.com>
2537 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
2539 2004-02-08 Eran Domb <erand@mainsoft.com>
2541 * DataSet.cs: Fix some bugs in ReadXml().
2543 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
2545 * DataSet.cs: Added missing method that broke the build.
2547 2004-02-04 Eran Domb <erand@mainsoft.com>
2549 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
2551 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
2552 when all column are attributes (elements count is 0), we still want to add the relations. No relations
2553 can be on simple contents.
2554 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
2555 (AddForeignKeys) Check that the relation has constraints attach to it.
2556 * XmlConstants.cs : Added constant.
2558 2004-02-04 Eran Domb <erand@mainsoft.com>
2560 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
2561 DoWriteXmlSchema calls BuildSchema ().
2563 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
2565 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
2567 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
2569 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
2570 also be added to the dataset.
2571 In WriteTable(), do not write unchanged rows when writing the original
2572 version of the table.
2573 Added WriteIndividualTableContent(), for writing the contents of a single
2575 Changed BuildSchema and related methods, so it can generate a schema for
2576 any set of tables, not just the tables of the dataset (needed for
2577 single datatable serialization).
2578 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
2579 Also implemented some ReadXmlSchema methods.
2580 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
2581 instead of loading the full dataset in an XmlDocument. It is faster and
2582 saves memory. Also fixed several problems when generating the changes.
2583 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
2584 table serialization).
2586 2004-02-02 Eran Domb <erand@mainsoft.com>
2588 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
2589 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
2590 * DataTable.cs (NewRow): Create only one DataRowBuilder.
2591 Initiate new row with row id -1.
2592 * DataRow.cs : Add RowId property.
2593 * DataRowBuilder.cs : Add _rowId member.
2594 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
2596 2004-01-26 Eran Domb <erand@mainsoft.com>
2598 * XmlConstants.cs : Added some constants.
2599 * DataColumn.cs : Added a method to retrive AutoIncrement value.
2600 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
2601 parent table column.
2602 * XmlDiffLoader.cs : Convert the value comming from the xml.
2603 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
2604 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
2605 (ReadXmlSchemaElement) : Set the locale of the dataset.
2606 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
2607 (GetColumnType) : New method to get the column type from the attribute value.
2608 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
2609 and add the constraint to the table.
2610 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
2612 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
2613 Writing more information to the schema for interoperability with ms.net.
2614 Improve diffgarm writing mode.
2617 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
2619 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
2621 2004-01-21 Eran Domb <erand@mainsoft.com>
2623 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
2624 Do not set the child column to be AutoIncrement.
2625 Create the new column for the relation as MappingType.Hidden so they will not be serialized
2626 when writing the dataset to xml.
2628 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
2630 * Added missing TypedDataSetGenerator.cs.
2632 2004-01-08 Eran Domb <erand@mainsoft.com>
2634 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
2635 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
2636 InferSchema, ReadSchema and IgnoreSchema.
2637 * XmlDataLoader.cs : All modes use the same logic.
2638 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
2640 2004-01-06 Eran Domb <erand@mainsoft.com>
2642 * DataRelationCollection.cs : Use IndexOf in indexer.
2643 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
2644 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
2645 * XmlDiffLoader.cs : Reading nested tables.
2646 * XmlSchemaMapper.cs : Reading the relation.
2647 * XmlConstants.cs : Adding some constants.
2649 2004-01-05 Jackson Harper <jackson@ximian.com>
2651 * DataView.cs: Set readonly property of property descriptor. This
2654 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
2656 * DataRelationCollection.cs : Fixed incorrect generation of default
2658 * DataSet.cs : Added missing functionality in WriteXml().
2659 * XmlConstants.cs : Added new constants.
2661 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
2663 * DataSet.cs : Fixed incorrect WriteXml() signature.
2665 2003-12-18 Jackson Harper <jackson@ximian.com>
2667 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
2669 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
2671 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
2672 they take shape of xml. This fixed bug #52240
2674 2003-12-16 Tim Coleman <tim@timcoleman.com>
2675 * KeyRestrictionBehavior.cs:
2676 New stubs added for .NET 1.2
2680 2003-12-08 Eran Domb <erand@mainsoft.com>
2681 * DataColumn.cs (Expression) : Validate the expression.
2683 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
2684 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
2686 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
2687 (RejectChanges) : Detach row when state was Added.
2688 (CollectionChanged) : Fix a bug.
2690 * ExpressionElement (ValidateExpression) : Fix a bug.
2692 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
2693 a parent row in the parent table.
2694 (_validateColumns) : Fix bugs.
2696 * MergeManager.cs (AdjustSchema) : Fix a bug.
2698 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
2701 2003-11-30 Eran Domb <erand@mainsoft.com>
2702 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
2703 (Add) : Find if the new column name is the same as the one found in IndexOf.
2704 (IndexOf) : New method.
2705 (Contains) : Use new IndexOf.
2706 (IndexOf) : Use new IndexOf.
2708 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
2709 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
2711 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
2712 (Delete) : Detach row if the RowState was Added.
2713 (GetChildRows) : Get the array form the ChildTable.
2714 (GetParentRows) : Get the array from the ParenTable.
2716 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
2718 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
2720 * DataTable.cs (PrimaryKey) : Fix bugs.
2721 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
2723 * DataTableCollection.cs (Add) : Fix a bug.
2725 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
2726 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
2727 Some code style changes (tab instead of whit spaces, alignment, etc...).
2729 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
2731 * MergeManager.cs (AdjustSchema) : Fix a bug.
2735 2003-11-26 Miguel de Icaza <miguel@ximian.com>
2737 * DataSet.cs: Add a few more missing methods, code style updated
2740 2003-11-26 Tim Coleman <tim@timcoleman.com>
2742 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
2743 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
2744 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
2745 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
2746 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
2747 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
2748 * StatementCompletedEventHandler.cs UpdateOptions.cs:
2749 New classes added for NET_2_0
2750 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
2751 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
2752 Modifications to add new NET_2_0 functions
2754 2003-11-25 Tim Coleman <tim@timcoleman.com>
2758 2003-11-21 Pedro Martínez Juliá <yoros@wanadoo.es>
2760 * DataRow.cs: Detached row can be accesible (new rows from data
2761 table are detached). Closes but #51263.
2763 2003-11-19 Eran Domb <erand@mainsoft.com>
2764 * DataRow.cs : Throw exceptions if Row is Detached.
2765 (EndEdit) : Check that we are not in middle of ChangeEvent.
2766 (AcceptChanges) : Detach the row.
2768 * DataRelation.cs : throw correct exception.
2769 *UniqueConstraint.cs : throw correct exception.
2772 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
2774 * DataRow.cs: Use RemoveInternal instead of Remove because the last
2775 one uses Delete and AcceptChanges.
2777 * DataRowCollection.cs: When removing, Delete and AcceptChanges
2778 method from the row are called. Added an internal method that will
2779 be used by DataRow to "physically" remove the row from the list.
2781 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
2783 * DataRowCollection.cs: To follow the specification: Remove and
2784 RemoveAt should remove the row. But needed to call DeletingDataRow
2785 to prepare the deleting.
2787 * DataRow.cs: Don't call DeletingDataRow when it is called by the
2788 method Table.Rows.Remove.
2790 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
2792 * DataRowCollection.cs: Make the row be deleted by itself. If not,
2793 it fails because we need to call OnRowDeleting and OnRowDeleted. It
2794 is full implemented inside DataRow.
2796 2003-11-05 Eran Domb <erand@mainsoft.com>
2797 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
2799 2003-11-04 Eran Domb <erand@mainsoft.com>
2800 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
2802 (GetChildRows) : Adding some checks.
2803 (GetParentRows) : Adding some checks. Fix a bug in implementation.
2804 (SetParentRow) : Added implementation.
2806 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
2807 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
2808 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
2809 * MergeManager.cs : Check that the target table is not null.
2811 2003-10-27 Eran Domb <erand@mainsoft.com>
2812 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
2813 can be converted to the column type.
2815 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
2817 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
2818 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
2820 * DataRowCollection.cs (Add) : Fixing a bug.
2821 (Clear) : Before clearing the array check that there is no violation of FK constraint.
2823 * DataSet.cs (Prefix) : If value is null chage it to empty string.
2824 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
2826 * ExpressionElement : Adding support for IN expresion.
2828 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
2829 (Select) : Adding support for DataViewwRowState.
2831 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
2833 * MergeManager.cs (MergeRow) : Fix bugs.
2835 2003-10-27 Eran Domb <erand@mainsoft.com>
2836 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
2837 check null values when ending loading data.
2839 * DataSet.cs (RejectChanges) : Imlementation.
2840 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
2841 change it to empty string.
2843 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
2845 2003-10-22 Eran Domb <erand@mainsoft.com>
2846 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
2848 * ConstraintCollection.cs (RamoveAt): Change implemntation.
2850 * DataTableCollection (CanRemove): Removing cast to Constraint.
2852 2003-10-22 Eran Domb <erand@mainsoft.com>
2853 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
2854 (Clear): The collection was cleared without removing the relation from the parent and child tables.
2856 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
2857 (HasChanges, Reset): Imlementation.
2859 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
2860 This is because the we do not no when to turn off the flag.
2861 (Locale): Changing implementation to behave like ADO.NET.
2862 (AcceptChanges): Fix bug.
2863 (Clear): Check that this table is not referenced from a foreign key constraint.
2864 (Copy): Do not try to access a deleted row.
2865 (CopyProperties): Copy the PrimaryKey.
2866 (GetChanges, ImportRow): Implementation.
2867 (LoadDataRow): Adding implementation if the table has PrimaryKey.
2868 (ToString): Changing implementation to behave like ADO.NET.
2870 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
2872 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
2873 (HasErrors): Implementation.
2874 (Delete): Added checking for child rows of the deleted row.
2875 (EndEdit): Added checking for child row and firing events.
2876 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
2877 (GetColumnsInError): Added a check for null values in column error.
2878 (HasVersion): Added special treatment for special RowState.
2879 (CollectionChanged): More checks to avoid NullReferenceException.
2881 * DataRowCollection.cs (Remove): Fix a bug.
2884 2003-10-01 Duncan Mak <duncan@ximian.com>
2886 More patches from Eran Domb <erand@mainsoft.com>.
2888 * MergeManager.cs: New file.
2890 * DataRelationCollection.cs (AddCore): Check that a
2891 UniqueConstraint is already exists. It loops over the Relations
2892 instead of the Constraints.
2893 (Add, AddCore): The relation was added twice.
2895 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
2897 2003-09-30 Duncan Mak <duncan@ximian.com>
2899 Patches from Eran Domb <erand@mainsoft.com>.
2901 * DataRelation.cs (constructor): When the name of the relation is
2902 null, it should return an empty, not "Relation".
2904 * DataRow.cs (AcceptChanges): Added special case for
2906 (CancelEdit): Set editing flag to false.
2907 (IsNull): Check that the value is DBNull.
2909 * DataRowCollection.cs (Add): There was no check that the table of
2910 the collection is owned by a DataSet.
2912 * DataSet.cs (OnMergeFailed): Added.
2914 * UniqueConstraint.cs (AssertConstraint): There was no check that
2915 values in the row are not null, where it is a primary key
2916 column. Also check that the row has a proposed version, if not,
2917 get the current version when we compare the rows.
2919 2003-09-25 Duncan Mak <duncan@ximian.com>
2921 Patches from Eran Domb <erand@mainsoft.com>.
2923 * DataColumn.cs (Unique): Implemented.
2926 * ConstraintCollection.cs:
2927 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
2928 an Exception thrown. Details:
2929 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
2931 * DataRowCollection.cs (Add): There is no checking that there is
2932 no violation of the unique constrains.
2934 * UniqueConstraint.cs (AssertConstraint): There is no checking on
2935 all columns in the constraint.
2937 * DataTableCollection (Add): Correctly throw an Exception, more
2939 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
2940 (Remove, RemoveAt): Implemented.
2942 2003-07-31 Duncan Mak <duncan@ximian.com>
2944 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
2946 2003-07-25 Ravi Pratap <ravi@ximian.com>
2948 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
2949 method on a delegate is disallowed - fix this.
2951 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
2953 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
2954 xml serialization. Modified method of writing schema. Now it creates
2955 a XmlSchema object and serializes it using XmlSerializer.
2956 * XmlConstants.cs: Added constants for data type names.
2957 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
2958 type specified in the column.
2960 2003-04-20 Alan Tam <Tam@SiuLung.com>
2962 * DataRelationCollection.cs: Fix a bug that prevent relations
2963 from being added via DataSet.
2965 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
2967 * UniqueConstraint.cs: one tiny fix.
2969 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
2971 * DataTable.cs: Remove UniqueConstraints when adding new ones
2973 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
2975 * DataColumnCollection.cs: Little 'case sensitive' fix
2977 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
2979 * DataRow.cs: AutoIncrement handling to Constructor
2980 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
2982 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2984 * DataTable.cs: Some fixes to PrimaryKey etc...
2985 * UniqueConstraint.cs: Little clean up
2987 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2989 * DataTable.cs: Tiny fix to ToString () -method
2991 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2993 * ConstraintCollection.cs: Little fix.
2994 * DataColumn.cs: Added new internal method SetUnique()
2995 * UniqueConstraint.cs: some little fixes
2997 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
2999 * DataRowCollection.cs: Bugfixes, implementation,...
3001 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
3003 * DataColumn.cs: If DataType if set to something else than short, int
3004 or long and AutoIncrement is true, AutoIncrement is must set to false.
3006 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3009 (BeginEdit): fixed array bound problem when a column has been added.
3010 (EndEdit): just assign proposed to current as proposed is set to null.
3011 This also fixes another array boudn problem.
3013 2003-03-21 Alan Tam <Tam@SiuLung.com>
3015 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
3016 EndEdit and AcceptChanges to act correctly according to DataRowState
3018 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
3019 attached and detached from the collection.
3021 2003-03-20 Alan Tam <Tam@SiuLung.com>
3023 * DataColumn.cs: Store empty string for Expression when null is passed in.
3024 Classes generated by XSD.exe passes null by default.
3026 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
3028 * DataColumnCollection.cs: Tiny clean up
3030 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
3032 * DataColumn.cs: little fixes.
3033 * DataColumnCollection.cs: Lots of little fixes and improvments.
3035 2003-03-12 Alan Tam <Tam@SiuLung.com>
3037 * DataSet.cs: Fixed a bug that the file written does not close correctly.
3039 2003-03-08 Alan Tam <Tam@SiuLung.com>
3041 * DataRelationCollection.cs: Removed the mis-overridden methods
3042 * DataRow.cs: Fixed an attribute
3043 * DataSet.cs: Fixed the modifiers
3045 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
3047 * DataTableCollection.cs: The Contains (string name),
3048 IndexOf (string name) methods, and item[string name] indexer
3049 now behave more like .NET with respect to case-sensitivity.
3050 That is if there is an exactly matching item then this one is used.
3051 If there is only one item differing in case then it used.
3052 If there are more than one item differing in case then
3053 Contains returns false, IndexOf returns -1, and item[]
3054 throws an ArgumentException.
3056 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
3058 * ExpressionElement.cs: More implementation.
3060 2003-02-28 Alan Tam <Tam@SiuLung.com>
3061 * DataSet.cs: Changed WriteTable so that it now calls the newly written
3062 WriteObjectXml to direct the call to the respective XmlConvert method.
3063 This fixes the wrong format written to XML files of bool, float,
3064 double, DateTime and TimeSpan types.
3066 2003-02-25 Alan Tam <Tam@SiuLung.com>
3068 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
3069 * DataRelationCollection.cs: Implemented AddRange and Contains.
3070 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
3071 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
3072 Reimplemented most Add methods to eliminate duplicated checks.
3073 Centralized RelationName generation procedure in GetNextDefaultRelationName.
3075 2003-02-25 Alan Tam <Tam@SiuLung.com>
3077 * DataColumn.cs: Fixed wrong storage representation of Expression
3078 (using empty string instead of null) so that ToString() returns nothing.
3079 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
3080 auto column naming now works as expected. Reimplemented some Add methods
3081 to eliminate code duplication.
3083 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
3085 * DataTable.cs: DataTable.CaseSensitive follows parent
3086 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
3087 been changed directly from DataTable
3089 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
3091 * DataSet.cs: When CaseSensitive property is changed all of the Tables
3092 of DataSet have to change too
3094 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
3096 * InternalDataCollectionBase.cs: revert change to field
3099 * DataViewManager.cs
3102 * DataSet.cs: commented use of DesignerAttribute
3103 because it broke the build. According to MSDN,
3104 DesignerAttribute does not have a zero-argument constructor
3106 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
3108 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
3110 2003-02-18 Alan Tam <Tam@SiuLung.com>
3112 * DataRow.cs: Implemented GetParentRow and GetParentRows.
3113 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
3114 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
3115 RaisePropertyChanging.
3116 * DataTable.cs: Implemented NewRowArray.
3117 * DataTablePropertyDescriptor: Fixed a modifier.
3118 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
3119 * PropertyCollection.cs: Minor fix.
3120 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
3121 * DataRelation.cs DataRelationCollection.cs DataRow.cs
3122 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
3123 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
3124 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
3125 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
3126 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
3128 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
3130 * ExpressionElement.cs: More implementation
3132 2003-02-05 Alan Tam <Tam@SiuLung.com>
3134 * DataSet.cs: Added framework for DataSet.Update Implemented missing
3135 methods GetSchemaSerializable, GetSerializationData,
3136 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
3138 * DataTable.cs: Implemented missing methods CreateInstance and
3139 GetRowType for DataTable
3141 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
3143 * DataSet.cs: Implemented private method MapType for
3144 mapping datatypes for XmlSchema
3146 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3148 * DataView.cs: implemented Dispose.
3150 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
3152 * ExpressionElement.cs: Added new file. This file is for parsing
3153 and DataData.Select () -methods and DataColumn.Expression -property
3154 * DataTable.cs: Implemented Select(string) -method
3156 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
3158 * DataSet.cs: One little fix to writing xml
3160 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
3162 * XmlSchemaMapper.cs: Some fixes.
3163 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
3166 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
3168 * UniqueConstraint.cs: Do not set columns Unique property true
3170 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
3172 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
3174 * DataTableCollection.cs: Now names new DataTable if it doesn't
3175 already have a name.
3177 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
3179 * XmlSchemaMapper.cs: Improvments.
3180 * XmlConstaints.cs: Added more constants.
3181 * DataSet.cs: Improvments of reading and writing xml
3182 * DataColumn.cs: Added default values of properties.
3184 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
3186 * XmlSchemaMapper.cs: Some improvments
3188 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
3190 * DataRowCollection.cs: Added IndexOutOfRangeException
3191 * DataTableCollection.cs: Added OnCollectionChanging and
3192 OnCollectionChanged events.
3193 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
3194 * DataTable.cs: Implemented Copy () and Clone () methods.
3195 * XmlDataLoader.cs: some fixes.
3196 * XmlSchemaMapper.cs: comments.
3198 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3200 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
3202 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3204 * DataColumnPropertyDescriptor.cs: fixed typo.
3205 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
3206 to get the DataViewManager and removed TablePD class.
3207 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
3208 suggested by danmorg.
3210 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
3212 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
3214 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
3215 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
3217 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3219 * DataView.cs: made dataViewManager internal.
3220 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
3221 properties of the object, but the values of the columns present in a
3224 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
3225 which returns a PropertyDescriptorCollection. Created a new class
3226 derived from PropertyDescriptor that treats Table as an object whose
3227 properties are DataRowView.
3229 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3231 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
3233 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3235 * DataColumn.cs: ExtendedProperties is by default !null-
3237 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3239 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
3240 set column's ordinal.
3242 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
3245 * XmlDataLoader.cs: XmlReader closing fixes.
3246 * XmlSchemaReader.cs: Added support for ref=
3248 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
3251 - Added XmlReader and XmlWriter Closing.
3252 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
3253 * XmlSchemaMapper.cs
3254 - Much better way IMHO to map xmlschema than the old one in
3255 DataSet.cs. Its, more flexible, cleaner, ...
3257 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
3259 * XmlDataLoader.cs: Reading diffgrams.
3261 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
3263 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
3264 * DataTable.cs: Added ChanginDataColumn () for triggering
3265 DataColumnChanging event
3267 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3269 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
3271 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3273 * DataSet.cs: Indentations to WriteXml ()
3275 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
3278 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
3279 class XmlDataLoader.cs
3281 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
3283 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
3285 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
3287 * DataSet.cs: Started to implement ReadXml-methods.
3289 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3291 * DataSet.cs: implemented DefaultViewManager and GetList.
3293 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
3294 DataList in System.Web.
3296 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
3299 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
3302 * DataTable.cs: Fixed NullException (rollback -event)
3303 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
3305 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
3308 * DataRowCollection.cs: Moved event triggering from DataRow to
3311 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
3313 * DataSet.cs: Little fix to WriteTable () -method
3314 and DoReadXmlSchema () -method.
3316 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
3318 * DataSet.cs: Clean up to reading xmlschema. This looks much better
3319 now (work better too), but it not working correctly yet.
3321 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
3324 * DataRowCollection.cs: Added some event handlins stuff.
3325 * DataSet.cs: Some fixes.
3326 * DataTable.cs: Added event handlers.
3328 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
3330 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
3332 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
3334 * System.Data/DataRow.cs: Added internal property XmlDataID
3336 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
3338 * DataSystem.Data.DataTableCollection.cs:
3339 Removed HashTable. There could be situations where DataTable
3340 is added to collection before it hava TableName. So using
3341 HashTable is impossible.
3343 2002-11-19 Carlos Guzmán Álvarez <carlosga@telefonica.net>
3345 * DataRow.cs: an object that is equal to null
3346 should be allowed to be set in this indexer too
3349 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
3351 * DataColumnPropertyDescriptor.cs: added file
3353 * System.Data/DataRowView.cs: started implementation
3355 * DataTable.cs: stubbed more interfaces. Implemented
3356 IListSource.GetList()
3358 * DataView.cs: stubbed more interfaces. Implemented
3359 some properties and methods: GetEnumerator(),
3360 ITypedList.GetItemProperties, Item indexer, CopyTo()
3362 2002-05-18 Nick Drochak <ndrochak@gol.com>
3364 * DataRow.cs: Fix typo.