Each app release the SQLite db is overriding and data is getting lost

bluebirdbluebird USMember ✭✭

Using below code for Android..

[assembly: Dependency(typeof(SQLiteService))]
namespace JMMApp.Droid.Services
{
public class SQLiteService : ISQLite
{
public SQLiteService()
{ }

    public string GetFileLocation()
    {
        var documentspath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
        var path = Path.Combine(documentspath, Constant.sqliteDBName);
        return path;
    }
    public SQLiteConnection GetConnection(string path)
    {
       return new SQLiteConnection(path);           
    }
}

Please help me to resolve SQLite overriding issue in IOS and android.

Answers

  • bluebirdbluebird USMember ✭✭

    Using below versions.
    Xamarin.Forms" version="3.3.0.967583"
    SQLite.Net.Core-PCL" version="3.1.1"

    Kindly help me to resolve this

  • LandLuLandLu Member, Xamarin Team Xamurai

    Thank you for sharing your successful experience. You can mark that to help other community members learn this kind of issue.

  • ShantimohanElchuriShantimohanElchuri USMember ✭✭✭✭✭

    @LandLu said:
    Thank you for sharing your successful experience. You can mark that to help other community members learn this kind of issue.

    I this was by mistake. The issue is not answered yet.

Sign In or Register to comment.