* DbDataAdapter.cs : Refactoring of Fill. New private method
FillTable does most of the work now. Use int[] instead of
hashtable for mapping. Move creation of tableArray[] outside
of loop.
svn path=/trunk/mcs/; revision=24031
* DbDataPermissionAttribute.cs: Added .Net 1.1 marks
* DataColumnMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
* DataTableMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
* DataColumnMappingConverter: Added stub
* DataTableMappingConverter: Added stub
svn path=/trunk/mcs/; revision=23961
* DbDataAdapter.cs: handle MissingShemaAction.AddWithKey, call
AcceptChanges in Update when a CommandBuilder is used and
correctly fill information about primary keys in FillSchema.
Patch from Sergei Malinin ([email protected]).
svn path=/trunk/mcs/; revision=21553
* DbDataAdapter.cs: Call command dispose in self dispose method. We
need to dispose the connections and other stuff stored in the
commands.
svn path=/trunk/mcs/; revision=20355
* DataColumnMappingCollection.cs: Fix a missing exception when the
required mapping is not in the collection. MS.NET throws an
exception there.
svn path=/trunk/mcs/; revision=19797
* DbDataAdapter.cs (Fill): Fixed an Exception from being thrown.
* DataRelation.cs (constructor): When the name of the relation is
null, it should return an empty, not "Relation".
* DataRow.cs (AcceptChanges): Added special case for
RowState.Detached.
(CancelEdit): Set editing flag to false.
(IsNull): Check that the value is DBNull.
* DataRowCollection.cs (Add): There was no check that the table of
the collection is owned by a DataSet.
* DataSet.cs (OnMergeFailed): Added.
* UniqueConstraint.cs (AssertConstraint): There was no check that
values in the row are not null, where it is a primary key
column. Also check that the row has a proposed version, if not,
get the current version when we compare the rows.
svn path=/trunk/mcs/; revision=18452
* DbDataAdapter.cs (Fill): Patch from Eran Domb, <[email protected]>.
Fixes a possible NullReferenceException, more details here:
* DataColumn.cs (Unique): Implemented.
* DataTable.cs:
* ConstraintCollection.cs:
* ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
an Exception thrown. Details:
http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
* DataRowCollection.cs (Add): There is no checking that there is
no violation of the unique constrains.
* UniqueConstraint.cs (AssertConstraint): There is no checking on
all columns in the constraint.
svn path=/trunk/mcs/; revision=18298
* DbDataRecord.cs: The method
System.Data.Common.DbDataRecord.GetValues(object[] values) did not
put the values of the DbDataRecord into values parameter.
svn path=/trunk/mcs/; revision=18264
* DbDataAdapter.cs: provide a Type for ToArray to avoid invalid cast
exception. Thanks to Mark Easton <[email protected]>.
svn path=/trunk/mcs/; revision=17622
NET_1_1.
* DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
* XmlDataDocument.cs (BaseURI):
(InnerXml):
(IsReadOnly):
(this):
(LocalName):
(Name):
(OwnerDocument):
(WriteContentTo):
(WriteTo): Removed, these do not need to be redefined, as
they are inherited from XmlDocument already.
svn path=/trunk/mcs/; revision=16966
* DbDataAdapter.cs: Added support for filling when schema is present.
Fixed incorrect behavior when ColumnMapping is present
when more than one fields have the same name. Implemented Dispose.
Fixed error when there is no ColumnMapping at all.
Still have some problems in finding the correct TableMapping
because the SourceTable name is not present in BuildSchema
svn path=/trunk/mcs/; revision=11963
* DbDataAdapter.cs: The original code might pass a null DataTableMapping
value which is then used to create a RowUpdatingEventArgs
instance. So RowUpdatingEvent handler (for instance
CommandBuilder) could get null DataTableMapping which
might be unexpected. The patch makes sure that a non-null
DataTableMapping is passed.
svn path=/trunk/mcs/; revision=11930
* DbEnumerator.cs: why does the runtime throw an invalid cast here? The
object is an Int16... Gotta fill a bug report and when fixed undo this
patch.
svn path=/trunk/mcs/; revision=10914
build file above.
2002-05-05 Miguel de Icaza <[email protected]>
* DataTableMapping.cs, DataTableMappingCollection.cs: comment out
interfaces we do not implement yet.
* DbDataAdapter.cs: Stub IEnumerable, comment out interfaces
we do not implement yet.
* DbDataPermissionAttribute.cs: call base constructor.
svn path=/trunk/mcs/; revision=4309