I am trying to create a table using the latest version of sqlite-net-pcl nuget package
var db = new SQLiteAsyncConnection("data.db");
await db.CreateTableAsync<Site>();
The CreateTableAsync call throws the following exception:
System.MissingMethodException: 'Method not found: 'System.String SQLitePCL.raw.sqlite3_column_name(SQLitePCL.sqlite3_stmt, Int32)'.'
Here is the Site class
public class Site
{
[PrimaryKey, AutoIncrement]
public int Id { get; set; }
public String Name;
public String PriceCssSelector;
public String URLRegex;
public Site()
{
}
}
I tried downgrading to the latest stable version of sqlite-net-pcl package.
In my case the problem was Microsoft.AppCenter and Microsoft.Appcenter.Distribute. Those packages bring in an incompatible SQLite version and downgrading/removing them solved the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With