打印 DataAdapter 生成的语句

发布于 2024-12-21 16:39:12 字数 222 浏览 2 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文