将 xmlwriter 内容写入 linq to sql xelement 字段

发布于 2024-09-07 07:14:44 字数 145 浏览 3 评论 0原文

我在表中有一个字段定义为 xml,因此在我的 dbml 中它显示为 xelement。我的类中有一个 xmlwriter,需要将其 xml 写入此字段,但在 writer 上调用 tostring 不起作用。如何将 xmlwriter 或其内容分配给 xelement?谢谢。

I have a field in a table defined as xml so in my dbml it's showing up as an xelement. I have an xmlwriter in my class that needs to write it's xml to this field but calling tostring on the writer doesn't work. How do I assign the xmlwriter or it's contents to an xelement? Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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