请问C#,Android和SQLite的共同努力? [英] Does C#, Android, and SQLite work together?

查看:90
本文介绍了请问C#,Android和SQLite的共同努力?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是想实现一个系统,在这里我的C#程序可以插入值SQLite数据库,和我的手机Android应用程序可以SQLite中检索数据。需要注意的是其中的三个不位于同一台PC。可有人告诉我,它会工作的概念?
在先进的感谢。

I was trying to implement a system, where my C# program can insert value to SQLite database, and my mobile android application can retrieve the data in SQLite. Note that three of them are not located in the same PC. Can somebody tells me will it work conceptually? Thanks in advanced.

P / S:我是新的C#,SQLite和Android版

P/S : I was new to C#, SQLite, and Android.

推荐答案

关于OP的评论:

我读了一本书,指出SQLite是不是一个客户机/服务器数据库

I read a book stating that SQLite is not a client/server database

SQLite是不是客户端/服务器中,一个程序必须直接通过一个SQLite驱动程序访问SQLite数据库文件,没有服务器的中介(因为是与MySQL / MSSQL / Oracle的的情况下,例如)。因此,无论你的C#和Android应用程序将需要在SQLite数据库或者网络文件系统访问,或者你需要另一个程序,确实有文件系统的访问和两个远程程序可以谈;要晓得,你必须写自己的服务器。

SQLite is not "client/server" in that a program must access a SQLite database file directly through a SQLite driver, without the intermediary of a server (as is the case with MySQL/MSSQL/Oracle, for example). So both your C# and Android apps will need either network filesystem access to the SQLite database, or you'll need another program that does have filesystem access and that the two remote programs can talk to; to wit, you must write your own "server".

更新:为了解决您的评论,不,我的意思是这些数据库系统已有无的服务器,作出处理来自远程客户端数据库请求。 SQLite不 - 您使用SQLite的驱动程序直接与数据库文件进行交互访问;因此需要文件系统的访问。所以,如果你的C#或Android应用程序的无法的直接访问SQLite的文件,你会需要一些中介机构的程序,就可以了,该程序将不得不谈谈您的C#和Android应用。

Update: To address your comment, no: I meant that those database systems already have a server, made to handle database requests from remote clients. SQLite doesn't - you access it by using the SQLite driver to interact with the database file directly; hence the need for filesystem access. So if your C# or Android app cannot access the SQLite file directly, you will need some intermediary program that can, and that program will have to talk to your C# and Android apps.

这篇关于请问C#,Android和SQLite的共同努力?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆