XML 序列化或纯 XML 到存储过程以保存会话对象
我正在阅读 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于 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.
XMLFormatter
可以在序列化时使用XMLFormatter
can be used while serializing