Problem with Sqlite.Net.Interop

Asked

Viewed 23 times

0

I am trying to use the Sqlite.Net.Interop namespace to use the Isqliteplatform class but the package "Sqlite.Net PCL" is as discontinued.

I wonder if you have any alternative to solve this problem.

My project is in Xamarin.Forms and I need to know which platform to get the right storage path from the database file.

1 answer

0


I had the same problem a while back, I managed to solve using sqlite-net-Pcl

The update was relatively quiet.

Pa get the way I use:

var documentsPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
var path = Path.Combine(documentsPath, _fileName);

var connection = new SQLiteConnection(path);
return connection;

Browser other questions tagged

You are not signed in. Login or sign up in order to post.