XML 序列化或纯 XML 到存储过程以保存会话对象

发布于 2024-12-27 10:35:49 字数 236 浏览 0 评论 0原文

我正在阅读 XMLSerializer 类。这是在 XML 中序列化会话对象并将其发送到存储过程以将其保存到数据库的上下文中。

所以上面的过程包括了Serialization转换,然后发送到存储过程进行进一步处理。或者它可以像下面一样创建 xml 并发送到存储过程以将详细信息保存在数据库中。

<Root><Row></Row></Root>

I was reading the XMLSerializer class. This is in context of serializing the session object in XML and send it to the Stored Procedure to save it to the database.

So the above process includes the Serialization conversion and then sends to the stored procedure for further processing. Or it can just create xml like below and send to the stored proc to save the details in database.

<Root><Row></Row></Root>

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一直在等你来 2025-01-03 10:35:49

对于 SQL Server,它无论如何都是纯文本,因此应根据您的应用程序需求来选择格式。我认为比使用 XML Formatter 更方便。

For SQL server it will be anyway plain text,so format should be chosen considering your application needs. I think than using XML Formatter is more convenient.

你怎么敢 2025-01-03 10:35:49

XMLFormatter 可以在序列化时使用

XMLFormatter can be used while serializing

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文