×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

In .net, when i try to use dataadapter to update database, i got following error message. Dataset is a typeddataset, only one table included. 帮帮忙。谢谢。

{System.InvalidOperationException}
[System.InvalidOperationException]: {System.InvalidOperationException}
HelpLink: Nothing
InnerException: Nothing
Message: "Update unable to find TableMapping['Table'] or DataTable 'Table'."
Source: "System.Data"
StackTrace: " at System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable)
at Microsoft.ApplicationBlocks.Data.SqlHelper.UpdateDataset(SqlCommand insertCommand, SqlCommand deleteCommand, SqlCommand updateCommand, DataSet dataSet, String tableName)
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / In .net, when i try to use dataadapter to update database, i got following error message. Dataset is a typeddataset, only one table included. 帮帮忙。谢谢。
    {System.InvalidOperationException}
    [System.InvalidOperationException]: {System.InvalidOperationException}
    HelpLink: Nothing
    InnerException: Nothing
    Message: "Update unable to find TableMapping['Table'] or DataTable 'Table'."
    Source: "System.Data"
    StackTrace: " at System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable)
    at Microsoft.ApplicationBlocks.Data.SqlHelper.UpdateDataset(SqlCommand insertCommand, SqlCommand deleteCommand, SqlCommand updateCommand, DataSet dataSet, String tableName)
    • any code?
      • 谢谢。我刚找到原因。因为我用的typeddataset,里面的table 名字是不是缺省的。我用data application block更新数据库时,用的是缺省的table名“table”。
        • hehe