我正在尝试制作Windows Phone应用程序....在此应用程序中,我必须显示一个带有文本块以及下一个和上一个按钮的页面,并且文本块中的文本会相应更改.....文本对于单页,每页3至4行,大约1000页,所以我想我可以使用序列号将文本保存在数据库中,甚至使用序列号也可以检索它。...但是我看不到数据库支持对于Windows Phone ...可能是错误的....我也不想使用Microsoft本身未提供的任何第三方api,所以请有人指导我非常感谢您提供的任何帮助。
Depends on which version you are developing on. On windows phone 7.0,
7.1
database is not supported, you could use IsolatedStorage to store in Folder/file format as suggested by Zdarvko.
For Windows 7.5-mango,(7.1 too - link given by Paras - http://debugmode.net/2011/09/25/local-database-application-for-windows-phone/ ), Paras has already provided with links.
There are several options for local databases on windows phone but none of them comes from Microsoft. For 1000 lines I would use an xml file stored in the isolated storage or even a plain text file.
Windows Phone does support Local DB.
Look here for sample code and examples:
http://www.windowsphonegeek.com/articles/Windows-Phone-Mango-Local-Database-mapping-and-database-operations http://windowsphonegeek.com/tips/Windows-Phone-Mango-Local-Database-SQL-CE--Linq-to-SQL http://debugmode.net/2011/09/25/local-database-application-for-windows-phone/
You can also use Isolated Storage for your purpose:
http://www.windowsphonegeek.com/tips/all-about-wp7-isolated-storage--intro-to-isolated-storage
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.