使用数据库 [英] Working with databases
问题描述
大家好,我正在做一个项目,我需要以任何方式存储从Dht11传感器获得的温度和湿度。
到目前为止,我已将此数据存储在XML文件中,因此当我的应用程序需要访问数据时,我会通过阅读这些文件获得所需内容。实际上XML文件并不是一个糟糕的选择,但是
问题是现在我想使用数据库做同样的事情而且我不知道从哪里开始,实际上我需要的是一个指南或我可以学习的东西
如何在UWP中创建,修改和访问数据库,问候
Hello everyone, I'm doing a project in which I need to store in any way the temperature and humidity I get from a Dht11 sensor. So far I have stored this data in XML files, so that when my application needs to access the data, I get what I need by reading these files. Actually the XML files are not a bad option, but the problem is that now I want to do the same using databases and I do not know where to start, practically what I need is a guide or something in which I can learn how to create, modify and access databases in UWP, greetings
推荐答案
亲爱的朋友,
我认为您可以使用SQLite在IoT核心设备上的轻量级数据库中存储和检索数据。
I think you can use SQLite to store and retrieve data in a light-weight database on IoT Core device.
以下是有关如何使用SQLite for UWP应用程序的官方文档:
Here is the official docs on how to use SQLite for UWP apps:
这篇关于使用数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!