C# Sharepoint 2010我需要将对象列表存储到数据库中
我需要将一些对象(不是简单类型)存储到sharepoint,并从所有站点访问它们。我的第一次尝试是使用SPPersistedObject保存,但无法保存列表:C# Sharepoint 2010我需要将对象列表存储到数据库中,c#,sharepoint-2010,sharepoint-api,C#,Sharepoint 2010,Sharepoint Api,我需要将一些对象(不是简单类型)存储到sharepoint,并从所有站点访问它们。我的第一次尝试是使用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 GUI
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字符串。一些缓存数据标题和Url。(必须存储在数据库中)!我真的必须创建列表吗?