Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

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[^]
 
Share this answer
 
Comments
Jan Bakker 19-Feb-15 10:38am    
And you have to completely rewrite your code for the database, because sqlite is not the same for WPF and windows phone :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900