简体   繁体   English

在Xamarin上使用数据库的正确方法

[英]Proper way to use database on Xamarin

I 've a theorical question about Xamarin and how to use MySQL databases on an App. 我有一个关于Xamarin的理论问题,以及如何在App上使用MySQL数据库。 I just need a database to store users for an app, the my question is: DI need a webservice for this? 我只需要一个数据库来存储应用程序的用户,我的问题是:DI为此需要Web服务吗? I know that is maybe the proper way to work with databases in a mobile app, but as I said, I just need to store users and allow that they can connect to the App using an account. 我知道这也许是在移动应用程序中使用数据库的正确方法,但是正如我所说,我只需要存储用户并允许他们可以使用帐户连接到该应用程序。 Exist another method more simple to work with it? 存在另一种更简单的使用方法吗? (I just need a table with the password, and the login). (我只需要一个带有密码和登录名的表)。

Thanks in advance! 提前致谢! ;) ;)

Short answer, yes! 简短的回答,是的! The proper way to consume an database from a mobile app is using a webservice, if building this around your MySQL database is too much for your needs then maybe ask if MySQL is the right place for your data. 从移动应用程序使用数据库的正确方法是使用Web服务,如果围绕MySQL数据库构建数据库太多而不能满足您的需求,则可能会问MySQL是否是存放数据的正确位置。 There are plenty of web service 有大量的网络服务

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

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