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
Post a Comment