I am trying to use SQLite with Unity for the first time. I have added the SQLite3.dll and SQLite3.def files to my Assets\Plugins folder, plus the Mono.Data.SQLite.dll file from the D:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\MonoBleedingEdge\lib\mono\unity directory.
I am using Mono.Data.Sqlite and System.Data.
When I try to run this very simple program, I get the error:
InvalidProgramException: Invalid IL code in Mono.Data.Sqlite.SqliteConnection:CreateDbCommand (): IL_0000: ret
I also tried the query without braces around the table and column names.
![alt text][1]
[1]: /storage/temp/202602-code.png
↧