简体   繁体   English

如何为Windows应用程序存储数据

[英]How to store data for Windows App's

I'm not familiar with App development therefore I do not know where to start. 我不熟悉App开发,因此不知道从哪里开始。

I need to store data locally for a Windows Phone Application, however i do not know where to go about doing this.. 我需要为Windows Phone应用程序在本地存储数据,但是我不知道该怎么做。

Is storing data locally like storing data in an SQL database such as MySQLWorkbench for example does it use SQL queries to insert and retrieve data? 是否在本地存储数据,例如在MySQLWorkbench之类的SQL数据库中存储数据?例如,它是否使用SQL查询来插入和检索数据?

Where is the local database? 本地数据库在哪里? and how does it work? 以及它如何运作? Does every windows phone have a universal database which all apps share? 每个Windows Phone都具有所有应用程序共享的通用数据库吗? or does it have a separate database for each app? 还是每个应用都有单独的数据库?

I've been searching Google on how to go about doing this for days now and I can't find anything useful, if anyone has any useful tutorials that would be appreciated! 几天来,我一直在搜索Google的操作方法,但是如果有人有任何有用的教程,将不胜感激!

You don't have built-in local database in Windows Phone/Windows apps. Windows Phone / Windows应用程序中没有内置的本地数据库。 You can store data in local storage. 您可以将数据存储在本地存储中。 This isn't database - you can store json files etc. 这不是数据库-您可以存储json文件等。

Read this: http://www.c-sharpcorner.com/UploadFile/6d1860/how-to-implement-local-storage-in-universal-windows-apps/ for Windows Universal Apps or this: https://dzone.com/articles/using-local-storage-windows for Windows Phone Silverlight 请阅读以下内容: http ://www.c-sharpcorner.com/UploadFile/6d1860/how-to-implement-local-storage-in-universal-windows-apps/(适用于Windows Universal Apps)或https:// dzone。 Windows Phone Silverlight的com / articles / using-local-storage-windows

You have one storage per app, but if you're developing Windows Universal Apps you can have shared storage between Windows Phone and Windows Desktop app. 每个应用程序只有一个存储空间,但是如果您正在开发Windows通用应用程序,则可以在Windows Phone和Windows桌面应用程序之间共享存储空间。 Read about Roaming Data 阅读有关漫游数据的信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM