Xamarin Live Error with SQLite -


i have error using sqlite xamarin live in shared project error :

uncaught exception no body on method sqlite.sqliteasyncconnection.. 

the code connection is:

[assembly: dependency(typeof(sqlitedb))] namespace helloworld.ios {     public class sqlitedb : isqlitedb     {         public sqliteasyncconnection getconnection()         {             var documentspath = environment.getfolderpath(environment.specialfolder.mydocuments);              var path = path.combine(documentspath, "mysqlite.db3");             return new sqliteasyncconnection(path);         }     } } 

the code in page is:

  public usingcrud()     {         initializecomponent();          //call getconnection() method , link our private field.        _connection = dependencyservice.get<isqlitedb>().getconnection();     } 


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -