打印 DataAdapter 生成的语句
我正在使用 C# 中的数据适配器,如果有一种方法可以打印数据适配器执行的语句以进行调试,那就太好了。
我可以打印 OleDbCommandBuilder.GetUpdateCommand/GetDeleteCommand/GetInsertCommand 生成的语句,但它们不包含实际值。
我想打印由“DataAdapter.Update()”执行的语句,并填写所有值。
这可能吗?
I am using data adapters from C#, and it would be great if there is a way to print the statements executed by data adapters for debug purpose.
I can print the statements generated by OleDbCommandBuilder.GetUpdateCommand/GetDeleteCommand/GetInsertCommand, but those don't contain the actual values.
I'd like to print statements executed by 'DataAdapter.Update()', with all the values filled in.
Is that possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论