×

Loading...
Ad by
  • 予人玫瑰,手有余香:加拿大新天地工作移民诚聘求职顾问&行业导师!
Ad by
  • 予人玫瑰,手有余香:加拿大新天地工作移民诚聘求职顾问&行业导师!

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