更新时间:2023-01-22 17:49:56
dt.Rows.Item(0)返回一个对象。简单地把它投入到你的PK中就完成了。
如果这有帮助请花时间接受解决方案。谢谢。
dt.Rows.Item(0) returns an object. Simply cast it into whatever your pk is and you're done.
If this helps please take time to accept the solution. Thank you.
检查这个错误:从对象类型System.Data.DataRowView到已知的托管提供者本机类型不存在映射 [ ^ ]
其
dr.item(0)
,而不是像之前那样。