2008-05-30 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Data / System.Data / ChangeLog
index d4da4cf6ab2c95aae49466aa7aacd309fbfbe758..49d2445abd45ff8b2bd6ca069a80f9a5d61e0ccf 100644 (file)
@@ -1,3 +1,325 @@
+2008-05-30  Marek Habersack  <mhabersack@novell.com>
+
+       * Constraint.cs: do not use synthetized event accessors (to avoid
+       locks).
+
+2008-05-29  Marek Habersack  <mhabersack@novell.com>
+
+       * DataColumn.cs: do not use synthetic methods for events - this
+       avoids unnecessary locking, especially for internal events.
+
+2008-04-21  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DataRowView.cs: Modified argument names to match MS. Use 
+       String.Empty instead of "". Code formatting.
+
+2008-04-16  Veerapuram Varadhan <vvaradhan@novell.com>
+
+       * XmlDataInferenceLoader.cs (ReadXml): Make sure the name of
+       reference key column(s) in child tables are unique.
+
+       * XmlSchemaWriter.cs (WriteSchema, WriteDataSetElement,
+       WriteTableType, WriteChildRelations): Handle the scenario wherein
+       we have a relation and only one table.  This can occur when we
+       have an XML with same parent/child table names. 
+       
+2008-03-31  Veerapuram Varadhan <vvaradhan@novell.com>
+
+       * DataView.cs: Reverting rev#98474 changes - as it broke quite a
+       few test profiles.
+       
+2008-03-23  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DataSet.cs: Corcompare fix.
+       * IDataRecord.cs: Corcompare fix.
+
+2008-03-22  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DataViewSettingCollection.cs: Corcompare fixes and code formatting.
+       * SyntaxErrorException.cs: Corcompare fixes and code formatting.
+       * EvaluateException.cs: Corcompare fixes and code formatting.
+       * StrongTypingException.cs: Coecompare fixes and code formatting.
+       * ReadOnlyException.cs: Corcompare fixes and code formatting.
+       * DataTableCollection.cs: Corcompare fixes and code formatting.
+       * MissingPrimaryKeyException.cs: Corcompare fixes and code formatting.
+       * DeletedRowInaccesibleException.cs: Corcompare fixes and code
+       formatting.
+       * DataSet.cs: Corcompare fixes and code formatting.
+       * DuplicateNameException.cs: Corcompare fixes and code formatting.
+       * DataView.cs: Corcompare fixes and code formatting.
+       * VersionNotFoundException.cs: Corcompare fixes and code formatting.
+       * MergeFailedEventArgs.cs: Corcomare fixes and code formatting.
+       * InvalidExpressionException.cs: Corcompare fixes and code formatting.
+       * DBConcurrencyException.cs: Corcompare fixes and code formatting.
+       * DataRowView.cs: Corcompare fixes and code formatting.
+       * DataViewManager.cs: Corcompare fixes and code formatting.
+       * ConstraintException.cs: Corcompare fixes and code formatting.
+       * InvalidConstraintException.cs: Corcompare fixes and code formatting.
+       * IDataRecord.cs: Corcompare fixes.
+       * RowNotInTableException.cs: Corcompare fixes and code formatting.
+       * TypeDataSetGeneratorException.cs: Corcompare fixes and code
+       formatting.
+       * InRowChangingEventException.cs: Corcompare fixes and code formatting.
+       * NoNullAllowedException.cs: Corcompare fixes and code formatting.
+       * DataException.cs: Corcompare fixes and code formatting.
+
+2008-03-17  Veerapuram Varadhan <vvaradhan@novell.com>
+       
+       ** Fixes part1 of #357947
+       * DataView.cs: (OnRowDeleted): Don't call update, instead delete the row 
+       directly from Index.  Peformance fix submitted by Hubert FONGARNAND 
+       <informatique.internet@fiducial.fr>.
+
+2008-02-04 Arina Itkes <arinai@mainsoft.com>
+       
+       * DataTable.cs: Fix for IXmlSerializable.ReadXml.
+
+2008-01-28 Arina Itkes <arinai@mainsoft.com>
+       
+       * DataTable.cs: Fix for IXmlSerializable.WriteXml.
+
+2007-10-21  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DataColumn.cs: Fixed ParamName of ArgumentNullException. Modified
+       exception message for invalid DateTimeMode value to match MS. Code
+       formatting.
+
+2007-10-19  Nagappan <anagappan@novell.com> 
+
+       * DataRelation.cs: Removed bogus TODO.
+
+2007-09-27  Nagappan A <anagappan@novell.com> 
+
+       * DataRelationCollection.cs: Added LAME spec comment as there is no
+         relevant event. Removed MonoTODO too.
+
+2007-09-26  Nagappan A <anagappan@novell.com> 
+
+       * DataView.cs (ToTable): Added params keyword.
+       
+       * DataTable.cs: Added XmlSchemaProvider attribute.
+
+2007-09-25  Konstantin Triger <kostat@mainsoft.com>
+
+       * DataSet.cs: correct WriteAttributeString while writing xml with
+               XmlWriteMode.WriteSchema.
+
+2007-09-25  Nagappan A  <anagappan@novell.com>
+
+       * DataTable.cs: Code alignment.
+
+2007-08-14  Vladimir Krasnov <vladimirk@mainsoft.com>
+
+       * DataColumnCollection.cs: refactoring, fixed columnNameCount comparer
+       to remove culture sensitive ToLower() calls
+
+2007-07-22  Nagappan A  <anagappan@novell.com>
+
+       * DataRow.cs: Added internal set property for Table in 2.0
+       profile.
+
+       * DataColumn.cs: Added internal set property for Table in 2.0
+       profile.
+
+2007-07-01  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DataRowCollection.cs: Only override Count on 2.0 profile.
+       * RelatedDataView.cs: Fixed line endings.
+       * XmlDataInferenceLoader.cs: Fixed line endings.
+
+2007-06-30  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DataTableCollection.cs: CopyTo is 2.0 only. Removed extra tabs,
+       and changed spaces to tabs.
+
+2007-06-06  Nagappan A  <anagappan@novell.com>
+
+       * DataTable.cs (Select): Removed ununsed variable.
+
+2007-05-30  Nagappan A  <anagappan@novell.com>
+
+       * DataColumnCollection.cs (CopyTo): Method specific to 2.0
+       profile.
+
+       * DataRowCollection.cs (Count): Property is overridden in 2.0
+       profile.
+
+       * TypedDataSetGenerator.cs: Class is obsolete in 2.0 profile.
+
+       * DataRelationCollection.cs (CopyTo): Method specific to 2.0
+       profile.
+
+2007-05-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
+
+       * CustomDataClassGenerator.cs: Misc fixes in order to emit correct VB code.
+       CreateDataSetDefaultCtor: we're creating a delegate, not an object, so use a DelegateCreateExpression.
+       CreateDataSetSchemaChanged: we're comparing value types, use the correct equality operator.
+       CreateTableGetEnumerator: explicity state that the method is an implementation of IEnumerable.GetEnumerator.
+       CreateTableEventStarter: we're invoking a delegate, so use a DelegateInvokeExpression.
+       Several changes to not generate members with names that only differ by case.
+
+2007-05-18  Chris Toshok  <toshok@ximian.com>
+
+       * DataColumnCollection.cs (Add ()): handle the default name case
+       in Add(DataColumn).
+       (Add (string)): same - let Add(DataColumn) handle the default name
+       setting.
+       (Add (DataColumn)): in the 1.1 case, we need to add the column's
+       PropertyChanged handler *before* possibly setting the column name
+       to the default so we emit the right events (Changed/Added).  In
+       the 2.0 case, we add the event handler after the name is set, and
+       therefore only emit the Added event.
+
+2007-05-07  Adar Wesley <adarw@mainsoft.com>
+
+       * ConstraintCollection.cs: added CopyTo method with strongly typed Constraint[] 
+       parameter.
+
+       * DataTable.cs: added implementation of IXmlSerializable. Added missing
+       method ReadXmlSerializable.
+
+2007-04-19  Chris Toshok  <toshok@ximian.com>
+
+       * DataColumnCollection.cs (Add): the Element in our
+       CollectionChangedEventArgs should be the column, not the
+       collection.  Also, add an event handler for the column's
+       PropertyChanged event so we can propagate metadata changes.
+       (Remove): Analogous change to the CollectionChangedEventArgs as in
+       Add.  Also, unhook the column's PropertyChanged event.
+       (OnCollectionmetaDataChanged): emit our new event.
+       (ColumnPropertyChanged): called when the column's ColumnName
+       property changes.  Emit the proper CollectionChangeEvent.
+
+       * DataView.cs (ColumnCollectionChanged): fix up the comment about
+       CollectionChangeAction.Refresh, and make explicit what generates
+       it.
+       (RegisterEventHandlers): hook up
+       DataColumnCollectoin.CollectionMetaDataChanged.
+       (RegisterEventHandlers): unhook
+       DataColumnCollectoin.CollectionMetaDataChanged.
+
+2007-02-23  Nagappan A  <anagappan@novell.com>
+
+       * DataRow.cs (Item): Checks whether this DataRow exist in the
+       DataRowCollection, then compute the expression. Fixes bug #
+       80505.
+
+       * DataRowCollection.cs (IndexOf): Modified as internal method for
+       1.0 profile.
+
+       * XmlDataReader.cs (StringToObject): DataTables containing
+       System.Type throw exception on deserializing. Fixes bug # 80596.
+
+       * XmlDataLoader.cs (StringToObject): DataTables containing
+       System.Type throw exception on deserializing. Fixes bug # 80596.
+
+2007-02-20  Konstantin Triger <kostat@mainsoft.com>
+
+       * XmlSchemaDataImporter.cs: ensure the tables are created in document order.
+
+2007-02-19  Konstantin Triger <kostat@mainsoft.com>
+
+       * XmlDataReader.cs, XmlDataInferenceLoader.cs, XmlDiffLoader.cs:
+               ignore attributes from "http://www.w3.org/XML/1998/namespace".
+       * XmlConstants.cs: add constant for "http://www.w3.org/XML/1998/namespace".
+       * XmlDataInferenceLoader.cs: track the added elements index to fix the
+               added column ordinal.
+
+2006-12-11  Chris Toshok  <toshok@ximian.com>
+
+       * DataView.cs: GetItemProperties should return an empty collection
+       if we have no data table.  Presently we NRE.
+
+2006-12-08  Nagappan A  <anagappan@novell.com>
+
+       * DataTable.cs (ReadXml): Removed if condition, as it should not
+       check the exception string.
+
+2006-12-07  Chris Toshok  <toshok@ximian.com>
+
+       * DataView.cs: add CollectionChangeEventHandler's on the
+       ChildRelations and ParentRelations collections, and emit
+       ListChanged events with PropertyDescriptor.Added/Deleted/Changed
+       in response.
+
+2006-12-07  Nagappan A  <anagappan@novell.com>
+
+       * DataTable.cs (ReadXml): Integrated the implementation of
+       ReadXml, patch provided by deepak_2603@yahoo.com.
+
+2006-12-05  Nagappan A  <anagappan@novell.com>
+
+       * DataTable.cs (WriteXmlSchema): Using XmlTextWriter instead of
+       XmlWriter, solved the File Sharing IO Exception.
+
+2006-11-28     Hubert FONGARNAND, Frédéric Mestayer <informatique.internet@fiducial.fr>
+
+       * DataColumnCollection.cs : Improved Column searching when not
+       using exact column name (case sensitivity). Fixes bug # 80075.
+
+2006-11-28  Nagappan A  <anagappan@novell.com>
+
+       * XmlSchemaDataImporter.cs: Fixed 2.0 profile compilation
+       warnings. Using AttributeSchemaType instead of AttributeType and
+       ElementSchemaType instead of ElementType.
+
+       * TypedDataSetGenerator.cs: Modified the profile check from
+       !NET_1_1 to !NET_1_0, as this class is obsolete from 1.1 profile.
+
+       * DataRelationCollection.cs (Item): Modified the property Item as
+       abstract and implemented it in DataSetRelationCollection and
+       DataTableRelationCollection classes.
+
+       * DataRowView.cs: Remove bogus MonoTODOs.
+
+       * ForeignKeyConstraint.cs (ForeignKeyConstraint): Implemented
+       2.0 profile's missing constructor.
+
+       * XmlDataLoader.cs (StringToObject): Modify XmlConvert.ToDateTime
+       to use XmlDateTimeSerializationMode, as the default ToDataTime
+       method id obsolete.
+
+       * XmlDataReader.cs (StringToObject): Modify XmlConvert.ToDateTime
+       to use XmlDateTimeSerializationMode, as the default ToDataTime
+       method id obsolete.
+
+       * DataView.cs (IsInitialized): Added browsable attribute. 
+
+       * DataViewSettingCollection.cs (CopyTo): Implemented missing 2.0
+       API.
+
+       * DataRelation.cs (DataRelation): Added 2.0 profile constructor to
+       take parentTableNameSpace and childTableNameSpace as argument.
+       (FinishInit): Update parentTableNameSpace and childTableNameSpace,
+       when the string is not empty in 2.0 profile.
+
+       * DataRowCollection.cs: Implemented Count public property.
+       Added !NET_2_0 for List protected property, as it has been removed
+       in 2.0 prifle.
+       (IndexOf): Implemented new public method.
+       (CopyTo): Implemented new public override method.
+       (GetEnumerator): Implemented new public override method.
+
+       * DataTable.cs (Load): Throw ArgumentNullException, when reader
+       argument is null.
+       (WriteXmlSchema): Throw InvalidOperationException, when table name
+       is empty. When DataSet Namespace is set, append that with '_x003A_'
+       and table name.
+       (IsInitialized): Added browsable attribute.
+
+       * DataSet.cs (Load): Throw ArgumentNullException, when reader
+       argument is null.
+       (IsInitialized): Added browsable attribute.
+       (WriteObjectXml): Modify XmlConvert.ToDateTime to use
+       XmlDateTimeSerializationMode, as the default ToDataTime method id
+       obsolete.
+
+       * XmlSchemaWriter.cs (WriteSchema): Modified UseCurrentCulture to
+       UseCurrentLocale.
+       (WriteDataSetElement): Added minOccurs attribute.
+       (WriteConstraints): Check for tables length, if > 1 then add the
+       relations to XmlSchema.
+
 2006-11-21  Nagappan A  <anagappan@novell.com>
 
        * DataView.cs: Added public event Initialized.