[Mono-list] System.Data.Common.DbDataAdapter

Alan Tam Tam@SiuLung.com
Mon, 27 Jan 2003 21:49:11 +0800


May I know why System.Data.Common.DbDataAdapter.Update() errs when the
DbDataAdapter object has no TableMappings? In the Microsoft implementation
it worked without any TableMappings.

On the other hand, even when I give it an explicit TableMapping, I
experienced the following:

Unhandled Exception: System.IndexOutOfRangeException: Array index is out of
range
in <0x0005e> 00 System.Data.DataRow:get_Item
(string,System.Data.DataRowVersion)
in <0x00191> 00
ByteFX.Data.MySQLClient.MySQLCommandBuilder:SetParameterValues
(ByteFX.Data.MySQLClient.MySQLCommand,System.Data.DataRow)
in <0x00183> 00 ByteFX.Data.MySQLClient.MySQLCommandBuilder:OnRowUpdating
(object,ByteFX.Data.MySQLClient.MySQLRowUpdatingEventArgs)
in <0x00067> 01
System.MulticastDelegate:invoke_void_object_MySQLRowUpdatingEventArgs
(object,ByteFX.Data.MySQLClient.MySQLRowUpdatingEventArgs)
in <0x00100> 00 ByteFX.Data.MySQLClient.MySQLDataAdapter:OnRowUpdating
(System.Data.Common.RowUpdatingEventArgs)
in <0x001ba> 00 System.Data.Common.DbDataAdapter:Update
(System.Data.DataRow[],System.Data.Common.DataTableMapping)
in <0x00069> 00 System.Data.Common.DbDataAdapter:Update
(System.Data.DataTable,System.Data.Common.DataTableMapping)
in <0x000e9> 00 System.Data.Common.DbDataAdapter:Update
(System.Data.DataTable)
in <0x0021c> 00 PEM.Data.EntityBase:Update ()
in <0x00132> 00 .Test:Main ()

However, the error was not found when the code is run in Windows. Any clue?
I am unable to debug the ByteFX.Data nor the System.Data code.

Regards,
Alan