sqlite - SQLiteConnection statement error -
i getting blue squiggly under line starts sqliteconnection, not sure missing. using sqliteasyncconnection, since read somewhere doesn't support methods insertwithchildren, thought of trying out sqliteconnection class.
string dbpath = path.combine(windows.storage.applicationdata.current.localfolder.path, "db.sqlite"); sqliteconnection db = new sqliteconnection(dbpath); these using statements have on top:
using sqlite.net; using sqlitenetextensions.extensions; and error message getting
error 2 'sqlite.net.sqliteconnection' not contain constructor takes 1 arguments d:\onedrive\projects\sqliteasyncconnection class\sqlite-net\mainpage.xaml.cs 28 31 sqlite-net
you using constructor library - basic "sqlite-net" requires single parameter constructor, sqlite.net requires platform parameter aswell. here can find documentation , constructor example:
public class database : sqliteconnection { private const string database_name = "sqlite.db"; private static isqliteplatform platform = new sqliteplatformwin32(); public database() : base(platform, database_name) { createtable<classexample>(); } }
Comments
Post a Comment