I've created a SQLite3 Database by Datagrid and dragged and dropped it into the solution folder. It does not connect and it shows the following error. please, one very simple solution, I am new in OOP. Below is the screenshot.
thanks for your help.
Looks like your "./Database/Dokan.sqlite3" file was not copied to your binary output folder, therefore when your code executed, it couldn't find any db called "./Database/Dokan.sqlite3".
Example: If your binary output folder is in c:\blahblah\bin\Debug, then you need to copy your "./Database/Dokan.sqlite3" file from your project into that directory so that "c:\blahblah\bin\Debug\Database\Dokan.sqlite3" exists. Then when your CollectionTest.exe runs from c:\blahblah\bin\Debug, it will find the db file.
"./Database/Dokan.sqlite3will mean something like"%solution_dir%/bin/debug/Database/Dokan.sqlite3"See Tam's answer.