1 2006-10-18 Nagappan A <anagappan@novell.com>
3 * ForeignKeyConstraint.cs (_validateColumns): Parent and child
4 columns can't be the same column - Exception, bug # 79689
6 2006-10-13 Nagappan A <anagappan@novell.com>
8 * DataTable.cs (DeserializeConstraints): Fine tuned the
9 serialization and deserialization of constraints.
11 * DataRelationCollection.cs (Contains): Fixes bug
12 #79233. DuplicateNameException when two relations for different
13 DataTables in DataSet are defined
15 2006-10-06 Patrick Earl <mono@patearl.net>
17 * DataTable.cs, XmlTableWriter.cs, XmlSchemaWriter.cs, DataSet.cs:
18 Implemented DataTable.WriteXml
20 2006-09-26 Nagappan A <anagappan@novell.com>
22 * DataTable.cs, DataSet.cs, DataColumn.cs, Constraint.cs,
23 DataRow.cs: Implementation of Binary Serialization /
26 * DataTable.cs (RowsExist): Check rows based on version.
28 * DataRow.cs: Raise exception same as MS.NET. Thanks to
29 Hubert FONGARNAND <informatique.internet@fiducial.fr> for
32 2006-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
34 * DataSet.cs: added 2.0 stubs to solve typed dataset porting issues
36 2006-08-30 Nagappan A <anagappan@novell.com>
38 * DataRow.cs (EndEdit): DataRow.EndEdit emits RowChanged too
39 often. Fixes bug # 78885.
41 2006-08-14 Konstantin Triger <kostat@mainsoft.com>
43 * DataTableCollection.cs, DataRelationCollection.cs, DataRowCollection.cs,
44 DataColumnCollection.cs: implemented specialized CopyTo() method.
46 2006-07-26 Nagappan A <anagappan@novell.com>
48 * DataTable.cs (GetIndex): Fixes memory explode on
49 DataTable.Select - Bug # 77691.
51 2006-07-25 Nagappan A <anagappan@novell.com>
53 * DataView.cs (OnRowCollectionChanged): On DataTable.Clear,
54 setting rowCache to empty DataRowView. Fixes bug # 78610.
56 * DataTable.cs (AcceptChanges): Raises Reset event. Fixes bug #
59 2006-07-20 Senganal T <tsenganal@novell.com>
62 - Merge : moved the columntypecheck to AdjustSchema,
63 Remove the unncessary calls to Table.ResetIndexes.
64 - AdjustSchema : check for columntypes
65 Thanks to Deepak Kr Valechha for the patch
67 2006-07-17 Senganal T <tsenganal@novell.com>
70 - ToTable : Implemented all the overloads
71 - Equals : Implemented
72 - IBindingListView : Implemented the interface
74 2006-07-15 Senganal T <tsenganal@novell.com>
76 * DataTableCollection.cs :
77 - Contain,IndexOf,Remove,Add,Indexer : support for table
78 namespace. Remove redundant checks in Remove/Add.
80 2006-07-14 Senganal T <tsenganal@novell.com>
83 - SetOrdinal : Implemented
84 - Ordinal : added internal set
85 * DataColumnCollection.cs :
86 - Add : Set the column ordinals
87 - MoveColumn : Changes the position of column in the
90 2006-07-14 Senganal T <tsenganal@novell.com>
93 - Merge - Implement the merge methods
94 - Clone - Ensure column's DateTimeMode property is also copied
96 - DateTimeMode : Implemement
97 - DataTypeMatches : Added. In 2.0 profile, test DateTime
98 property when verifying column types.
100 - ctr : For DateTime columns, check DateTimeMode property
101 * ForeignKeyConstraint.cs :
102 - _validateColumns : For DateTime columns, check DateTimeMode
105 - Merge : Added. Overload to merge two tables
106 - ResolveColumns : Change the method to use a table instead of
108 - Renamed AdjustSchema to AdjustSchemaRelations
110 2006-07-13 Senganal T <tsenganal@novell.com>
113 - WriteTables : Remove some commented out code
114 - WriteTable : Fix the logic to skip the table data when the
115 table has a nested relation.
118 2006-07-12 Senganal T <tsenganal@novell.com>
120 * ConstraintCollection.cs :
121 - Remove (string): If constraint name is not found, throw exception
122 - Remove (Constraint): Set the ConstraintCollection of the removed
124 Thanks to Deepak Kr Velachha for reporting the bug.
126 2006-07-12 Senganal T <tsenganal@novell.com>
129 - LoadColumnChildren : If schema name is missing, skip the
131 Thanks to Deepak Kr Velachha for identifying the bug.
133 2006-07-11 Senganal T <tsenganal@novell.com>
135 * XmlSchemaWriter.cs :
136 - WriteTableType : If Relation.Nested is true, then nest the
137 table schemas. Correct the xml to add the table element within
138 the <Sequence> element.
139 - WriteChildRelations : Correct the Xml element name and
140 attributes. Close the attribute correctly.
142 * XmlSchemaDataImporter.cs :
143 - GenerateRelationship : When creating the relations, if
144 ParentColumn exists but Corr ChildCol is null, create a child
145 Column with the same name and type as the parent column.
146 - Renamed DataSetDefinesPrimaryKey to DataSetDefinesKey
147 - DataSetDefinesKey : if either xsd:key or xsd:keyref is
148 defined for the dataset, do not manually create the relations.
149 - AddParentKeyColumn : if Columnname already exists, use
150 colname_0 instead of throwing an exception.
151 - FillDataColumnRepeatedSimpleElement : Do not set the Unique
152 value as it creates a constraint by default. The unique value
153 is automatically set when pk is set.
154 - CreateChildColumns : Added. Creates a ChildColumn duplicating
155 ParentColumn properties.
157 2006-06-30 Senganal T <tsenganal@novell.com>
160 - SetAdded, SetModified : new methods in 2.0
162 2006-06-30 Senganal T <tsenganal@novell.com>
163 * SerializationFormat.cs, DataSetDateTime.cs, DataTableNewRowEventArgs.cs,
164 DataTableNewRowEventHandler.cs : Added
165 * SyntaxErrorException.cs EvaluateException.cs StrongTypingException.cs
166 IsolationLevel.cs ReadOnlyException.cs DataTableCollection.cs
167 DataRowState.cs MissingPrimaryKeyException.cs DeletedRowInaccessibleException.cs
168 DuplicateNameException.cs PropertyAttributes.cs StatementType.cs
169 VersionNotFoundException.cs FillErrorEventHandler.cs DataRowChangeEventHandler.cs
170 XmlWriteMode.cs InvalidExpressionException.cs StateChangeEventHandler.cs
171 DbType.cs DataColumnChangeEventHandler.cs KeyRestrictionBehavior.cs
172 ConnectionState.cs SchemaType.cs MergeFailedEventHandler.cs SqlDbType.cs
173 DataRowVersion.cs ForeignKeyConstraint.cs DBConcurrencyException.cs
174 OperationAbortedException.cs MissingSchemaAction.cs DataTableClearEventHandler.cs
175 DataRowView.cs DataRowAction.cs ConstraintCollection.cs DataTableReader.cs
176 LoadOption.cs InvalidConstraintException.cs InternalDataCollectionBase.cs
177 ParameterDirection.cs AcceptRejectRule.cs UpdateRowSource.cs XmlReadMode.cs
178 TypedDataSetGenerator.cs RowNotInTableException.cs TypeDataSetGeneratorException.cs
179 InRowChangingEventException.cs MissingMappingAction.cs NoNullAllowedException.cs
180 CommandBehavior.cs PropertyCollection.cs CommandType.cs
181 UpdateStatus.cs ConflictOption.cs DataViewRowState.cs Rule.cs
182 DataColumnCollection.cs :
185 2006-06-27 Senganal T <tsenganal@novell.com>
187 * DataSet.cs, DataTable.cs : implement CreateDataReader methods
188 * InternalDataCollectionBase.cs
189 - ToArray () : helper method
190 * DataTableReader.cs :
191 - GetSchemaTable : set the schema info correctly
192 - GetProvider*, GetChars, GetBytes, GetValues :
193 Implemented the methods
194 - GetName : return the name of corresponding schema.
195 - ValidateSchemaIntact, OnColumnCollectionChanged,
197 Listen and raise expception if schema changes
199 2006-06-21 Chris Toshok <toshok@ximian.com>
201 * DataView.cs: update the index after we successfully add the new
202 row. This keeps the dataview's row view count in sync with the
205 2006-06-20 Chris Toshok <toshok@ximian.com>
207 * DataView.cs: the PropertyDescriptorCollection returned by
208 ITyepdList.GetItemProperties should include the child relations of
209 our table, in order to match MS's behavior.
211 * DataViewManager.cs: ICollection.Count property is always 1.
213 2006-06-15 Senganal T <tsenganal@novell.com>
216 - Select : If Sort String is not provided, sort the result
217 DataRows in Ascending Order of the Columns used in the filter
219 2006-06-15 Senganal T <tsenganal@novell.com>
222 - InternalEnforceConstraints : Check if any null constraints
223 are violated. Throw ConstraintException only after all the errors
226 - EnforceConstraints : Move away the logic to check for
227 NullConstraintViolation.
228 - AssertNotNullConstraint : Checks for Null Constraint
230 - EndLoadData : Do not throw any exceptions here. All the
231 errors have to be found and RowErrors set before throwing the
234 - ImportRecrod : Check the values of the row for any null
236 - SetColumnError : If the error for column is already set,
237 do not add a new error but edit the existing error.
238 - CheckValue : Set the NullConstraintViolation flag if either
239 table is being loaded or if EnforceConstraints is set to
241 * Constraint.cs : Do not throw exception when EnforceConstraints is
242 set to false or table is being loaded.
243 * UniqueConstraint.cs : Correct the error message. Set ColumnErrors
244 along with the RowError.
246 2006-05-31 Gert Driesen <drieseng@users.sourceforge.net>
248 * DataTable.cs: Renamed initInProgress to fInitInProgress. BeginInit
249 and EndInit must only be virtual in 2.0 profile. Set eol-style to CRLF.
251 2006-05-31 Senganal T <tsenganal@novell.com>
253 * XmlDataInferenceLoader.cs :
254 - InferTableElement : Repeated element should result in a single
256 Patch from Deepak Kr Velachha
258 2006-04-21 Senganal T <tsenganal@novell.com>
260 * DataRowCollection.cs :
261 - Find : If search on the table using PrimaryKey fails and if
262 index is not being maintained (during table load), search the
264 - Find (int) : Removed. Deadcode.
266 - Not necessary to delete each row from the Index.
267 Just reset the Indexes after cleaning up the row
269 - Simplify dependency check for child tables
272 - Do not use DataRowCollection.Find to search for
273 existing records as this wud check even newly loaded rows.
275 - Do not add new records to Index. Update Index only
276 if an existing record is modified. New records will be
277 taken care by EndLoadData.
279 2006-04-19 Senganal T <tsenganal@novell.com>
281 * XmlHelper.cs : A helper class for encoding/decoding schema names.
282 Caches the Schema names to minimize encoding/decoding operations and
283 duplicate strings created.
285 - Use XmlHelper for encoding/decoding schema names.
286 - Encode ConstraintNames when writing as xml.
289 * XmlDataInferenceLoader.cs
290 * XmlSchemaDataImporter.cs
291 - Use XmlHelper for encoding/decoding schema names.
292 * DataTableCollections : Minor code refactor.
293 * DataRow.cs : Create XmlElement only if required.
295 2006-04-07 Senganal T <tsenganal@novell.com>
298 - InternalEnforceConstraints() : Reset Indexes of all tables
299 before validating constraints. Fixes #78010
301 2006-03-04 Boris Kirzner <borisk@mainsoft.com>
302 * TypeDataSetGeneratorException.cs: fix .Net Soap serialization compatibility.
304 2006-03-25 Senganal T <tsenganal@novell.com>
307 - RejectChanges : When row is in Deleted state, add the row back to
308 Indexes and Validate the row.
311 2006-03-23 Senganal T <tsenganal@novell.com>
314 - LoadDataRow : Add the row to the indexes, when loading a new row.
316 2006-03-22 Senganal T <tsenganal@novell.com>
319 - PrimaryKey : Set the IsPrimaryKey attribute before Removing from collection.
320 - RemoveUniqueConstraints : Removed. dead code.
323 - If adding/removing constraint fails, retain Unique value
324 - Remove redundant code
325 * UniqueConstraint.cs :
326 - SetIsPrimaryKey : Added. Sets the value of IsPrimaryKey.
327 - RemoveFromConstraintCollectionCleanup : If constraint is on a single column, then
328 set Unique for that column to false.
329 - CanRemoveFromCollection : Do not remove constraint, if its a PrimaryKey
331 2006-03-20 Senganal T <tsenganal@novell.com>
334 - CopyRelations () : When copying the relation, do not add constraints
335 automatically for the relation.
336 - OnMergeFailed () : If merge fails and no handler is set for the MergeFailedEvent,
337 then throw DataException
338 * ConstraintCollection.cs :
339 - Add () : Check if a constraint already exists on the Columns that are being
341 - IndexOf () : Do not check for equivalent constraints, check for the exact instance.
342 * MergeManager.cs ():
344 - Handle the MissingSchemaAction.Error case,
345 - Do not create constraints when mergin the DataRelation
346 - Follow the semantics for schema merge/validation when constraints are already present
347 in the target DataSet.
348 - AdjustPrimaryKeys () :
350 - Verify Order of Columns in the PrimaryKey when merging.
351 - ResolveColumns : Changed the arument to DataSet. Simplifies code elsewhere.
352 - CompareColumnArrays, CompareColumnArrays : Helper funtions.
354 2006-03-09 Senganal T <tsenganal@novell.com>
357 - RejectChanges () : Add the row to index, if it was in deleted state and
358 Update the index if in Modified State.
359 - AcceptChanges () : Do not update the Indexes.
360 - EndEdit () : Update the indexes even if BeginLoadData has been called
361 on the table. Ideally, indexes should not be maintained during DataLoad,
362 but this needs to handled in multiple places correctly. For now, just maintain
363 the index to ensure correct operation.
365 2006-03-05 Senganal T <tsenganal@novell.com>
368 - BeginInit (), EndInit () : Implemented methods
369 - InitInProgress : Added.
371 - EndInit () : Move the adding of columns and constraints
373 - FinishInit () : Added. Adds the Constraints and Columns
375 - InitInProgress : Added.
377 - FinishInit () : Added. Virtual method
378 - InitInProgress : Added. Virtual property
379 * UniqueConstraint.cs
380 * ForeignKeyConstraint.cs
381 - FinishInit () : Added.
382 - InitInProgress : Added.
383 - DataColsNotValidated : Removed.
384 * ConstraintCollection.cs
385 - PostAddRange : Removed event
386 - PostEndEdit () : Renamed to PostAddRange
387 - Add () : Simplified the testing if constraint is initialized
388 - AddRange () : Simplified initializing the constraints
389 * DataTableCollection.cs
390 - PostAddRange () : Added. Adds the tables to the collection
391 * DataColumnColletion.cs
392 - PostEndInit () : Renamed to PostAddRange.Also, add column to
393 the collection only if not null.
395 Added/Implemented methods for design time support. Renamed some methods for consistency
396 in naming across classes for methods serving the same purpose.
398 2006-02-24 Senganal T <tsenganal@novell.com>
400 * UniqueConstraint.cs :
401 - ChildConstraint : Added. Simplifies verifying if constraints are
403 - CanRemoveFromCollection : Fixed the check to verify if constraints is
404 linked to a ForeignKeyConstraint. Fixes #77630
405 * ForeignKeyConstraint.cs :
406 - _validateRemoveParentConstraint : Removed. Not used anymore
407 - ParentConstraint : Added. Simplifies verifying if constraints are
409 2006-02-22 Senganal T <tsenganal@novell.com>
412 - RejectChanges : Do not remove Row from Indexes when state is Deleted.
413 - CheckChildRows : When checking for the ChildRows, use the current value
414 and not the original value.
416 2006-02-18 Atsushi Enomoto <atsushi@ximian.com>
418 * CustomDataClassGenerator.cs : Patch by Marek Habersack. xsd now
419 outputs AutoIncrement, AutoIncrementSeed, AutoIncrementStep and
420 ReadOnly properties. This fixes bug #77576.
422 2006-02-17 Chris Toshok <toshok@ximian.com>
424 * System.Data/DataSet.cs, System.Data/DataView.cs,
425 System.Data/ForeignKeyConstraint.cs,
426 System.Data/DataViewManager.cs, System.Data/DataRow.cs,
427 System.Data/DataSysDescriptionAttribute.cs,
428 System.Data/UniqueConstraint.cs, System.Data/DataTable.cs,
429 System.Data/DataRelation.cs: lots of attribute work, removing
430 DataSysDescription atributes (and marking the class obsolete) for
433 2006-02-17 Chris Toshok <toshok@ximian.com>
435 * DataAdapterException.cs: remove this file.
437 2006-02-17 Chris Toshok <toshok@ximian.com>
439 * DataTableReader.cs: Switch to the (bool) form of Dispose to
440 override, as the no-arg form isn't virtual.
442 * Constraint.cs: #ifdef out more DataSysDescriptions.
444 * ConstraintException.cs: add ..ctor (string, Exception) for 2.0.
446 2006-02-17 Chris Toshok <toshok@ximian.com>
448 * DataColumn.cs: #ifdef all the DataSysDescriptions !NET_2_0.
450 * AdapterMappingException.cs: nuke this file.
452 * IDbAsyncConnection.cs, IDbAsyncCommand.cs, IGetTypedData.cs,
453 ISetTypedData.cs, IDataReader2.cs, IDataSources.cs,
454 IDbExecutionContext.cs, IDataRecord2.cs, IDataUpdatableRecord.cs:
455 remove these 2.0 files.
457 2006-02-17 Chris Toshok <toshok@ximian.com>
459 * ConstraintCollection.cs: in 2.0, class is not serializable and
460 is sealed. make all the "virtuals" #if !NET_2_0 as well.
462 * Constraint.cs: not serializable in 2.0.
464 * DataColumnCollection.cs: in 2.0, class is not serializable and
465 is sealed. make all the "virtuals" #if !NET_2_0 as well.
467 * DataRelationCollection.cs: not serializable in 2.0.
469 * DataRelation.cs: not serializable in 2.0.
471 * DataRowBuilder.cs: class is sealed in 2.0.
473 * DataRowCollection.cs: in 2.0, class is not serialized and is
474 sealed. Also, Add isn't virtual in 2.0 (as the class is sealed).
476 * DataRow.cs: not serializable in 2.0.
478 * DataSet.cs: remove some DataSysDescriptions from the 2.0 build,
479 and s/GetDataReader/CreateDataReader.
481 * DataTableCollection.cs: in 2.0, class is not serializable and is
482 sealed. make all the "virtuals" #if !NET_2_0 as well.
484 * DataTableReader.cs: remove VisibleFieldCount property.
486 * DataViewSettingCollection.cs: not serializable in 2.0.
488 * DataViewSetting.cs: not serializable in 2.0.
490 * ForeignKeyConstraint.cs: serializable in 2.0.
492 * OperationAbortedException.cs: class is sealed and serializable.
494 * PropertyCollection.cs: serializable in 2.0.
496 * StatementCompletedEventArgs.cs: class is sealed.
498 * UniqueConstraint.cs: not serializable in 2.0.
500 2006-02-16 Senganal T <tsenganal@novell.com>
503 WriteDataSetElement : Add an annotation element if exists.
504 WriteDataRelationAnnotation : New. Write a DataRelation as an annotation.
505 WriteConstraints : Write ForeignKeyConstraint even when not associated with
506 a DataRelation and add a "ConstraintOnly=true" attribute for such constraints.
507 * XmlConstants.cs : Add a new constant - ConstraintOnly
508 * XmlSchemaImporter.cs :
509 - ConstraintStructure : Add field ,IsConstraintOnly, to distinguish if a foreignkeyconstraint
510 is related to relation or not.
511 - GenerateRelation : Handle the case when parentkey and childkey contain multiple columnnames.
513 2006-02-11 Senganal T <tsenganal@novell.com>
515 * UniqueConstraint.cs :
516 - PostAddRange : Check PrimaryKey is not already set for the table
518 - PrimaryKey : follow ms.net behavior when BeginInit , EndInit is used.
519 - Add new priamry key only when EndInit is called.
520 - Incase of an error, retain old primarykey
522 - Add Constraints after columns are added.
523 - If both PrimaryKey Property and PrimaryKey Constraint are set,
524 then the Constraint takes precedence.
527 2006-02-03 Senganal T <tsenganal@novell.com>
529 * DataTableCollection.cs :
530 - Remove () : Check for invalid TableName
531 - Add () : Verify the table doesn't belong to another dataset
533 - CompleteLastAdded () : Do not raise ItemAdded Event as it is
534 already raised in AddNew().
536 - Expression : Verify that the Column names in the expression are valid
537 - ResetCollectionInfo : Renamed to ResetColumnInfo
539 - RejectChanges () : Reorganized the code to do the Right thing.
540 - Item : Dont check for detached and deleted rows as these are
542 * DataRowCollection.cs :
543 - Add () : Check for null value
545 - PrimaryKey : Set AllowDBNull=false for all the key columns
546 - ImportRow : Import the row only if it is not in Detached state. if in Deleted
547 state, perform the validation when AcceptChanges/RejectChanges is called.
548 * DataColumnCollection.cs :
549 - Add : Validate the column expression before adding it to the collection.
550 - GetColumnDependency () : New. Get the dependencies on the column
551 - CanRemove : Move checks to GetColumnDependency
552 - Clear () : Simplified code. Remove unncessary checks.Also, dont check Expression col.
553 - IndexOf - Check argument.
554 Overall , appropriate error msg's are thrown if Remove/Clear fails. Removed a few
555 redundant checks performed and moved the common code to GetColumnDependency.
557 2006-01-31 Senganal T <tsenganal@novell.com>
559 * DataSet.cs : Modified CopyRelations ()
560 - Added code to copy ForeignKeyConstraints. Fixes #77411.
562 2006-01-18 Boris Kirzner <borisk@mainsoft.com>
563 * DataColumn.cs: added PropertyCchangedEvent handling.
565 2006-01-17 Senganal T <tsenganal@novell.com>
568 ItemArray : Modified to raise RowInTableException only if
569 the concerned row has been removed from the table.Fixes
572 2006-01-16 Boris Kirzner <borisk@mainsoft.com>
573 * DataTable.cs: Drop dependend indexes on column removal.
575 2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
577 * CustomDataClassGenerator.cs :
578 When a DataRelation connects the same table as parent and child,
579 generate parent row property as BlahRowParent. Fixed bug #77248.
581 2006-01-10 Senganal T <tsenganal@novell.com>
582 * DataRowCollection.cs
583 - Added ListChangedEvent to notify reset of the collection.
585 - Subscribes to the ListChangedEvent of DataRowCollection
588 2006-01-09 Senganal T <tsenganal@novell.com>
591 - Resolving a name clash in IExpression
593 2006-01-06 Senganal T <tsenganal@novell.com>
596 * DataColumnCollection.cs
597 - Reset the Parameters of DataColumn to Default Values when
598 column is removed from the Table's Collection
600 2006-01-03 Senganal T <tsenganal@novell.com>
603 - ParseSortString() : Changed the way the sort string is parsed.
604 Using a regex to parse the string.Fixes bug #77104
606 2005-12-12 Konstantin Triger <kostat@mainsoft.com>
608 * DataRow.cs: Added index Updates.
609 EndEdit() fixed to first update indices and then AssertConstraints
610 based on those indices.
611 Added Validate() and AssertConstraints() functions.
612 * DataRowCollection.cs: Removed ValidateDataRowInternal().
613 * DataTable: Fixed Clear().
615 2005-12-06 Atsushi Enomoto <atsushi@ximian.com>
617 * CustomDataClassGenerator.cs : (InitializeFields) handle AllowDBNull
618 and DefaultValue as well. Patch by Marek Habersack (bug #76709).
620 2005-12-01 Miguel de Icaza <miguel@novell.com>
622 * DataSet.cs: Apply patch from Robert Jordan, to fix #76817
624 2005-11-26 Konstantin Triger <kostat@mainsoft.com>
626 * ConflictOption.cs: TARGET_JVM include.
628 2005-11-11 Senganal T <tsenganal@novell.com>
630 * ConflictOption.cs (new file)
631 - Added ConflictOption Enumeration
634 - GetProviderSpecificFieldType : Corrected the method name
636 2005-11-11 Senganal T <tsenganal@novell.com>
638 * DataSet.cs : Added the SchemaSerializationMode Property for NET_2_0
640 * SchemaSerializationMode.cs : Added SchemaSerializationMode Enumeration
641 for NET_2_0 compatibility.
645 2005-10-20 Atsushi Enomoto <atsushi@ximian.com>
647 * XmlSchemaWriter.cs : escape names in the schema with XmlConvert.
650 2005-10-14 Sureshkumar T <tsureshkumar@novell.com>
652 * DataView.cs: Correct multiple throwing of events. Patch from
654 (RowStateFilter): Fire ListChangedEvent.
655 (ApplyDefaultSort): Fire ListChangedEvent.
656 (CompleteLastAdded): call UpdateIndex to remove the row from rowCache.
657 (IBindingList.Find): Implemented.
659 2005-10-11 Sureshkumar T <tsureshkumar@novell.com>
661 * DataView.cs (IBindingList): Implemented methods for IBindingList interface.
663 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
665 * DataSet.cs: In IXmlSerializable.GetSchema, return null again for
666 untyped datasets. Fixes bug #76101.
668 2005-09-21 Boris Kirzner <borisk@mainsoft.com>
669 * DataRow.cs: Fixes for index updating.
671 - Reset case-sensitive indexes also if their filter contains columns
673 - Use GetIndex instead of FindIndex, so the indexes created in Select()
675 * RelatedDataView.cs: implement IExpression.Equals() and GetHashCode().
677 2005-09-20 Sureshkumar T <tsureshkumar@novell.com>
679 * DataView.cs (Sort): Apply default Sorting Order if Sort property
680 is reset to null. Sort property handles this. Patch from Marc.
682 * DataTable.cs (ParseSortString): Patch from Marc Haisenko for
683 allowing [ & ] in DataView.Sort string.
685 2005-09-01 Boris Kirzner <borisk@mainsoft.com>
686 * System.Data/DataRowCollection.cs: indexes should be updated even if
687 EnforceConstraints is false. Check for EnforceConstraints in
688 ValidateDataRowInternal.
690 2005-08-08 Gert Driesen <drieseng@users.sourceforge.net>
692 * DataView.cs: Changed accessibility of dataTable, rowState and
693 rowCache field to internal to fix public API. Assigned TypeConverter
695 * ForeignKeyConstraint.cs: IsConstraintViolated is now internal.
696 * Constraint.cs: IsConstraintViolated is now internal.
697 * UniqueConstraint.cs: IsConstraintViolated is now internal.
699 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
701 * XmlSchemaDataImporter.cs : When "dataset element" has identity
702 constraints, then first reserve constraints room for them and then
703 process elements, skipping pkey creation if there is already
704 reserved one. Fixed bug #75711.
706 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
708 * XmlDataInferenceLoader.cs : in GetElementMappingType(), don't guess
709 the same (QNamed) element again when it was already evaluated as
710 not simple type. Fixed one part of bug #75711.
712 2005-08-02 Boris Kirzner <borisk@mainsoft.com>
713 * XmlSchemaDataImporter.cs : Data relations should be processed after the
714 keys, so no redundant constraints created while relations processing.
716 2005-07-25 Boris Kirzner <borisk@mainsoft.com>
717 * FillOptions.cs, ConflictOptions.cs, UpdateOptions.cs:
718 added ifdef TARGET_JVM.
720 2005-07-22 Sureshkumar T <tsureshkumar@novell.com>
722 * DataViewSettingCollection.cs, DataTableCollection.cs,
723 DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
724 DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
725 DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
726 - updated attributes & attribute descriptions to match with
729 * DataView.cs: changed protected members
730 rowstate,rowcache,dataTable to protected internal.
731 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint.cs:
732 changed InConstraintViolated to protected internal.
733 * ConflictOptions.cs, UpdateOptions.cs, FillOptions.cs: enclosed
736 2005-07-21 Sureshkumar T <tsureshkumar@novell.com>
738 * ForeignKeyConstraint.cs:
739 - IsConstraintViolated (): no matter what EnforceConstraints is,
740 this function now honestly validates. It is upto the caller to run
742 - AddToConstraintCollectionSetup (): AssertConstraint according to
745 2005-07-21 Boris Kirzner <borisk@mainsoft.com>
746 * ForeignKeyConstraint.cs - IsConstraintViolated() should check also for Table.EnforceConstraints.
747 * DataTable.cs - EnforceConstraints becomes internal so it can be used by ForeignKeyConstraint.
749 2005-07-19 Sureshkumar T <tsureshkumar@novell.com>
751 * DataTable.cs - CopyConstraints (): copy constraints only if it
754 * DataSet.cs - Copy ():
755 - use activator.CreateInstance to create a typed dataset.
756 - copy tables if target does not exist, otherwise, just add rows.
757 - add relation only if it does not exists.
759 Typed datasets create the constraints & relations through
760 constructors. Fixes bug #75211.
762 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
764 * DataView.cs: Patch from Marc Haisenko to throw descriptive error
765 message when accessing Item, with invalid index.
767 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
769 reapplied patch from Marc Haisenko.
770 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
773 2005-07-13 Sureshkumar T <tsureshkumar@novell.com>
775 * DataRelationCollection.cs: adding a relation with same set of
776 parent columns & child columns, should not be allowed.
778 2005-07-08 Sureshkumar T <tsureshkumar@novell.com>
780 * DataTableReader.cs: GetSchemaTable: DataType column should be
781 passed a type of Type.
783 * DataRow.cs: Load : Fired necessary events.
785 * DataTable.cs: LoadDataRow (object [], LoadOption): Fired
788 2005-06-28 Sureshkumar T <tsureshkumar@novell.com>
790 * DataRow.cs: Delete (): if row is detached, do nothing.
793 2005-06-22 Sureshkumar T <tsureshkumar@novell.com>
795 * DataRow.cs: Added method MergeValuesToRow copy merge two rows
796 according to the merge rules.
798 * MergeManager.cs: (MergeRow): use MergeValuesToRow
799 API. CopyValuesToRow simply makes the target row same as source
800 row. Rather, MergeValuesToRow merges with the target row according
803 2005-06-19 Konstantin Triger <kostat@mainsoft.com>
805 * DataSet.cs: Fixed ReadXml to work with IXmlSerializable
807 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
809 * DataViewManager.cs: fixes exception and creates DataView
811 2005-06-15 Sureshkumar T <tsureshkumar@novell.com>
813 * DataRow.cs: CheckChildRows: cascade parent changes to child rows
814 only if there is a change in columns of the fk constraint.
816 2005-06-14 Sureshkumar T <tsureshkumar@novell.com>
818 * DataSet.cs: GetChanges: if row is deleted, get parent rows based
819 on original version. fixes bug #75227.
821 2005-06-13 Sureshkumar T <tsureshkumar@novell.com>
823 * DataRowCollection.cs: Find (keys, version): Added an overload to
824 find keys matching given DataViewRowState filter. Used in
825 DataSet.Merge and DataTable.LoadDataRow.
827 * DataTable.cs: LoadDataRow (values, LoadOption): Use
828 DataRowCollection.Find (object [], DataViewRowState) overload.
831 - CopyValuesToRow: Create target "records" out of loop. Records
832 should be created once, not for each column. Dispose Unused target
836 - MergeRow: Find rows with matching original records. If not,
837 select with current values.
838 - MergeRow: While adding new row, use NewNotInitializedRow.
840 * ForeignKeyConstraint.cs: IsConstraintViolated: should not check
841 if EnforceConstraints is false.
843 2005-06-10 Sureshkumar T <tsureshkumar@novell.com>
845 * DataRow.cs: CopyValuesToRow: if orginal == current, don't create
846 a new current record.
848 * DataSet.cs: GetChanges :Temporarily disable EnforceConstraints.
850 * MergeManager.cs: Merge: Temporarily disable
851 EnforceConstraints. Patch from george.barbarosie@gmail.com (George
854 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
856 * DataView.cs: fixes GetListName
858 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
860 * XmlSchemaConstants.cs,
861 XmlSchemaDataImporter.cs,
862 XmlSchemaWriter.cs : AutoIncrementStep support. Patch partly by
863 George Barbarosie. Fixed bug #75121.
864 * XmlSchemaMapper.cs : it is not used anymore, so just removed.
866 2005-05-31 Boris Kirzner <borisk@mainsoft.com>
867 * DataRow.cs : SetParentRow on Detached row with no Default version throws an exception.
869 2005-05-29 Konstantin Triger <kostat@mainsoft.com>
871 * This patch fixes #74813
872 * DataView.cs: rework the CreateChildView to receive the index into the indexed row array, rowState became protected to be initialized from RelatedDataView
873 * DataRowView.cs: movo the logic of creating the child view to the DataView
874 * RelatedDataView.cs: perform correct init.
876 2005-05-25 Sureshkumar T <tsureshkumar@novell.com>
878 * DataTable.cs: Reworked DataTable.LoadDataRow method after
879 regressions caused by Index redesign.
880 * DataRow.cs: Load : reworked.
882 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
884 * ISafeDataRecord.cs: Added GetDateTimeSafe method, the interface was made derived from IDataRecord
886 2005-05-22 Konstantin Triger <kostat@mainsoft.com>
888 * 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
890 2005-05-20 Sureshkumar T <tsureshkumar@novell.com>
892 * DataTable.cs: CreateRecord :value should be set to auto
893 increment value or default value if the given value is null.
895 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
897 * DataTable.cs: In DataTable.LoadDataRow with LoadOption - reverting the search order back to Original -> Current (by Suresh request)
899 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
901 * DataRow.cs, DataTable.cs: code under net_2_0 changed to use the new interface
902 * DataTable.cs: Added CompareRecords, which compares records in column order
905 2005-05-16 Sureshkumar T <tsureshkumar@novell.com>
908 * DataTable.cs: quick fix to make build 2.0 profile (follow up for
909 check in 2005-05-16). Merge with previous changes.
911 2005-05-11 Sureshkumar T <tsureshkumar@novell.com>
913 fix for "import row does not import deleted records"
915 * UniqueConstraint.cs: Make a way to access value even from a
916 deleted record. deleted records are added to the collection by
920 - Added restriction-less methods GetValue to fetch a
921 value even if it is in deleted state.
922 - If a row is detached, don't try to delete it from indexes.
923 - sanity check for record_index in CopyValuesToRow method
925 2005-05-05 Sureshkumar T <tsureshkumar@novell.com>
927 * DataTableReader.cs: Implemented Delete handler and move the
928 current pointer accordingly.
930 2005-05-04 Sureshkumar T <tsureshkumar@novell.com>
932 * DataTableReader.cs: Added event handlers to make reader stable
933 when the datasource is modified. Thanks to Umadevi for giving the
934 review comments for this implementation.
936 * DataTable.cs: Clear (): Raise TableCleared event.
938 * DataTableClearEventArgs.cs: Args for DataTableClearEventHandler.
940 * DataTableClearEventHandler.cs: Handler for DataTable.TableClear
943 * DataRow.cs: AcceptChanges: raise row changing & row changed
946 * DataRowCollection.cs: Clear : remove rows from indexes
948 2005-05-02 Atsushi Enomoto <atsushi@ximian.com>
950 * XmlSchemaDataImporter.cs : XmlSchemaParicle might be XmlSchemaAny.
951 This fixes bug #74784.
953 2005-04-29 Sureshkumar T <tsureshkumar@novell.com>
955 * DataTableReader.cs: removed use of _first. throw if given index
956 is out of range of columns. Copy DataTable [] to local array so
957 that not to be disturbed.
959 2005-04-27 Sureshkumar T <tsureshkumar@novell.com>
961 * DataTableReader.cs: Implemented most of the TODO.
963 2005-04-22 Sureshkumar T <tsureshkumar@novell.com>
965 * LoadOption.cs: Changed the enums. Keeping old values for
968 * DataTable.cs: Implemented methods Load and its overloads. Also
969 implemented LoadDataRow.
971 * DataRowCollection.cs: Added a variation of the Find method to
972 return a row even if it is of state Deleted. This is required for
973 DataTable.LoadDataRow method.
975 * DataRow.cs: Implemented internal helper method Load for loading
976 values from an object array and given an LoadOption (2.0 feature).
978 * DataRowAction.cs: Added few more enums for .net 2.0. Sorted
981 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
983 * UniqueConstraint.cs : IsNull check is relevant for rows having default row version.
984 * DataTable.cs : The row should be validated when imported
985 * DataRowCollection.cs : if the row does not contain Proposed neither Current version, it's irrelevant for validation
987 2005-04-26 Boris Kirzner <borisk@mainsoft.com>
989 * UniqueConstraint.cs :
990 - Add indication whenever the constraint belongs to collection.
991 - Calculation of IsPrimaryKey simplified.
992 - If constraint is based on single column, the column becomes unique.
993 - Use boolean IsConstraintViolated() instead of AssertConstraint().
994 - Use Index.Duplicates to proper exception message formatting.
995 - AssertConstraint(DataRow) changed to suite new indexes interface.
996 - Added CanRemoveFromCollection method.
997 - Contains() method renamed to IsColumnContained().
998 * RelatedDataView.cs : added new class.
1000 - Reset indexes after merge.
1001 - Add new tables when row array is merged into dataset.
1002 - Clean proposed record in MergeRow.
1003 - Inherit nesting on creating new relations in target data set.
1004 - Avoid double loop on constraints collection.
1005 * Locale.cs : added new class.
1006 * ISafeDataRecord.cs : added new interface.
1007 * Index.cs : commented out. Index implementation moved to System.Data.Common.
1008 * ForeignKeyConstraint.cs :
1009 - No more use of childColumnsExtended since new indexes allow duplicate records.
1010 - Constraints can not be created on expression columns.
1011 - Removed unnecessary delegation.
1012 - Use boolean IsConstraintViolated() instead of AssertConstraint().
1013 - Use proper exception message formatting.
1014 - Contains() method renamed to IsColumnContained().
1015 * DataViewRowState.cs : use enum members to simplify notation.
1016 * MergeManager.cs : implemented RelationCollectionChanged().
1017 * DataView.cs : new implementation.
1018 * DataTableCollection.cs :
1019 - Added boundary check in indexer.
1020 - More accurate handling in AddRange().
1021 - Raise event in Remove().
1023 - Hold primary key as constraint.
1024 - Added accurate handling of DefaultView.
1025 - Hold DataRowBuilder per table.
1026 - Proper exception messages if enforce Constraints is violated.
1027 - If there is no rows, Compute() returns DBNull.
1028 - Use DataRow properties instead of private members.
1029 - CopyProperties() fixed.
1030 - Raise proper events in EndInit().
1031 - Proper order of violation checks in EndLoadData().
1032 - Create array of rows using NewRowArray().
1033 - ImportRow handles rows according to their versions.
1034 - LoadDataRow make use of records (instead of raw object array).
1035 - Added and implemented LoadDataRow() that gets IDataRecord as a parameter (used in Fill)
1036 - Select() uses indexes filtering and sorting ability (instead of "loop-throw-sort" approach).
1037 - Removed redundant RowSorter and Sortable column classes.
1038 - ParseSortString() fixed to threat bracketed column names.
1039 - Table holds collection of property descriptors.
1041 - Reset table case sensitive indexes on CaseSensitive change.
1042 - EnforceConstraints update logic moved to internal method (used by DataTable).
1043 - InAddChangedRow first add row and than copy values for proper handling of default values.
1045 - Changed private member names to suite name convention.
1046 - CancelEdit() fixed.
1047 - CreateChildView() delegates to DataView.
1049 - Proper exception messages in indexers.
1050 - RowVersion uses DataView.
1051 - GetProperties() delegates to corresponding table if needed.
1052 * DataRowCollection.cs :
1053 - Common Add() logic moved to AddInternal() (used also by DataTable).
1054 - Removed redundant check from Contains().
1055 - Dalegate Find() calls when possible.
1057 - RomoveAt() delegates to Remove().
1058 - Optimized constraints check in row validation.
1059 * DataRelationPropertyDescriptor.cs : added new class.
1060 * DataRelationCollection.cs :
1062 - Fixed order of actions in AddCore().
1063 - RemoveCore() also delegates to base.
1064 - Add relation to dataset also in AddCore().
1065 - Remove relation from dataset also in RemoveCore().
1066 - InTransition hold a data relation so we can properly identify the "in transition" state.
1067 - Added threat of parent and child table s property descriptors in Add().
1068 - Common Add() logic moved to AddCore().
1070 - Remove() threats "in transition" state properly.
1071 - Remove methods delegate to single implementation.
1072 * DataColumnPropertyDescriptior.cs :
1073 - Added new constructor.
1074 - Commented out redundant method.
1075 * DataColumnCollection.cs :
1076 - Boundary check in indexer.
1077 - RegisterName and UnregisterName become internal (used also by DataColumn).
1079 - Fixed CanRemove().
1080 - Rethrow correct exception in Clear();
1081 - Change in collection resets parent table property descriptors.
1082 - Added PostEndEdit() helper method (used by DataTable).
1084 - Private member names changed to suite name convention.
1085 - Created method for CanAutoIncrement() logic.
1086 - Proper handling of column name update.
1087 - Proper exception messages on expression update.
1088 - Proper namespace handling (delegates to table when needed).
1089 - Removed redundant check in Unique update.
1090 - Implemented internal Clone().
1091 - GetParentRalation() and GetChildRelation() become private.
1093 - Added abstract methods (implemented in UniqueConstraint and ForeignKeyConstraint).
1094 - Simplified index update.
1095 * ConstraintCollection.cs :
1096 - Use Locale instead of CaseSensitive in column names comparison.
1098 - Rethrow correct exception type in Add().
1099 - Proper update of table primary key in Add().
1100 - Delegate CanRemove() to constraint.
1101 - Remove table primary key in Clear();
1102 - Delegate "can remove" check to constraint in Remove().
1103 - Removed unnecessary methods and properties.
1105 - RowSate becomes calculated property.
1106 - Use properties instead of private members where possible.
1108 - Fixed order of actions in ItemArray update.
1109 - Fixed DetachRow().
1110 - Added ImportRecord() method.
1111 - Removed redundant SetValuesFromDataRecord().
1112 - Fixed IndexFromVersion().
1113 - Added VersionFromIndex() method. Returns row version the passed record index corresponds to.
1114 - Fixed AcceptChanges().
1115 - Fixed creating proposed version in BeginEdit();
1116 - Added record disposal in Delete().
1117 - Fixed CheckChildRows().
1118 - EndEdit() fixed. Checks for readonly. Uses straight flow instead of "try and fix if fail" approach.
1119 - GetChildRows() and GetPrarentRows() rewrited. Use records and indexes for rows lookup.
1120 - GetColumnError() delegates to another implementation.
1121 - HasVersion() fixed.
1122 - RejectCahnges checks on child rows before passing through.
1123 - SetParentRow() fixed. Create relation collection if needed. Use typed data container value copy.
1124 - CopyErrors() logic moved to separate method (used also by DataTable).
1125 * ExpressionElement.cs : added new class.
1126 * Res.cs : added new class.
1128 2005-04-20 Jordi Mas i Hernandez <jordi@ximian.com>
1130 * DataViewManager.cs: implements TypedList.GetListName used in SWF
1132 2005-04-19 Atsushi Enomoto <atsushi@ximian.com>
1134 * DataRowView.cs : indexer should access to DataRow with proper
1135 DataRowVersion. Fixed bug #74650.
1137 2005-04-18 Sureshkumar T <tsureshkumar@novell.com>
1139 * DataRow.cs: if there are no mapping fields, fill with default
1142 2005-04-17 Atsushi Enomoto <atsushi@ximian.com>
1144 * DataView.cs : Delete() should not try to remove row twice.
1147 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
1149 * DataTable.cs : Use GetRowType() for the base of the returning array
1150 type of Select(). Fix by Gerhard Rittweger.
1151 * CustomDataClassGenerator.cs : Fixed slightly harmless wrong code.
1153 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
1155 * CustomDataClassGenerator.cs : custom relation was not added to
1156 Relations property. The second entry of bug #69276 was fixed.
1157 Patch by Daniel Rodriguez.
1159 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
1161 * DataRowCollection.cs: Fix the signature of the Add method
1164 2005-03-16 Atsushi Enomoto <atsushi@ximian.com>
1166 * DataRow.cs : on importing row, it was copying data from incorrect
1167 DataRow. This fixes bug #73288.
1169 2005-03-07 Jackson Harper <jackson@ximian.com>
1171 * DataViewManagerListItemTypeDescriptor.cs: Implement missing
1172 features. These are needed for System.Windows.Forms databinding.
1174 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1176 * DataColumn.cs : setting negative value on MaxLength of SimpleContent
1177 column is still valid.
1179 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
1181 * XmlSchemaWriter.cs : new file for outputting XmlSchema.
1182 * DataSet.cs : removed rewritten code in XmlSchemaWriter.
1183 * XmlConstants.cs : added UseCurrentCulture constant.
1185 Use new Xml Schema writer.
1186 Use XmlSchemaDataImporter as we use in DataSet.
1188 2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
1190 * DataView.cs, DataRowView.cs : Fixed bug #72421. CreateChildView()
1191 should target only child rows.
1193 2005-02-03 Atsushi Enomoto <atsushi@ximian.com>
1195 * DataViewManager.cs: misuse of ReadStartElement(string).
1196 * DataRowView.cs : removed some MonoTODO.
1198 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1199 Ankit Jain <radical@corewars.org>
1201 * DataColumn.cs: throw exception if the column is part of a
1202 relationship, when chaning the data type. Added methods
1203 "GetParentRelation ()" and "GetChildRelation ()" get the relation
1204 which contains the current column
1205 * DataRelation.cs: Added method "Contains (DataColumn)" to check
1206 whether the relation contains the given column.
1208 fixes nunit failure: DataRelationTest.InvalidConstraintException2.
1210 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1212 * DataColumnCollection.cs: implemented todo item "check for
1213 constraints" when removing columns from table.
1214 * DataRowCollection.cs: Clear (): don't have to throw child key
1215 constraint exception when the child table does not have any
1216 rows. safe to remove parent rows.
1217 * UniqueConstraint.cs: added method "Contains (DataColumn)" to
1218 check whether a column is part of UniqueConstraint.
1219 * ForeignKeyConstraint.cs: added method "Contains (DataColumn,
1220 lookInParent)" to check whether a column is part of foreignkey.
1222 fixes nunit failure: DataTableTest.ClearTest ()
1224 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1226 * ForeignKeyConstraint.cs: validating columns: move checking
1227 "tables are of same dataset" before "checking column types".
1229 fixes nunit failure: ForeignKeyConstraint.CtorExceptions.
1231 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1233 * DataViewManager.cs : let's just use StringWriter instead of
1234 XmlTextWriter (to avoid empty tag string mismatch annoyance.)
1235 * DataView.cs : implemented BeginInit() and EndInit(). Don't update
1236 rows during init phase until EndInit() is invoked. During init phase,
1237 just hold properties such as Sort that affects on rows.
1239 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1241 * DataTableCollection.cs : (RemoveAt) just use IndexOutOfRangeException.
1243 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1245 * DataView.cs : DataRowView.EndEdit() raises ItemMoved event.
1246 set_Table clears Sort and RowFilter.
1248 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1251 - Clear() should clear AddNew cache.
1252 - Open() invokes Reset().
1253 - ConstraintCollectionChanged() itself does not invoke OnListChanged().
1254 - Reset() does not Open, Close and Update Index.
1255 - UpdateIndex() can be invoked even if it has no table.
1256 - Reset event is invoked always after actual query to table.
1257 - set_Table should raise PropertyDescriptorChanged event.
1259 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1261 * DataView.cs : ColumnCollectionChanged() is the event invoker (i.e.
1262 when overriden, no column change events are fired).
1264 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1266 * DataView.cs : CancelEditRowView() and DeleteRowView() was incorrectly
1267 checking target tables. They also should raise events if required.
1269 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1271 * DataView.cs : simplify code with UnsortedList.
1273 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1275 * DataView.cs : Mostly reimplemented.
1276 - UpdateIndex() is invoked only when it is required (results in
1277 significant performance improvement).
1278 - Use SortedList and wrapper OptionalSortedList which switches
1279 between SortedList (with Sort) and UnsortedList (without Sort).
1280 - DataView itself now contains two collections for rowviews:
1281 Table rows based pool and AddNew() based cache. Consider those
1282 two collections in every members.
1283 - Reset() does not clear rows. Just invokes UpdateIndex().
1284 - Hook RowDeleting, ColumnChanging and ColumnChanged events in table
1285 which is required to handle state changes.
1286 - Reimplemented Find() and FindRows() because of internal changes.
1288 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1290 * DataTable.cs : Fixed row comparer. Even if every of the sort target
1291 columns are identical for two rows, they should not be regarded as
1292 the same unless they are Object.ReferenceEquals.
1294 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1296 * DataRowCollection.cs : on adding a row, should raise
1297 ChangingDataRow() as well as ChangedDataRow().
1299 2005-01-31 Sureshkumar T <tsureshkumar@novell.com>
1301 * DataRow.cs: SetParentRow (): use relation.ParentColumns &
1302 relation.ChildColumns instead of relation.ChildKeyConstraint.*
1303 because createConstrains flag may be false when creating data
1304 relations. Hack along with Ankit Jain.
1306 2005-01-31 Atsushi Enomoto <atsushi@ximian.com>
1308 * DataView.cs :some interface implementations.
1310 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1312 * DataView.cs : Add to table only when the row is not in the table.
1314 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1316 * DataView.cs : implemented FindRows() (btw we should not use
1317 DataTable since there are detached rows by AddNew().)
1319 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1322 Code cleanup: privatify some members, remove unused methods.
1323 Some event-based invocation methods should not raise NotImplemented.
1325 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1327 * DataSet.cs : ReadXml() became closer to MS behavior, being hacky.
1329 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1331 * XmlSchemaDataImporter.cs : empty element is not regarded as a column.
1333 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1335 * UniqueConstraint.cs : mostly reverted the previous patch + check
1336 IsPrimaryKey before validation.
1338 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1340 * DataView.cs : Fixed duplicate insertion to Hashtable.
1341 * UniqueConstraint.cs : Unique constrained pair of columns could be
1344 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1347 Don't do anything for Sort/ApplyDefaultSort/RowFilter/RowStateFilter
1348 when the same value is being set.
1349 Examined UpdateIndex() and marked FIXME where MS does not invoke it.
1350 Removed unused OnColumnChanged().
1351 Now store rowViewPool and reuse DataRowView objects.
1352 Optimized UpdateIndex() - avoid ArrayList. Avoid Haashtable.Rehash().
1354 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1356 * DataViewSettings.cs : no MonoTODO anymore.
1357 * DataViewManager.cs : pass itself to new DataView() (new ctor).
1358 * DataRowView.cs : GetHashCode() returns its Row's hash.
1359 * DataTablePropertyDescriptor.cs : use new ctor().
1360 * DataView.cs : added new ctor()s that accept DataViewManager.
1362 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1364 * DataView.cs, DataRowView.cs : AddNew() should not add the row to table
1365 (it is still detached). So handle those rows differntly.
1366 CancelEdit(), EndEdit() and Delete() propagates those events to
1367 DataView (and handle row collection).
1368 Eliminate "throw new Exception()".
1369 Don't catch all the exception thrown in ListChanged event.
1370 * DataTable.cs : made RowSorter as internal and use it in DataView.
1371 no need to pass DataRow[] to .ctor().
1373 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1375 * DataTable.cs : don't create DefaultView unless it is required. It
1376 significantly improves performance. (i.e. DataView perf. is sick ;-)
1378 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1380 * DataViewSetting.cs,
1381 DataViewSettingCollection.cs,
1382 DataViewManager.cs : implemented basic members.
1384 2005-01-26 Atsushi Enomoto <atsushi@ximian.com>
1386 * Node.cs, DataColumnPropertyDescriptor.cs, DataTable.cs :
1387 Eliminate "throw new Exception".
1389 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1391 * DataRow.cs : (set_Item) RowNotInTableExeption check should be done
1392 regardless of index existence.
1394 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1396 * DataTable.cs : use new IExpression.EvalBoolean() to avoid extraneous
1399 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
1401 * DataTable.cs: ImportRow :Do not add to rows collection if the
1402 import row is in detached state.
1404 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
1406 * DataRow.cs: CopyValuesToRow : set the column value with the
1407 default version of the given row.
1408 * DataTable.cs: ImportRow: Copy values before adding row.
1409 * DataSet.cs: AddChangedRow: Add the row to the table after
1412 Fixes bug #67317. Patch by Ankit Jain.
1414 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1416 * DataRowView.cs : Fixed IsEdit to reflect correct status of DataRow.
1417 * DataRow.cs : Expose editing status internally.
1419 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1421 * DataView.cs : missing attributes.
1423 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
1425 * DataRowView.cs : implemented CreateChildView().
1427 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
1429 * DataTable.cs, DataView.cs :
1430 Optimized DataView to compile only once RowFilter and Sort when
1431 those properties are set. To make it possible, extracted
1432 SortableColumn out of DataTable and added internal DataTable.Select()
1433 that accepts precompiled IExpression and SortableColumns[].
1435 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
1437 * DataColumn.cs : set_MaxLength is not allowed when it is mapped to
1438 SimpleContent. (However, it is weird but it never fails when we set
1439 ColumnMapping = MappingType.SimpleContent when we fhave MaxLength.)
1441 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
1443 * DataRow.cs : more Current -> Default fixes. Check if it should throw
1444 VersionNotFoundException. Patch by Ankit Jain.
1446 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
1448 * DataRow.cs : Default selects the right version for the current
1449 state of the row. Current is not always available. Also change
1450 that for GetParentRow(). Patch by Ankit Jain.
1452 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
1454 * DataTable.cs : CopyColumn() should copy AutoIncrement after
1455 DefaultValue, or it will raise an error in some cases.
1457 2005-01-20 Atsushi Enomoto <atsushi@ximian.com>
1459 * ConstraintCollection.cs : Add() should throw ArgumentException when
1460 the argument constraint fails validation.
1461 DataTable.cs : set_PrimaryKey should throw ArgumentException when
1462 the argument contains constraints which fail validation.
1464 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
1466 * DataRelationCollection.cs:
1468 Method Remove : Donot throw exception if DataRelation argument is
1469 null in DataRelationCollection.Remove method.
1471 Method RemoveAt : Exception should be IndexOutOfRangeException if
1472 row index is not in list range.
1474 Fixes nunit failures DataRelationCollection.Remove and
1475 DataRelationCollection.RemoveAt.
1477 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
1479 * ConstraintCollection.cs: Donot throw exception if constraints
1480 are null in AddRange method. Check for null before using the
1485 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
1487 * XmlDataInferenceLoader.cs,
1488 XmlDataReader.cs : Check if the XmlReader (node) represents DataSet
1489 or a table, reusing code block in XmlDataInferenceLoader.
1490 This fixes bug #60118.
1492 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
1494 * XmlDiffLoader.cs : Ankit Jain <radical@imt.ac.in> has a conflicting
1495 patches and some good catches. Some attributes should be skipped,
1496 and loaded value must be typed.
1498 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
1501 XmlDataInferenceLoader.cs,
1502 XmlDataReader.cs : use common const for http://www.w3.org/2000/xmlns/.
1503 * XmlDiffLoader.cs : It was not handling attributes. Fixed bug #70961.
1505 2005-01-18 Sureshkumar T <tsureshkumar@novell.com>
1507 Fix for bug #66838. This patch is submitted by "Ankit Jain"
1508 <radical@corewars.org> and refactored.
1510 * DataRow.cs: Allows to set a parent row even if the row is in
1513 * DataRelation.cs: method "UpdateConstraints" is added to check
1514 and create missing keys when adding a relation. This is refactored
1515 approach from DataRelationCollection.Add method.
1517 * DataRelationCollection.cs: AddCore methods of all relation types
1518 are synchronized. A Check for existing constraints is
1519 done. Relation is added to the list only if all checks are passed.
1521 2004-01-18 Atsushi Enomoto <atsushi@ximian.com>
1523 * DataColumnCollection.cs : Clear() throws ArgumentException that
1524 wraps thrown innerException.
1525 * XmlSchemaDataImporter.cs : removed FIXMEs.
1527 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
1529 * DataSet.cs : When serializing DataTable, BuildSchema() is passed
1530 null relation collections.
1531 Quick fix for XmlSerializer deserialization. It does not require
1532 XML Schema included.
1534 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
1537 CustomDataClassGenerator.cs :
1538 In DataSet class, IXmlSerializable.GetSchema() returns null.
1539 In strongly-typed class, it returns schema.
1541 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
1543 * XmlDataInferenceLoader.cs : test driver class should be excluded.
1545 2004-12-01 Miguel de Icaza <miguel@ximian.com>
1547 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
1550 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
1552 * CustomDataClassGenerator.cs : generated foreign key constraint
1553 construction code was creating empty child columns and thus it
1554 was invalid. This fixes bug #69276 (patch by Martin Voelkle).
1556 2004-11-02 Atsushi Enomoto <atsushi@ximian.com>
1558 * CustomDataClassGenerator.cs : custom DataTable ctor should call
1559 InitializeFields(), and those DataColumns created by that method
1560 should take data type. This should fix bug #68972.
1562 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
1564 * DataSet.cs : Also clear UnhandledAttributes ArrayList before
1565 generating next attribute column schema. This fixes bug #68432.
1567 2004-10-14 Umadevi S <sumadevi@novell.com>
1568 * DataTable.cs : Corrected the Clone method to use Activator.CreateInstance so that the
1569 correct subclass is returned. This fixes bug #67631
1571 2004-10-14 Umadevi S <sumadevi@novell.com>
1572 * DataSet.cs : Corrected the Clone method to use Activator.CreateInstance so that the
1573 correct subclass is returned. This fixes bug #67627
1575 2004-10-13 Atsushi Enomoto <atsushi@ximian.com>
1577 * DataSet.cs : clear UnhandledAttributes ArrayList before generating
1578 next element column schema. This fixes bug #68256.
1580 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
1582 * DataSet.cs : now xs:schema contains xmlns="".
1583 This fixes bug #68008.
1585 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
1587 * DataSet.cs : DBNull attribute column should not be written as
1588 empty attribute. This fixes bug #68007.
1590 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
1592 * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
1593 DataColumn.ReadOnly was not handled. This fixes bug #68005.
1594 Attribute defaultValue was not handled too.
1596 2004-10-07 Atsushi Enomoto <atsushi@ximian.com>
1599 - When AllowDBNull is false on attribute DataColumn, its schema
1600 should contain use="required". This fixes bug #66792.
1601 - If MaxLength is set on attribute DataColumn, the mapped schema
1602 type should contain maxLength facet. This fixes bug #66793.
1604 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
1606 * DataSet.cs : For a row, when a relation is not nested, then it is
1607 still output target since it won't be written as a child of its
1608 parent. It fixes bug #66379.
1610 2004-10-03 Atsushi Enomoto <atsushi@ximian.com>
1612 * DataSet.cs : Attribute constraint field XPath must be written as
1613 @blah. This fixes bug #66366.
1615 2004-09-28 Umadevi S <sumadevi@novell.com>
1616 * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
1618 2004-09-24 Sureshkumar T <tsureshkumar@novell.com>
1620 * DataSet.cs : Don't check constraints for dataset clear
1621 * DataRowCollection.cs : check for EnforceConstraints flag
1622 before checking foriegn key constraints in Clear method
1623 * DataTable.cs : Redundant checking removed in Clear method as it is
1624 checked in DataRowCollection.Clear method.
1627 2004-09-19 Sureshkumar T <tsureshkumar@novell.com>
1628 * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
1629 hence, adding a row cache is necessary if the original row happens to be current.
1632 2004-08-23 Martin Baulig <martin@ximian.com>
1634 * XmlDataInferenceLoader.cs (Driver): Make this class internal,
1637 2004-08-18 Umadevi S <sumadevi@novell.com>
1638 * DataView.cs - Completed most of the event handling.
1639 Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
1640 Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
1641 * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
1643 2004-08-06 Atsushi Enomoto <atsushi@ximian.com>
1645 * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
1647 2004-08-05 Atsushi Enomoto <atsushi@ximian.com>
1649 * XmlConstants.cs : Added constants for "msprop" support.
1650 * DataSet.cs : ExtendedProperties should be written in the schema.
1651 This fixes bug #61233.
1653 2004-07-27 Atsushi Enomoto <atsushi@ximian.com>
1655 * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
1656 used. There were also some culture dependency problems to write int.
1658 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
1660 * XmlDataInferenceLoader.cs : It was not always filling relation
1661 child table information correctly. This fixes bug #60742.
1663 2004-06-23 Umadevi S <sumadevi@novell.com>
1664 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
1666 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
1668 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
1669 schema is inside the document element (as created in XmlWriteMode
1670 .WriteSchema), it should read schema from that non-document element.
1671 This fixes one case reported in bug #60470.
1673 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
1675 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
1676 inference target. For bug #60470. (MS does not support schema
1677 document inference and results in unconsistent dataset structure.)
1679 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
1681 * DataTableCollection.cs : reset the table's DataSet to null when
1682 removing a table from this collection.
1683 * DataTable.cs : When Namespace is not specified explicitly, its
1684 Namespace property reflects DataSet's Namespace if exist.
1685 This fixes bug #60469.
1687 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
1689 * DBConcurrentcyException.cs: CRLF to LF
1690 * DataViewSetting.cs: CRLF to LF
1692 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
1694 * DataViewSetting.cs: renamed fields to match MS.NET
1696 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
1698 * DBConcurrencyException.cs: fixed serialization compatibility with
1701 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1703 * ChangeLog : Fix for misspelled words.
1705 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1707 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
1709 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1712 - Table stores default values for columns in special default values row.
1713 It is allocated once (in NewRow).
1714 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
1715 - OnRemoveColumn has nothing to perform by now.
1717 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1720 - Changed access of original, current and proposed indexes to internal.
1721 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
1722 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
1723 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
1724 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
1725 Care about Null and DBNull values is now in DataContainer.
1726 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
1727 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
1728 - Fix in CopyState : clone column errors.
1729 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
1731 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1733 * DataColumnCollection.cs :
1734 - Fix : Add() now delegates to Add(DataColumn).
1735 - autoIncrement list holds DataColumn objects, and not just column names.
1737 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
1740 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
1741 - DefaultValue fixes. Default value from now on is also stored in special record in
1742 DataTable, so we're able to set default value for the column faster (typed).
1745 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
1747 * DataSet.cs : children of non-root rows were not properly written.
1750 2004-06-10 Umadevi S <sumadevi@novell.com>
1751 * DataRelation.cs - Constructor
1752 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
1754 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
1756 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
1758 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
1760 * Constraint.cs: marked methods internal to fix public API
1761 * ConstraintCollection.cs: to fix public API, use
1762 DataTable.fInitInProgress to check whether initialization
1763 of DataTable is in progress
1764 * DataColumn.cs: added stubs for missing methods
1765 * DataRowBuilder.cs: marked Table property internal to
1767 * DataSet.cs: removed extra empty destructor, marked
1768 OnMergeFailed internal to fix public API
1769 * DataTable.cs: use fInitInProgress field to hold init
1770 status, to match MS.NET
1771 * DataView.cs: added missing attributes on IsOpen
1773 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
1775 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
1776 in XmlNamespaceManager.
1778 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
1780 * DataSet.cs : complex table content child was not properly added
1781 when it is the only one child in the parent table. Fixed bug #53959.
1783 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
1784 * DataTableTypeConverter.cs: added
1785 * DataView.cs: added missing attribute on Table property
1786 * DataViewManager.cs: moved attribute to correct property
1787 * UniqueConstraint.cs: removed extra ReadOnly attribute from
1788 IsPrimaryKey property
1790 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
1792 * DataRow.cs : ColumnsChanged event is not required in .ctor().
1794 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
1796 * XmlDataReader.cs : type change is required before setting value
1799 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1801 * DataSet.cs : Loop-break of the last fix was incorrect.
1803 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1805 * DataSet.cs : When a row has no parent row but the table has parent
1806 relation(s), that row had been always ignored.
1808 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1810 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
1811 rejected same-named tables in different hierarchy. Thanks to Boris.
1813 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1815 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
1816 infinite loop. Thanks to Boris for this fix.
1818 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
1820 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
1821 Thanks to Boris for this fix.
1823 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
1825 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
1826 for ReadXml(). Thanks to Boris.
1828 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
1830 - CheckReadOnlyStatus : use typed (and faster comparing).
1831 - EndEdit : bug fix - do not dispose record if it holds original version.
1832 - SetValuesFromDataRecord : Take care about autoincrement columns.
1835 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
1837 * MergeManager.cs : don't output debug message to Console.
1839 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
1841 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
1842 structure. Thanks to Boris Kirzner for the fix.
1844 2004-05-27 Umadevi S <sumadevi@novell.com>
1845 * DataRelationCollection.cs - fixed nunit test errors
1847 2004-05-27 Umadevi S <sumadevi@novell.com>
1848 * DataTableCollection.cs - fixed nunit test errors
1850 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1852 * DataColumnCollection.cs : NullReferenceException was thrown when
1853 the table was not found.
1854 * DataRowCollection.cs :
1855 Find() just returns null for null value under MS.NET 1.1.
1856 RemoveAt() should also avoid to call AcceptChanges() like Remove().
1857 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
1858 directly under MS.NET (for nunit test).
1860 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1862 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
1863 caused problem on qualified name to get schema Field name.
1865 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
1867 * XmlDataReader.cs : Now data reader is namespace aware in all places.
1868 When table's namespace is different, it entered to infinite loop.
1870 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1871 * MergeManager.cs : AdjustSchema now updates by reference new created table,
1872 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
1875 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1877 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
1878 * DataColumnCollection.cs : fixed parantethes.
1880 - AcceptChanges : do nothing if row state is unchanged.
1881 - GetChildRows, GetParentRows : bug fix (use correct index).
1882 * DataRowCollection.cs : bug fix (compare all row's values).
1883 * DataTable.cs : bug fix (use correct row version).
1885 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1887 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
1888 When content type is Mixed, text column is not required (it is
1889 required only when the complex type has no particle).
1890 "Repeated element" column is also created (considering maxOccurs=0
1891 and complex content extension).
1893 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1895 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
1898 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
1900 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
1901 Fixed relation inference to consider attribute XPath.
1903 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
1905 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
1908 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1910 * DataColumn.cs - removed default member attribute.
1912 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1915 DataColumnChangeEventArgs.cs,
1916 DataColumnCollection.cs,
1918 DataRowCollection.cs,
1920 Index.cs : Data storage in the row is redesigned. Now data is stored in
1921 typed containers inside DataColumn. Row holds its versions as indexes inside
1922 each of data container, accessed through the row that holds it.
1924 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
1926 * UniqueConstraint.cs - added comment.
1928 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
1930 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
1933 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
1936 XmlDataInferenceLoader.cs,
1938 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
1939 XmlEncode every local name to write. This should fix bug #58268.
1941 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
1943 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
1944 Supported repeated elements. Removed MonoTODOs.
1945 * XmlDataInferenceLoader.cs : Design change to support ignored
1946 namespace and repeated elements.
1947 * XmlSchemaDataImporter.cs : Added mapping support classes.
1949 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
1951 * CustomDataClassGenerator.cs :
1952 Added property parent "[foo]Row" and children "Get[foo]Row" support
1953 for custom DataRow classes.
1954 Fixed DataColumn property accessibility (public --> internal).
1956 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1958 * CustomDataClassGenerator.cs :
1959 - Put classes inside custom DataSet class.
1960 - Added automatic DataRelation creation support.
1961 - Added Constraints creation support. That is done separate from
1962 relations, since they might be independently created.
1963 - Added non-MS public DataRelation fields.
1964 - Removed extraneous "DataRelation type generation" code.
1965 - Fixed custom_dataset.Initialize() not to create "c" field that
1966 was created more than once.
1967 - Implemented AddxxxRow() that takes parameters for every column.
1969 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1971 * XmlSchemaDataImporter.cs : When primary key is used more than once,
1972 DataRelation borked because of empty parent column name.
1974 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1976 * XmlSchemaDataImporter.cs : When Creating constraints with related
1977 to DataRelation creation, also set PrimaryKey to the parent table.
1979 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
1981 * XmlSchemaDataImporter.cs :
1982 Design change to add indirect table and relation structures.
1983 Support for "relation" annotation for local element.
1984 Support for repeatable simple element column (maxOccurs > 1).
1985 Fixed handling of Nested property on DataRelation (for globally
1986 annotated relation, Nested is false).
1988 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
1990 * DataRow.cs : Added DataElement property to avoid storing every row-
1991 element mapping. It stored even for nodes that should be removed.
1993 2004-05-13 Umadevi S <sumadevi@novell.com>
1995 * RelationshipConverter.cs - Stubbed this class
1996 * DataRelation.cs - added TypeConveterAttribute
1998 2004-05-13 Umadevi S <sumadevi@novell.com>
2000 * DataColumnCollection.cs - Added ResDescriptionAttribute
2001 * DataRelation.cs - Added TypeConverterAttribute
2002 * DataRelationCollection.cs - Added DefaultPropertyAttribute
2003 * DataRowView.cs - Added GetHashCode method with a TODO tag
2004 * DataSet.cs - Added DesignerAttribute
2005 * DataView.cs - Added DesignerAttribute
2006 * DataViewManager.cs - Added DesignerAttribute
2007 * DataViewSetting.cs - Added TypeConverterAttribute
2009 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
2011 * DataRow.cs : Added XmlDataElement initialization code.
2013 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
2015 * XmlDataInferenceLoader.cs :
2016 It now requires XmlDocument as input. Improved identification of
2017 DataSet element. Removed extra lines.
2018 Moved boresome design notes to bottom of the source and
2019 added standalone runnable driver (not included on build).
2021 Update with related to the change above.
2022 WriteXml() should call Flush() after writing. This fixes bug #58327.
2023 * XmlSchemaDataImporter.cs :
2024 Improved indentification of DataSet element.
2026 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
2027 * DataTable: marked initStatus enum internal
2029 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
2030 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
2032 * DataRowView.cs: removed extra Error property
2033 * DataRow.cs: reduced accessibility of CollectionChanged method
2035 * DataColumnPropertyDescriptor.cs: made class internal
2036 * DataColumn.cs: removed extra TypeConvertorAttribute
2037 * ConstrainCollection.cs: marked PostEndInit method internal
2039 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
2042 In WriteXmlSchema(), when complex type contains simple type content
2043 attributes must not added to XmlSchemaComplexType directly. It
2044 causes schema compilation error.
2045 DataRelation should not be output when related columns are hidden.
2047 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
2049 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
2050 also expected to do ReadXml(), but I will remove that feature and
2051 support column reordering).
2052 * XmlSchemaDataImporter.cs : Always initialize dataset name.
2053 Always set Nested and primary key for parent table.
2054 * XmlDataReader.cs : Now it is used.
2055 Top level element might not match to dataset name nor any table
2056 name, but still possible to read content tables.
2057 Handle empty element correctly in some places.
2058 Handle Fragment mode (read up XmlReader to the end).
2059 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
2060 XmlDataInferenceLoader and XmlDataReader.
2062 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2065 Eliminated CRLF injection.
2066 More clear message in Clear().
2067 Updates reflecting XmlSchemaDataImporter change.
2068 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
2069 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
2070 but that depends on different behavior from ms.net).
2071 Set locale also for DataTable.
2072 Add xs:element only when target namespace matches to the
2073 element's namespace. Otherwise, add xs:import for external namespace.
2074 Put xs:sequence for dataset element's particle _only when_ actual
2077 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2079 * XmlDataReader.cs : Added. This class will work better when our
2080 schema inference and schema read engine gets improved. (It contains
2081 standalone testable Driver class.)
2083 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2085 * ForeignKeyConstraint.cs : Check step change. Existence then column
2086 validity. just for tests.
2087 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
2090 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2092 * DataSet.cs : Ignore empty content only when output type is diffgram.
2094 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2096 * CustomDataClassGenerator.cs : Modified that DataSet contains each
2097 DataTable field so that each table property can access them directly.
2098 (plus, modified standalone code driver code: shouldn't affect)
2100 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
2102 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
2104 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2106 * XmlSchemaDataImporter.cs :
2107 SimpleContent column support.
2108 Annotated relation support.
2109 Top-level element is counted only when its type is complex.
2110 xs:anyType is no longer treated as complex type.
2111 dataset existence is mandatory now.
2112 Improved DataType and DefaultValue support.
2113 Attribute namespace is properly handled now.
2114 Prohibited attribute is now treated as hidden column.
2115 Reject list or union simple type.
2117 Still incomplete 1) to read relationship in some cases, 2) to
2118 determine whether an element is dataset or table, 3) thus to
2119 exclude extraneous column, 4) to remove extraneous *_Id column.
2121 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2124 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
2125 serialization .ctor() (thus schema read/inference should be easier).
2126 DataRowSorter should consider Table's Locale.
2128 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2130 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
2131 use it instead of duplicating logic.
2133 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2135 * ConstraintCollection.cs :
2136 Use Table.CaseSensitive and Table.Locale to compare strings.
2137 Duplicate constraint name exception does not occur under .NET 1.1.
2139 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
2141 * XmlSchemaDataImporter.cs: Added little type check.
2143 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
2145 * DataSet.cs: Implemented support for runtime serialization. Fixed support
2146 for xml serialization.
2147 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
2149 2004-04-30 Umadevi S <sumadevi@novell.com>
2150 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
2151 * DataTableCollection.cs : Tested and removed TODO
2152 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
2154 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2156 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
2158 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2160 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
2161 constraint is defined on single column.
2163 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2165 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
2166 not ArgumentException (maybe changed after 1.1).
2168 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2170 * DataRow.cs : When Column was added and it was AutoIncrement column,
2171 it extended the item object array incorrectly.
2172 (Plus tiny comment and incorrect indentation fix.)
2174 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2176 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
2178 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2180 * DataRow.cs : Bug fix in CopyValuesToRow().
2182 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2184 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
2185 each of the columns should not be unique, but only all the constraint's columns together.
2187 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
2190 - Added using of list of autoIncrement columns
2191 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
2192 - Fix in CheckNullConstraints
2193 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
2194 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
2195 - Added onColumnRemoved() method to threat column removal accurately.
2197 * DataRowCollection.cs :
2198 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
2199 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
2202 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
2204 * DataColumnCollection.cs :
2205 - Perfomance fixes :
2206 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
2207 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
2208 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
2211 - Uses autoincrement list of a table
2213 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2215 * XmlDataLoader.cs : Even when it should ignore schema, it was
2217 * XmlSchemaDataImporter.cs : DataRelation creation support.
2218 Improved "DataSet" element handing. When attributes are on the
2219 element, it is not a "DataSet" element.
2220 Fixed parent key column name.
2221 Unique name creation is not required. Just raise an error.
2222 Fill facet also for attribute types.
2224 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2226 * DataRow.cs : Null check for CheckReadOnlyStatus() and
2227 CheckNullConstraints(), with some coding guideline fixes.
2228 Type check should be done by Type instance comparison.
2230 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2232 * DataColumnCollection.cs : When add a column to the collection, fill
2233 auto-increment column.
2235 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
2237 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
2239 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
2241 * CustomDataClassGenerator.cs : Added.
2242 * TypedDataSetGenerator.cs : Implemented Generate().
2243 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
2244 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
2246 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
2248 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
2250 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
2252 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
2254 2004-04-23 Umadevi S (sumadevi@novell.com)
2255 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
2256 - Added error handling to the above methods
2258 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
2260 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
2261 the support is incomplete yet).
2262 * XmlDataLoader.cs :
2263 Reverted ReadModeSchema() argument change. XmlReadMode would be
2264 useful to handle IgnoreSchema.
2265 Don't overwrite DataSetName when mode is not such kind.
2266 Set Prefix and Namespace as well as DataSetName.
2267 AllowDBNull looks set false by default for element column.
2268 Set unique constraint as primary key when infering the table schema.
2270 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
2273 Never set null string for Prefix and Namespace.
2274 In InferXmlSchema() when null XmlReader is passed, just do nothing.
2275 In WriteXmlSchema(string), earlier try block.
2276 In BuildSchema(), try to add serialization namespaces for each
2277 namespaces in DataSet/DataTable/DataColumn.
2278 Removed namespace argument from WriteColumnAsElement() and don't
2279 overwrite when namespace is "". This fixes bug #57330.
2280 * DataColumn.cs : For Namespace and Prefix, never set null.
2282 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2284 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
2285 before creating and adding foreign key constraint and relation.
2287 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2289 * MergeManager.cs : In AdjustSchema() source table clone should be added
2290 and not the table itself.
2292 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2295 - CaseSensitive : Additional fix (removed unnesessary assignment).
2296 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
2298 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2300 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
2302 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
2305 - EndLoadData() : perfomance fix in case of null constraint violation
2306 during data load (also in DataRow.cs).
2307 - CaseSensitive : If DataTable belongs to DataSet it should always use
2308 DataSet.CaseSensitive untill explicitly changed.
2309 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
2312 - Pefromance fix in case of null constraint violation
2313 during data load (also in DataTable.cs).
2314 - CollectionChanged() : use correct column number after new DataColumn was added
2315 (differs in case some DataColumn was previosly removed).
2316 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
2318 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
2320 * DataColumnCollection.cs : Since unique constraint is added now
2321 in DataColumn.SetTable() the additional creation of constraint in
2322 DataColumnCollection.Add() is redundant and causes exception - fixed.
2324 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
2326 * XmlDataLoader.cs : Added "never add data rows" mode.
2327 Removed unused code. However, it is temporary fixes to unify
2328 ReadXml() and InferXmlSchema().
2329 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
2331 I'll create another XmlDataLoader since there are many problems
2332 such that 1) it is too waste to read the entire xml into an
2333 XmlDocument, 2) it does not handle attributes correctly, and 3) it
2334 must handle "ignored namespaces".
2336 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
2338 * Added XmlSchemaDataImporter.cs (new schema reader).
2339 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
2340 for ReadXmlSchema().
2341 Let schema reading work to ReadXmlSchema().
2342 Don't return ReadSchema when argument read mode was DiffGram.
2344 2004-04-15 Umadevi S (sumadevi@novell.com)
2345 * Updated Clone/Copy methods in DataSet along with Testcase
2346 * ForeignKeyConstraint.cs - special ctor implemented
2347 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).
2348 * Changes in ConstraintCollection.cs for the above
2349 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.
2352 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
2354 * XmlSchemaMapper.cs : set parent key and foreign key info to
2355 DataRelation when reading refkey constraints.
2356 Supply constraint name for fkey.
2358 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
2360 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
2361 mode is Auto, just ignore the schema if there is already schema info.
2362 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
2364 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
2367 - In MS output, XML declaration looks to have standalone decl (yes).
2368 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
2369 - ReadXml(reader, mode)
2370 1) return originally specified mode, instead of (always) Auto.
2371 2) Check empty reader.
2372 3) Check diffgram schema and content separately.
2373 4) When diffgram exists, remaining (the same-level) contents
2375 5) Similar fact should be applied, but somewhat different.
2376 InferSchema and IgnoreSchema just skips, Fragment reads both
2377 schema and content, others just reads schema.
2378 - Removed unused code.
2379 * XmlDataLoader.cs :
2380 - Read() should skip in some ReadMode.
2381 - Don't compare schema element name as case-insensitive (well,
2382 should schemas be checked here?)
2383 - Avoided BuildDocument() not to create confusing DataSet
2385 - Don't add any tables when reader has single element.
2386 * XmlDiffLoader.cs :
2387 When target table was not found, MS.NET doesn't raise an error.
2388 * XmlSchemaMapper.cs :
2389 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
2391 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
2394 - InferXmlSchema(): Throw explicit NotImplementedException now.
2395 - Don't put XML declaration everywhere. Write just for filename arg.
2396 - xmlns="" should not be written. Maybe WebService problem is
2397 because default namespace is overwritten. This patch will keep
2398 the WS problem away and actually fixes some unit tests (i.e. use
2399 explicit String.Empty for null namespace in WriteStartElement()).
2400 - MoveToContent() should always be called, not only when
2401 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
2402 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
2403 element. As to MSDN, diffgram does not contain schema.
2405 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2407 * DataTable.cs: made _initStatus private so that System.Data is CLS
2410 2004-04-13 Umadevi S <sumadevi@novell.com>
2411 * UniqueConstraint.cs:
2412 * ConstraintCollection.cs:
2414 - Implemented a Constructor for UniqueConstraint.cs
2415 - Used EndInit on DataTable to call a delegate which adds the
2416 constraints passed to the most recent call of AddRange().Used
2417 AddRange() on ConstraintCollection to check whether
2418 DataTable.BeginInit has occurred. If yes, save the argument
2419 constraint collection passed, then return. If no, Check whether the
2420 constraints are of type UniqueConstraint and initialized with the
2421 special constructor If yes Initialized the table property of this
2422 UniqueConstraint object with table assosciated with the current
2423 instance of ConstraintCollection class.
2425 2004-04-07 Marek Safar <marek.safar@seznam.cz>
2427 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
2429 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2432 * DataColumnCollection.cs:
2433 * DataRelationCollection.cs:
2434 * DataRowCollection.cs:
2435 * DataTableCollection.cs:
2436 * InternalDataCollectionBase.cs:
2437 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
2440 2004-04-05 Jackson Harper <jackson@ximian.com>
2442 * DataTable.cs: Add rows to the row list if there is no filter.
2444 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
2446 * DataColumn.cs : Setting Caption to null sets it to the empty string
2447 (ms.net behaviour, testcase is in DataColumnTest).
2449 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
2452 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
2454 * DataColumn.cs: In Expression setter, set the expression member even if
2455 it is an empty string.
2456 * DataSet.cs: Support serialization of byte[] columns.
2457 * XmlDataLoader.cs: Support deserialization of Guid columns.
2458 Set MappingType.Attribute to columns infered from attributes.
2460 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
2462 * ExpressionElements.cs : remove
2463 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
2464 Integration of new Mono.Data.SqlExpressions classes used in
2465 DataTable.{Select, Compute}.
2466 Fixes bug #55503 and lots of failures in DataTableTest.cs.
2468 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
2470 * Index.cs: Simple fix in ComparePartialRowNonUnique.
2471 This fixes bugs #56129 and #56014.
2473 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
2475 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
2476 stream after writing the dataset. This fixes bug #52581.
2477 Also added several writer.Close into finally blocks, so writers are properly
2478 closed in case of an exception.
2480 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2482 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
2483 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
2484 * ColumnTypeConverter.cs: Added stub
2485 * DefaultValueTypeConverter: Added stub
2486 * ConstraintConverter.cs: Added stub
2488 2004-03-04 Eran Domb <erand@mainsoft.com>
2490 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
2491 in MS.NET documentation (missing DataSet element etc).
2493 2004-03-04 Eran Domb <erand@mainsoft.com>
2496 * Index.cs : Rollback last changes.
2498 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
2500 * Index.cs : justa build fix.
2502 2004-03-03 Eran Domb <erand@mainsoft.com>
2505 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
2506 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
2507 This changes made for performance improvement.
2509 2004-02-08 Eran Domb <erand@mainsoft.com>
2511 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
2513 2004-02-08 Eran Domb <erand@mainsoft.com>
2515 * DataSet.cs: Fix some bugs in ReadXml().
2517 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
2519 * DataSet.cs: Added missing method that broke the build.
2521 2004-02-04 Eran Domb <erand@mainsoft.com>
2523 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
2525 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
2526 when all column are attributes (elements count is 0), we still want to add the relations. No relations
2527 can be on simple contents.
2528 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
2529 (AddForeignKeys) Check that the relation has constraints attach to it.
2530 * XmlConstants.cs : Added constant.
2532 2004-02-04 Eran Domb <erand@mainsoft.com>
2534 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
2535 DoWriteXmlSchema calls BuildSchema ().
2537 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
2539 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
2541 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
2543 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
2544 also be added to the dataset.
2545 In WriteTable(), do not write unchanged rows when writing the original
2546 version of the table.
2547 Added WriteIndividualTableContent(), for writing the contents of a single
2549 Changed BuildSchema and related methods, so it can generate a schema for
2550 any set of tables, not just the tables of the dataset (needed for
2551 single datatable serialization).
2552 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
2553 Also implemented some ReadXmlSchema methods.
2554 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
2555 instead of loading the full dataset in an XmlDocument. It is faster and
2556 saves memory. Also fixed several problems when generating the changes.
2557 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
2558 table serialization).
2560 2004-02-02 Eran Domb <erand@mainsoft.com>
2562 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
2563 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
2564 * DataTable.cs (NewRow): Create only one DataRowBuilder.
2565 Initiate new row with row id -1.
2566 * DataRow.cs : Add RowId property.
2567 * DataRowBuilder.cs : Add _rowId member.
2568 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
2570 2004-01-26 Eran Domb <erand@mainsoft.com>
2572 * XmlConstants.cs : Added some constants.
2573 * DataColumn.cs : Added a method to retrive AutoIncrement value.
2574 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
2575 parent table column.
2576 * XmlDiffLoader.cs : Convert the value comming from the xml.
2577 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
2578 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
2579 (ReadXmlSchemaElement) : Set the locale of the dataset.
2580 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
2581 (GetColumnType) : New method to get the column type from the attribute value.
2582 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
2583 and add the constraint to the table.
2584 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
2586 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
2587 Writing more information to the schema for interoperability with ms.net.
2588 Improve diffgarm writing mode.
2591 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
2593 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
2595 2004-01-21 Eran Domb <erand@mainsoft.com>
2597 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
2598 Do not set the child column to be AutoIncrement.
2599 Create the new column for the relation as MappingType.Hidden so they will not be serialized
2600 when writing the dataset to xml.
2602 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
2604 * Added missing TypedDataSetGenerator.cs.
2606 2004-01-08 Eran Domb <erand@mainsoft.com>
2608 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
2609 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
2610 InferSchema, ReadSchema and IgnoreSchema.
2611 * XmlDataLoader.cs : All modes use the same logic.
2612 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
2614 2004-01-06 Eran Domb <erand@mainsoft.com>
2616 * DataRelationCollection.cs : Use IndexOf in indexer.
2617 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
2618 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
2619 * XmlDiffLoader.cs : Reading nested tables.
2620 * XmlSchemaMapper.cs : Reading the relation.
2621 * XmlConstants.cs : Adding some constants.
2623 2004-01-05 Jackson Harper <jackson@ximian.com>
2625 * DataView.cs: Set readonly property of property descriptor. This
2628 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
2630 * DataRelationCollection.cs : Fixed incorrect generation of default
2632 * DataSet.cs : Added missing functionality in WriteXml().
2633 * XmlConstants.cs : Added new constants.
2635 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
2637 * DataSet.cs : Fixed incorrect WriteXml() signature.
2639 2003-12-18 Jackson Harper <jackson@ximian.com>
2641 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
2643 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
2645 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
2646 they take shape of xml. This fixed bug #52240
2648 2003-12-16 Tim Coleman <tim@timcoleman.com>
2649 * KeyRestrictionBehavior.cs:
2650 New stubs added for .NET 1.2
2654 2003-12-08 Eran Domb <erand@mainsoft.com>
2655 * DataColumn.cs (Expression) : Validate the expression.
2657 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
2658 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
2660 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
2661 (RejectChanges) : Detach row when state was Added.
2662 (CollectionChanged) : Fix a bug.
2664 * ExpressionElement (ValidateExpression) : Fix a bug.
2666 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
2667 a parent row in the parent table.
2668 (_validateColumns) : Fix bugs.
2670 * MergeManager.cs (AdjustSchema) : Fix a bug.
2672 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
2675 2003-11-30 Eran Domb <erand@mainsoft.com>
2676 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
2677 (Add) : Find if the new column name is the same as the one found in IndexOf.
2678 (IndexOf) : New method.
2679 (Contains) : Use new IndexOf.
2680 (IndexOf) : Use new IndexOf.
2682 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
2683 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
2685 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
2686 (Delete) : Detach row if the RowState was Added.
2687 (GetChildRows) : Get the array form the ChildTable.
2688 (GetParentRows) : Get the array from the ParenTable.
2690 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
2692 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
2694 * DataTable.cs (PrimaryKey) : Fix bugs.
2695 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
2697 * DataTableCollection.cs (Add) : Fix a bug.
2699 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
2700 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
2701 Some code style changes (tab instead of whit spaces, alignment, etc...).
2703 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
2705 * MergeManager.cs (AdjustSchema) : Fix a bug.
2709 2003-11-26 Miguel de Icaza <miguel@ximian.com>
2711 * DataSet.cs: Add a few more missing methods, code style updated
2714 2003-11-26 Tim Coleman <tim@timcoleman.com>
2716 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
2717 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
2718 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
2719 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
2720 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
2721 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
2722 * StatementCompletedEventHandler.cs UpdateOptions.cs:
2723 New classes added for NET_2_0
2724 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
2725 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
2726 Modifications to add new NET_2_0 functions
2728 2003-11-25 Tim Coleman <tim@timcoleman.com>
2732 2003-11-21 Pedro Martínez Juliá <yoros@wanadoo.es>
2734 * DataRow.cs: Detached row can be accesible (new rows from data
2735 table are detached). Closes but #51263.
2737 2003-11-19 Eran Domb <erand@mainsoft.com>
2738 * DataRow.cs : Throw exceptions if Row is Detached.
2739 (EndEdit) : Check that we are not in middle of ChangeEvent.
2740 (AcceptChanges) : Detach the row.
2742 * DataRelation.cs : throw correct exception.
2743 *UniqueConstraint.cs : throw correct exception.
2746 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
2748 * DataRow.cs: Use RemoveInternal instead of Remove because the last
2749 one uses Delete and AcceptChanges.
2751 * DataRowCollection.cs: When removing, Delete and AcceptChanges
2752 method from the row are called. Added an internal method that will
2753 be used by DataRow to "physically" remove the row from the list.
2755 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
2757 * DataRowCollection.cs: To follow the specification: Remove and
2758 RemoveAt should remove the row. But needed to call DeletingDataRow
2759 to prepare the deleting.
2761 * DataRow.cs: Don't call DeletingDataRow when it is called by the
2762 method Table.Rows.Remove.
2764 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
2766 * DataRowCollection.cs: Make the row be deleted by itself. If not,
2767 it fails because we need to call OnRowDeleting and OnRowDeleted. It
2768 is full implemented inside DataRow.
2770 2003-11-05 Eran Domb <erand@mainsoft.com>
2771 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
2773 2003-11-04 Eran Domb <erand@mainsoft.com>
2774 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
2776 (GetChildRows) : Adding some checks.
2777 (GetParentRows) : Adding some checks. Fix a bug in implementation.
2778 (SetParentRow) : Added implementation.
2780 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
2781 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
2782 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
2783 * MergeManager.cs : Check that the target table is not null.
2785 2003-10-27 Eran Domb <erand@mainsoft.com>
2786 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
2787 can be converted to the column type.
2789 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
2791 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
2792 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
2794 * DataRowCollection.cs (Add) : Fixing a bug.
2795 (Clear) : Before clearing the array check that there is no violation of FK constraint.
2797 * DataSet.cs (Prefix) : If value is null chage it to empty string.
2798 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
2800 * ExpressionElement : Adding support for IN expresion.
2802 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
2803 (Select) : Adding support for DataViewwRowState.
2805 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
2807 * MergeManager.cs (MergeRow) : Fix bugs.
2809 2003-10-27 Eran Domb <erand@mainsoft.com>
2810 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
2811 check null values when ending loading data.
2813 * DataSet.cs (RejectChanges) : Imlementation.
2814 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
2815 change it to empty string.
2817 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
2819 2003-10-22 Eran Domb <erand@mainsoft.com>
2820 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
2822 * ConstraintCollection.cs (RamoveAt): Change implemntation.
2824 * DataTableCollection (CanRemove): Removing cast to Constraint.
2826 2003-10-22 Eran Domb <erand@mainsoft.com>
2827 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
2828 (Clear): The collection was cleared without removing the relation from the parent and child tables.
2830 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
2831 (HasChanges, Reset): Imlementation.
2833 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
2834 This is because the we do not no when to turn off the flag.
2835 (Locale): Changing implementation to behave like ADO.NET.
2836 (AcceptChanges): Fix bug.
2837 (Clear): Check that this table is not referenced from a foreign key constraint.
2838 (Copy): Do not try to access a deleted row.
2839 (CopyProperties): Copy the PrimaryKey.
2840 (GetChanges, ImportRow): Implementation.
2841 (LoadDataRow): Adding implementation if the table has PrimaryKey.
2842 (ToString): Changing implementation to behave like ADO.NET.
2844 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
2846 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
2847 (HasErrors): Implementation.
2848 (Delete): Added checking for child rows of the deleted row.
2849 (EndEdit): Added checking for child row and firing events.
2850 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
2851 (GetColumnsInError): Added a check for null values in column error.
2852 (HasVersion): Added special treatment for special RowState.
2853 (CollectionChanged): More checks to avoid NullReferenceException.
2855 * DataRowCollection.cs (Remove): Fix a bug.
2858 2003-10-01 Duncan Mak <duncan@ximian.com>
2860 More patches from Eran Domb <erand@mainsoft.com>.
2862 * MergeManager.cs: New file.
2864 * DataRelationCollection.cs (AddCore): Check that a
2865 UniqueConstraint is already exists. It loops over the Relations
2866 instead of the Constraints.
2867 (Add, AddCore): The relation was added twice.
2869 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
2871 2003-09-30 Duncan Mak <duncan@ximian.com>
2873 Patches from Eran Domb <erand@mainsoft.com>.
2875 * DataRelation.cs (constructor): When the name of the relation is
2876 null, it should return an empty, not "Relation".
2878 * DataRow.cs (AcceptChanges): Added special case for
2880 (CancelEdit): Set editing flag to false.
2881 (IsNull): Check that the value is DBNull.
2883 * DataRowCollection.cs (Add): There was no check that the table of
2884 the collection is owned by a DataSet.
2886 * DataSet.cs (OnMergeFailed): Added.
2888 * UniqueConstraint.cs (AssertConstraint): There was no check that
2889 values in the row are not null, where it is a primary key
2890 column. Also check that the row has a proposed version, if not,
2891 get the current version when we compare the rows.
2893 2003-09-25 Duncan Mak <duncan@ximian.com>
2895 Patches from Eran Domb <erand@mainsoft.com>.
2897 * DataColumn.cs (Unique): Implemented.
2900 * ConstraintCollection.cs:
2901 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
2902 an Exception thrown. Details:
2903 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
2905 * DataRowCollection.cs (Add): There is no checking that there is
2906 no violation of the unique constrains.
2908 * UniqueConstraint.cs (AssertConstraint): There is no checking on
2909 all columns in the constraint.
2911 * DataTableCollection (Add): Correctly throw an Exception, more
2913 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
2914 (Remove, RemoveAt): Implemented.
2916 2003-07-31 Duncan Mak <duncan@ximian.com>
2918 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
2920 2003-07-25 Ravi Pratap <ravi@ximian.com>
2922 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
2923 method on a delegate is disallowed - fix this.
2925 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
2927 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
2928 xml serialization. Modified method of writing schema. Now it creates
2929 a XmlSchema object and serializes it using XmlSerializer.
2930 * XmlConstants.cs: Added constants for data type names.
2931 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
2932 type specified in the column.
2934 2003-04-20 Alan Tam <Tam@SiuLung.com>
2936 * DataRelationCollection.cs: Fix a bug that prevent relations
2937 from being added via DataSet.
2939 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
2941 * UniqueConstraint.cs: one tiny fix.
2943 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
2945 * DataTable.cs: Remove UniqueConstraints when adding new ones
2947 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
2949 * DataColumnCollection.cs: Little 'case sensitive' fix
2951 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
2953 * DataRow.cs: AutoIncrement handling to Constructor
2954 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
2956 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2958 * DataTable.cs: Some fixes to PrimaryKey etc...
2959 * UniqueConstraint.cs: Little clean up
2961 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2963 * DataTable.cs: Tiny fix to ToString () -method
2965 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
2967 * ConstraintCollection.cs: Little fix.
2968 * DataColumn.cs: Added new internal method SetUnique()
2969 * UniqueConstraint.cs: some little fixes
2971 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
2973 * DataRowCollection.cs: Bugfixes, implementation,...
2975 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
2977 * DataColumn.cs: If DataType if set to something else than short, int
2978 or long and AutoIncrement is true, AutoIncrement is must set to false.
2980 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2983 (BeginEdit): fixed array bound problem when a column has been added.
2984 (EndEdit): just assign proposed to current as proposed is set to null.
2985 This also fixes another array boudn problem.
2987 2003-03-21 Alan Tam <Tam@SiuLung.com>
2989 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
2990 EndEdit and AcceptChanges to act correctly according to DataRowState
2992 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
2993 attached and detached from the collection.
2995 2003-03-20 Alan Tam <Tam@SiuLung.com>
2997 * DataColumn.cs: Store empty string for Expression when null is passed in.
2998 Classes generated by XSD.exe passes null by default.
3000 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
3002 * DataColumnCollection.cs: Tiny clean up
3004 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
3006 * DataColumn.cs: little fixes.
3007 * DataColumnCollection.cs: Lots of little fixes and improvments.
3009 2003-03-12 Alan Tam <Tam@SiuLung.com>
3011 * DataSet.cs: Fixed a bug that the file written does not close correctly.
3013 2003-03-08 Alan Tam <Tam@SiuLung.com>
3015 * DataRelationCollection.cs: Removed the mis-overridden methods
3016 * DataRow.cs: Fixed an attribute
3017 * DataSet.cs: Fixed the modifiers
3019 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
3021 * DataTableCollection.cs: The Contains (string name),
3022 IndexOf (string name) methods, and item[string name] indexer
3023 now behave more like .NET with respect to case-sensitivity.
3024 That is if there is an exactly matching item then this one is used.
3025 If there is only one item differing in case then it used.
3026 If there are more than one item differing in case then
3027 Contains returns false, IndexOf returns -1, and item[]
3028 throws an ArgumentException.
3030 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
3032 * ExpressionElement.cs: More implementation.
3034 2003-02-28 Alan Tam <Tam@SiuLung.com>
3035 * DataSet.cs: Changed WriteTable so that it now calls the newly written
3036 WriteObjectXml to direct the call to the respective XmlConvert method.
3037 This fixes the wrong format written to XML files of bool, float,
3038 double, DateTime and TimeSpan types.
3040 2003-02-25 Alan Tam <Tam@SiuLung.com>
3042 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
3043 * DataRelationCollection.cs: Implemented AddRange and Contains.
3044 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
3045 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
3046 Reimplemented most Add methods to eliminate duplicated checks.
3047 Centralized RelationName generation procedure in GetNextDefaultRelationName.
3049 2003-02-25 Alan Tam <Tam@SiuLung.com>
3051 * DataColumn.cs: Fixed wrong storage representation of Expression
3052 (using empty string instead of null) so that ToString() returns nothing.
3053 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
3054 auto column naming now works as expected. Reimplemented some Add methods
3055 to eliminate code duplication.
3057 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
3059 * DataTable.cs: DataTable.CaseSensitive follows parent
3060 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
3061 been changed directly from DataTable
3063 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
3065 * DataSet.cs: When CaseSensitive property is changed all of the Tables
3066 of DataSet have to change too
3068 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
3070 * InternalDataCollectionBase.cs: revert change to field
3073 * DataViewManager.cs
3076 * DataSet.cs: commented use of DesignerAttribute
3077 because it broke the build. According to MSDN,
3078 DesignerAttribute does not have a zero-argument constructor
3080 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
3082 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
3084 2003-02-18 Alan Tam <Tam@SiuLung.com>
3086 * DataRow.cs: Implemented GetParentRow and GetParentRows.
3087 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
3088 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
3089 RaisePropertyChanging.
3090 * DataTable.cs: Implemented NewRowArray.
3091 * DataTablePropertyDescriptor: Fixed a modifier.
3092 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
3093 * PropertyCollection.cs: Minor fix.
3094 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
3095 * DataRelation.cs DataRelationCollection.cs DataRow.cs
3096 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
3097 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
3098 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
3099 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
3100 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
3102 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
3104 * ExpressionElement.cs: More implementation
3106 2003-02-05 Alan Tam <Tam@SiuLung.com>
3108 * DataSet.cs: Added framework for DataSet.Update Implemented missing
3109 methods GetSchemaSerializable, GetSerializationData,
3110 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
3112 * DataTable.cs: Implemented missing methods CreateInstance and
3113 GetRowType for DataTable
3115 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
3117 * DataSet.cs: Implemented private method MapType for
3118 mapping datatypes for XmlSchema
3120 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3122 * DataView.cs: implemented Dispose.
3124 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
3126 * ExpressionElement.cs: Added new file. This file is for parsing
3127 and DataData.Select () -methods and DataColumn.Expression -property
3128 * DataTable.cs: Implemented Select(string) -method
3130 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
3132 * DataSet.cs: One little fix to writing xml
3134 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
3136 * XmlSchemaMapper.cs: Some fixes.
3137 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
3140 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
3142 * UniqueConstraint.cs: Do not set columns Unique property true
3144 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
3146 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
3148 * DataTableCollection.cs: Now names new DataTable if it doesn't
3149 already have a name.
3151 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
3153 * XmlSchemaMapper.cs: Improvments.
3154 * XmlConstaints.cs: Added more constants.
3155 * DataSet.cs: Improvments of reading and writing xml
3156 * DataColumn.cs: Added default values of properties.
3158 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
3160 * XmlSchemaMapper.cs: Some improvments
3162 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
3164 * DataRowCollection.cs: Added IndexOutOfRangeException
3165 * DataTableCollection.cs: Added OnCollectionChanging and
3166 OnCollectionChanged events.
3167 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
3168 * DataTable.cs: Implemented Copy () and Clone () methods.
3169 * XmlDataLoader.cs: some fixes.
3170 * XmlSchemaMapper.cs: comments.
3172 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3174 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
3176 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3178 * DataColumnPropertyDescriptor.cs: fixed typo.
3179 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
3180 to get the DataViewManager and removed TablePD class.
3181 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
3182 suggested by danmorg.
3184 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
3186 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
3188 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
3189 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
3191 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3193 * DataView.cs: made dataViewManager internal.
3194 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
3195 properties of the object, but the values of the columns present in a
3198 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
3199 which returns a PropertyDescriptorCollection. Created a new class
3200 derived from PropertyDescriptor that treats Table as an object whose
3201 properties are DataRowView.
3203 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3205 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
3207 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3209 * DataColumn.cs: ExtendedProperties is by default !null-
3211 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3213 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
3214 set column's ordinal.
3216 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
3219 * XmlDataLoader.cs: XmlReader closing fixes.
3220 * XmlSchemaReader.cs: Added support for ref=
3222 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
3225 - Added XmlReader and XmlWriter Closing.
3226 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
3227 * XmlSchemaMapper.cs
3228 - Much better way IMHO to map xmlschema than the old one in
3229 DataSet.cs. Its, more flexible, cleaner, ...
3231 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
3233 * XmlDataLoader.cs: Reading diffgrams.
3235 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
3237 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
3238 * DataTable.cs: Added ChanginDataColumn () for triggering
3239 DataColumnChanging event
3241 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3243 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
3245 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3247 * DataSet.cs: Indentations to WriteXml ()
3249 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
3252 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
3253 class XmlDataLoader.cs
3255 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
3257 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
3259 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
3261 * DataSet.cs: Started to implement ReadXml-methods.
3263 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3265 * DataSet.cs: implemented DefaultViewManager and GetList.
3267 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
3268 DataList in System.Web.
3270 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
3273 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
3276 * DataTable.cs: Fixed NullException (rollback -event)
3277 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
3279 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
3282 * DataRowCollection.cs: Moved event triggering from DataRow to
3285 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
3287 * DataSet.cs: Little fix to WriteTable () -method
3288 and DoReadXmlSchema () -method.
3290 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
3292 * DataSet.cs: Clean up to reading xmlschema. This looks much better
3293 now (work better too), but it not working correctly yet.
3295 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
3298 * DataRowCollection.cs: Added some event handlins stuff.
3299 * DataSet.cs: Some fixes.
3300 * DataTable.cs: Added event handlers.
3302 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
3304 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
3306 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
3308 * System.Data/DataRow.cs: Added internal property XmlDataID
3310 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
3312 * DataSystem.Data.DataTableCollection.cs:
3313 Removed HashTable. There could be situations where DataTable
3314 is added to collection before it hava TableName. So using
3315 HashTable is impossible.
3317 2002-11-19 Carlos Guzmán Álvarez <carlosga@telefonica.net>
3319 * DataRow.cs: an object that is equal to null
3320 should be allowed to be set in this indexer too
3323 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
3325 * DataColumnPropertyDescriptor.cs: added file
3327 * System.Data/DataRowView.cs: started implementation
3329 * DataTable.cs: stubbed more interfaces. Implemented
3330 IListSource.GetList()
3332 * DataView.cs: stubbed more interfaces. Implemented
3333 some properties and methods: GetEnumerator(),
3334 ITypedList.GetItemProperties, Item indexer, CopyTo()
3336 2002-05-18 Nick Drochak <ndrochak@gol.com>
3338 * DataRow.cs: Fix typo.