使用 Visual Studio 2010,我在尝试使用 DataSet 设计器时遇到错误。错误如主题中所述,“OleDbCommand.Prepare 方法需要 '14' 类型的参数具有明确设置的精度和比例。”
我在连接几个表并从连接返回四列的 TableAdapter 中创建了一个查询。然后我尝试在设计器中向 DataTable 添加列并收到错误。在进入查询后,TableAdapter 配置向导结束时也会出现此错误。
The wizard detected the following problems when configuring the TableAdapter:"DataTable1":
Details:
Generated SELECT statement.
OleDbCommand.Prepare method requires parameters of type '14' have an explicitly set Precision and Scale.
To add these components to your dataset, click Finish.
除此错误/警告外,一切似乎都运行正常。由于这是自动生成的代码,我不知道从哪里开始寻找。
谢谢你的帮助!