Reputation: 11
I am new in Xamarin and trying to make a simple project. I already make a small CRUD project with SQLite local database. I have two questions :
In which folder (path) in my computer the database is created ? Below is my DB path. But I am unable to find my database in my computer (Actually I want to know the folder path where is database created)
string DBPath=Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "myDB.db3");
My 2nd question is, I want to get data from same database (myDB.db3) from two different project. How can I do it using Xamarin?
I google a lot but do not get any proper answer. Please help.
Thanks in Advance.
Upvotes: 1
Views: 638
Reputation: 13146
Console.WriteLine(Environment.GetFolderPath(Environment.SpecialFolder.Personal));
to see where the file is stored on which platform.Upvotes: 1