用于WPF和Windows手机的相同数据库sqlite(网络pc本地) [英] same database sqlite (network pc local) for WPF and Windows phone

查看:77
本文介绍了用于WPF和Windows手机的相同数据库sqlite(网络pc本地)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我想使用相同的数据库sqlite为wpf中创建的应用程序(我已经连接并且它可以工作)但我不知道如何将应用程序连接到位于PC上的Windows手机数据库中给定文件夹为:

Hello I would like to use the same database sqlite for an application made in wpf (which I have already connected and it works) but I do not know how to connect the application to the Windows phone database located on a PC in a given folder as:

SQLiteAsyncConnection connection = new SQLiteAsyncConnection("192.168.1.4\\c:\\Myproject







我希望我们可以做其他事情,不知道如何进行数据交换




I hope we can do otherwise would not know how to make the exchange of data

推荐答案

你不能在Windows手机应用程序中这样做!



你必须在你的电脑上构建服务,(使用现有的wpf应用程序,或创建一个单独的一个)。该服务必须处理wpf应用程序和Windows Phone之间的通信。

所以你的手机应用程序连接该服务。



将来你可以使用Entity Framework 7,当它完成时......

EF7 - 新平台,新数据商店 [ ^ ]
You can not do that in a windows phone app!

You must built a service on your pc, (using the existing wpf app, or create a seperate one). The service must handle the communication between the wpf app and windows phone.
So you phone app connects with that service.

In the future you can use Entity Framework 7, when it's finished...
EF7 - New Platforms, New Data Stores[^]


这篇关于用于WPF和Windows手机的相同数据库sqlite(网络pc本地)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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