【发布时间】:2011-03-02 07:49:03
【问题描述】:
我正在尝试执行 TableAdapter.Fill(dataTable),但由于上述错误而失败。这是...DataSet.Designer.cs中的代码
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
public virtual int Fill(ZenwareDataSet.BatchPDADataTable dataTable) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable); // <---Fails here.
return returnValue;
}
这是生成的代码。也许我需要改变一些东西?我想知道我的应用程序是否与数据库有多个连接。这会是什么?感谢您提供的任何帮助。
- Windows Mobile 6.1 设备 (Trimble Juno SB)
- SQLServerCompact 3.5 Service Pack 2
- Microsoft .NET CF 3.5
【问题讨论】:
-
我知道有类似的问题。但这是在 win mo 设备上。有时它看起来是中间的,但我可以通过我的应用程序的某些调用来重现它。一旦问题出现,它会一直持续到我重新启动设备。在调试过程中,问题似乎消失了,就像如果由于断点而有足够长的延迟,那么就没有问题了。上面的函数似乎被调用了 3 次。
-
我将用于 WM 设备的 SQL Server CE 版本更改为 SP1,问题似乎消失了,但现在又回来了。有其他人看到这个问题吗?
标签: windows-mobile compact-framework sql-server-ce