Sharepoint 2010 我需要将对象列表存储到数据库中
我需要将一些对象(不是简单类型)存储到共享点并从所有站点访问它们。我的第一次尝试是使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你到底想拯救什么?是否可以将其简化为具有不同列的 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?
解决方案是存储 SPPersistedObject 并将对象序列化为 xml 字符串。
Solution is to store SPPersistedObject and serialize objects to xml string.