Add tables to a SQLite Database with C# (15/23)

preview_player
Показать описание
In this video we will cover how to initialize tables in a SQLite database for your application.

Basic Steps:
Discuss adding SQLite library with NuGet Package Manager
Elaborate on connectionString
SQLite library
CreateFile
connection variable
Open method
command variable 
CommandText method
ExecuteNonQuery method
Compare with DB Browser for SQLite


C# .NET
Windows Form Application
Visual Studio
SQLite
Using statement
Static Class
Static Method
Static Variable
Рекомендации по теме
Комментарии
Автор

I noticed that the ‘DatabaseHelper.cs’ file is not included in your code in Github. In ‘Files’ folder I downloaded, there is only a CSV file named ‘book’.
So, I have tried to create ‘DatabaseHelper.cs’ file based on the instruction, but ran into two errors with VS when executing it.
(1) The namespace '<global namespace>' already contains a definition for 'DatabaseHelper';
(2) Ambiguity between and
Do you have a final version of the code that would work with the SQLite?

patricktang