2011-04-19 10 views
0

我需要將少量對象(不是簡單類型)存儲到共享點並從所有站點訪問它們。我的第一個嘗試是用SPPersistedObject保存,但無法保存列表:Sharepoint 2010我需要將對象列表存儲到數據庫中

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. 

我該怎麼做?

回答

1

解決方案是存儲SPPersistedObject並將對象序列化爲xml字符串。

1

你究竟想要保存什麼?可以將它簡化爲具有不同列的SharePoint列表,這些列代表您試圖保存的整個內容?

+0

某些緩存數據標題和Url。 (必須存儲在數據庫中)!我真的必須創建列表嗎? – Evgeny 2011-04-19 15:53:01

相關問題