| Start |
|---|
| Creating simple CRUD using SQLite in C# First of all we need to add SQLite support to our application. There are two ways of doing that
We'll do it the second way First open the NuGet menu and search for System.Data.SQLite, select it and hit Install Installation can also be done from Package Manager Console (opens new window) with Or for only core features That's it for the download, so we can go right into coding. First create a simple SQLite database with this table and add it as a file to the project Also do not forget to set the Copy to Output Directory property of the file to Copy if newer of Copy always, based on your needs Create a class called User, which will be the base entity for our database We'll write two methods for query execution, first one for inserting, updating or removing from database and the second one for reading from database Now lets get into our CRUD methods Adding user Editing user Deleting user Getting user by |
Executing Query Note: Setting |
Read Article
https://develop.horje.com/learn/1434/reference