Sharepoint 2010 我需要将对象列表存储到数据库中

发布于 2024-11-02 10:06:50 字数 515 浏览 5 评论 0原文

我需要将一些对象(不是简单类型)存储到共享点并从所有站点访问它们。我的第一次尝试是使用 SPPersistedObject 保存,但无法保存列表:

he platform does not know how to deserialize an object of type DataItems.SearchResultItem. The platform can deserialize primitive types such as strings, integers, and GUIDs; other SPPersistedObjects or SPAutoserializingObjects; or collections of any of the above. Consider redesigning your objects to store values in one of these supported formats, or contact your software vendor for support.

我该怎么做?

I need to store few objects (Not simple Type) to sharepoint and access them from all sites. My first try was to save with SPPersistedObject but lists cannot be saved:

he platform does not know how to deserialize an object of type DataItems.SearchResultItem. The platform can deserialize primitive types such as strings, integers, and GUIDs; other SPPersistedObjects or SPAutoserializingObjects; or collections of any of the above. Consider redesigning your objects to store values in one of these supported formats, or contact your software vendor for support.

How can i do this?

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

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

发布评论

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

评论(2

陈独秀 2024-11-09 10:06:50

你到底想拯救什么?是否可以将其简化为具有不同列的 SharePoint 列表,这些列代表您尝试保存的全部内容?

What are you actually trying to save? Can it be simplified into a SharePoint list with different columns that represent the whole of what you are trying to save?

晨曦慕雪 2024-11-09 10:06:50

解决方案是存储 SPPersistedObject 并将对象序列化为 xml 字符串。

Solution is to store SPPersistedObject and serialize objects to xml string.

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