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.
我怎样才能做到这一点?

解决方法

您实际上想保存什么?是否可以将其简化为具有不同列的SharePoint列表,这些列代表您要保存的全部内容?,解决方案是存储SPPersistedObject并将对象序列化为xml字符串。