SQLLitePCL.CurrentPlatform.lnit does not exist in namespace

I have removed and readded the sqlite packages via nuget manager. cleaned the solution and rebuilt. All the documentation seems to point to the fact that you have to make this call. Has it been deprecated? Any help in finding this method much appreciated.

In my data access class. I have also tried this in the AppDelegate.cs same error.

Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'CurrentPlatform' does not exist in the namespace 'SQLitePCL' (are you missing an assembly reference?) iThrive C:\dev\v5\iThrive\iThrive\iThrive\DataModel\BMIDataModel.cs 30 Active

using Microsoft.WindowsAzure.MobileServices;
using Microsoft.WindowsAzure.MobileServices.SQLiteStore;
using Microsoft.WindowsAzure.MobileServices.Sync;

public void Initialise()
    {
        if (!client.SyncContext.IsInitialized)
        {
            SQLitePCL.CurrentPlatform.Init();


            var store = new MobileServiceSQLiteStore("ThriveDataVault.db");
            store.DefineTable<objectValue>();
             client.SyncContext.InitializeAsync(store, new MobileServiceSyncHandler());
        }
        objectValueTable = client.GetSyncTable<objectValue>();
    }

Posts

Sign In or Register to comment.