windows phone 7.1版本的作業系統自帶了
sql server
資料庫的支援。
isolatedstoragefile類提供取得隔離區中的檔案。獨立儲存設定允許使用者在乙個字典中儲存鍵
/值對(無需任何設定)。獨立儲存檔案表示包含檔案和目錄的獨立儲存區。
filemode.createnew
指作業系統應建立新檔案。
嵌入式資料庫是指嵌入到了應用程式程序。在專案中使用perst
資料庫需要先引入
perst
資料庫的
wp7.dll
元件。建立資料表類需繼承inotifypropertychanging
和inotifypropertychanged
介面。使用
system.data.linq.datacontext
類來對映每乙個資料庫實體物件。部署乙個資料庫即引入資料庫的檔案來建立乙個資料庫。增加一條資料的方法是使用
table
的insertonsubmit
方法。
sharedpreferences資料儲存
例項134 使用sharedpreferences儲存使用者輸入的使用者名稱和密碼,並在第二個activity中顯示 sharedpreferences 類供開發人員儲存和獲取基本資料型別的鍵值對,該類主要用於基本型別,如booleans,floats,ints,longs,strings。在應用程...
Hyperledger Fabric資料儲存結構
原文 hyperledger fabric支援多鏈。每個鏈對應一套賬本。所以區塊鏈每個peer節點會維護多套賬本。每個超級賬本包含以下元素 每個peer節點會維護4個db,它們分別是 如下圖 因只展示了單鏈的資料儲存情況,故idstore未在圖中展示 fabric db.png 其中,世界狀態和賬本...
SharedPreferences資料儲存
1 23 android orientation vertical 4 android layout width fill parent 5 android layout height fill parent 6 78 android id id textview01 9 android layou...