C# SQLite-Net Extensions 'SQLiteConnection does not contain a definition for CreateTable'

1.4k Views Asked by At

I am trying to use the SQLite-Net Extensions NuGet package in a WinForms application. I have included a reference within a class and am trying to follow the documentation found here:

https://bitbucket.org/twincoders/sqlite-net-extensions

However, in the example, there are a few things that are left out.

var db = Utils.CreateConnection();
db.CreateTable<Stock>();

There is no Utils class, so I figured I would just create my own SQLiteConnection object and the CreateTable extension method would become usable, but that turned out to be false. Can someone tell me what I am doing wrong?

0

There are 0 best solutions below