Using SQLite in C# - Building Simple, Powerful, Portable Databases for Your Application

IAmTimCorey · 340K views · 2018 · 38:41

Open on YouTube

Databases & storageSoftware practice, open source & careerstutorial

Why Stack Overflow recommends it

Stack Overflow users link it as a step-by-step guide to using SQLite from C# with Dapper, both as an answer for newcomers and as the tutorial that askers say they followed.

Recommended by 2 people across 2 different months, 2020 to 2020.

What it is

IAmTimCorey walks through building a small SQLite database with DB Browser for SQLite, attaching it to a C# WinForms project, and reading and writing data with Dapper and the SQLite NuGet packages. It covers connection strings, a data access class, and wiring up a demo app that loads and saves people records.

What people said

Recommends user12637955 · 2020-01 · Stack Overflow · on “How to make the currency for an economy bot?”

You need to use a database. If this is your first time using databases, I highly recommened SQLite [LINK] . You should also see video tutorials such as this [this video] one. Once you have familiarised yourself with a SQLite databases then you will be able to answer your own question extremely easily. It is not difficult and requires some very simple logic. Attempt it yourself first and if you are still stuck reply to this answer. Consider viewing this W3Schools [LINK] resource when you are comfortable with the basics.

Recommends PraiseJourney · 2020-04 · Stack Overflow · on “.Net EntityFramework Core - SQLite Error 1: no such table”

I decided to go another direction and use Dapper and System.Data.Sqlite.Core. This video by Tim Corey perfectly explains how to implement it: [this video] This methodology works really well and am using it in my GitHub project: [LINK]

Cites Piano Telope · 2020-05 · Stack Overflow · on “C# WPF using Caliburn.Micro: How can I convert an IEnumerable to BindableCollection?”

I'm following a guide on connecting a C# project to an SQLite database. Here's the link to that guide: [this video] My code is very similar to what's created in the video. However, I'm recreating the project using a framework called CaliburnMicro. My understanding of CaliburnMicro is it 'automates' some data binding by taking advantage of identical names of model properties and UI components. The model I'm using in my project is of type BindableCollection<> as recommended in another of Tim Corey's tutorials. That is the type into which I'd like to convert my database query results. The guide says that the result of the data query is an IEnumerable. He converts it into a List<> type using an inbui

Cites Tom Joney · 2020-07 · Stack Overflow · on “Alternatives for DataSource and DisplayMember in WPF so I can display SQLite database content inside a ListBox”

I have asked this question before and it got flagged for not being detailed enough so I thought I would rephrase it and better detail my problem. Summarise the problem: First of all, I was following this tutorial 'Using SQLite in C# - Building Simple, Powerful, Portable Databases for Your Application' ( [this video] ). The creator of this tutorial had this form: [LINK] In the form you could add a first name and a listname and it shows up in the List People. This was his code-behind: [LINK] I followed the tutorial and I decided I would replicate this but instead of 'Person' it will display the user's statistics: [LINK] I want to be able to display the SQLite table content inside a listbox. But the