Connect C# Application to SQLite Database and interact with it

Поділитися
Вставка
  • Опубліковано 12 січ 2025

КОМЕНТАРІ • 102

  • @tacton11
    @tacton11 6 років тому +8

    Thank you for not purposely over-complicating this like so many other tutorials.

    • @OverSeasMedia
      @OverSeasMedia  6 років тому +3

      Lol what's the purpose of a tutorial if you just gonna over complicate stuff :p .
      Thank you for the feedback as well, much appreciated mate :)

  • @dchubad
    @dchubad 3 роки тому +5

    This is one of the best explained tuts I have seen so far. Setting up the connection was far more simple than I eread elsewhere. Reading from and writing to the database was well explained but you could have added the DELETE from database too as good measure 8-) I am also grateful you included about the file creation if one does not exist, that was something I was about to look up to help with one of my projects so you saved me a lot of time. thanks

  • @kenb1
    @kenb1 3 роки тому +2

    @15:40 Legend says that even to this day his database remains open..
    Yeah, close(), not clone(). Good tutorial, appreciate it!

  • @PrettyBlueThings
    @PrettyBlueThings 4 роки тому +2

    Fantastic, got me up and running with SQLite very quickly! Agree with other comments in that you don't need to over complicate things like this. In my opinion beginners can go and research finer detail for themselves, whilst veterans already know and understand, so just showing how to do the job is enough to cover everyone's needs and we can take it from there. Cheers!

  • @camarojunky4853
    @camarojunky4853 4 роки тому +3

    Great job on the video! So many people make interacting Visual Studio with SQL so complicated, you made it super easy

    • @OverSeasMedia
      @OverSeasMedia  4 роки тому +2

      Thank you mate, most people told me that I over complicated things but I'm glad this was helpful to you .
      Cheers :))

  • @czarsonxd2093
    @czarsonxd2093 4 роки тому +1

    really good tutorial - most of the tutorials on this topic are overly complicated, but this one is really plain and simple, thank you :)

  • @pitbulxdeaa
    @pitbulxdeaa 7 місяців тому

    And I am here 7 years later watching this video and thinking. Damn it's still one of the most useful tutorials on youtube on this topic.

  • @uniware3198
    @uniware3198 4 роки тому +1

    Dude you given us the best SQLite C# video tutorial...
    ❤️ Thank You ❤️

  • @ognjenstevic8637
    @ognjenstevic8637 2 роки тому

    I just came to see reading data code, it works like a Swiss watch! Nice video thank you! 😁😁

  • @markkithinji2666
    @markkithinji2666 2 роки тому

    half a decade down the lane; and this video is just pure gold🤗

    • @OverSeasMedia
      @OverSeasMedia  2 роки тому +1

      it is crazy even for me that I made this video in 2017, time really flies.

  • @MistressRocks
    @MistressRocks 6 років тому +3

    Amazing tutorial. Straight to the point. Awesome!

    • @OverSeasMedia
      @OverSeasMedia  6 років тому +2

      Thank your for the comment :)
      Cheers .

  • @OctarineFoundry
    @OctarineFoundry 6 років тому +1

    Really clear, concise and useful. Thanks

    • @OverSeasMedia
      @OverSeasMedia  6 років тому

      Well thank you good sir for the nice comment .
      Cheers :))

  • @FazzCode
    @FazzCode 6 років тому +3

    This helped me out a ton, thank you dude!

  • @Teemu_TV
    @Teemu_TV 3 роки тому

    Thank you for being straightforward! I was just wondering what's the syntax like if I wanted to UPDATE records in the C# application?

  • @LoremIpsum19
    @LoremIpsum19 4 роки тому

    Thank you so much! This is very useful.

  • @elcaballopapi
    @elcaballopapi 6 років тому +3

    buddy that video ssaved mi life ,, grrrrrrrrreat

    • @OverSeasMedia
      @OverSeasMedia  6 років тому

      I am just glad it helped . Cheers mate :)

  • @mahavirsinhpadhiyar864
    @mahavirsinhpadhiyar864 6 років тому

    Thank you such a simple and understanding video thanks a lot

    • @OverSeasMedia
      @OverSeasMedia  6 років тому

      I'm glad you liked it, You're most welcome :)

  • @rohanprak
    @rohanprak 4 роки тому

    thanks for in depth explanation

  • @MrScubesnaxx
    @MrScubesnaxx 5 років тому +1

    Is there a way to get this working with WinForms? This functions perfectly in the main body of a console application but for whatever reason it's not doing very well trying to tie it to event listeners on various forms. I really like the straightforward way you presented the material it is a really good starting point. Thanks in advance!

    • @MrScubesnaxx
      @MrScubesnaxx 5 років тому

      Sorry...in particular it works when I use it in the Program.cs just fine seems to cause a write-lock whenever I have it anywhere else

  • @junhyeongyoo6257
    @junhyeongyoo6257 6 років тому +1

    you're my hero, thank you so much!

    • @OverSeasMedia
      @OverSeasMedia  6 років тому +1

      You're most welcome .
      Cheers mate :))

  • @topher793
    @topher793 6 років тому

    Great intro video. Thank you!

    • @OverSeasMedia
      @OverSeasMedia  6 років тому

      You're most welcome . Thank you for he feedback .
      Cheers :)

  • @ehsandmt3710
    @ehsandmt3710 4 роки тому

    Thanks alot sir, do more vids

  • @ГригорийГриб
    @ГригорийГриб 7 років тому

    Thanks! Very helpful!

  • @Yo-yx8wo
    @Yo-yx8wo 6 років тому +1

    Thanks, really useful

  • @KarteekRakshit
    @KarteekRakshit 6 років тому +1

    really amazing tutorial

  • @WorstDeveloper
    @WorstDeveloper 7 років тому +1

    Worked well. I used this package for .NET Core instead:
    www.nuget.org/packages/Microsoft.Data.SQLite/1.1.1
    Had to create the file with System.IO though.

  • @chefbennyj
    @chefbennyj 3 роки тому

    Nice! How do you create a column if it doesn't exist in a database?

  • @serhatkaradag8786
    @serhatkaradag8786 3 роки тому

    15:45 you mean Close() instead Clone() or ?

  • @fooballers7883
    @fooballers7883 Рік тому

    Thank you for a great tutorial......some lovely coding.

  • @sylens_
    @sylens_ 6 років тому

    What if you wanted the data that was created inside of the Sqlite GUI to be Stored inside of a datagrid, would you mind helping me out with doing that.

  • @TheErudito
    @TheErudito 2 роки тому

    Bro are you a god thanks

  • @TrangVu-ni4fv
    @TrangVu-ni4fv 3 роки тому

    Hello, your tutorial is so amazing. Howerver when I release my project into an exe file and download it on another computer, it does not work anymore and it says no such database. I would be very greatful if you can tell me the solution for the problem. Thanks!

  • @fredrikjag
    @fredrikjag 6 років тому

    is there a way to make Both connection open/close/Command, public, so that you dont have to specify it on every frompages?

  • @Marcelo-kv7gb
    @Marcelo-kv7gb 4 роки тому

    Muito bem explicado. Muito obrigado!

  • @rock53355
    @rock53355 2 роки тому

    Thank you so much!

  • @dveo_o
    @dveo_o 6 років тому

    When you transfer the project to a new pc to run it (like you said the client for example) do you need to install the nuget package again like you did here?

    • @OverSeasMedia
      @OverSeasMedia  6 років тому +1

      Hello Dejvi,
      No you don't this is just a development dependency only required during the development process, once you compile and deploy your app everything will be included for you there, nothing required in the client side, it's not like mysql or mysql Server (which was a pain in the ass back in the days when i was using them), sqlite is serverless .
      Cheers :))

    • @dveo_o
      @dveo_o 6 років тому

      Hello thanks for the fast reply :)
      What do you mean by deploy my app? Make it an executable(like .exe) or something? How can I do that?
      I've only ever started and tested my projects from my IDE

    • @OverSeasMedia
      @OverSeasMedia  6 років тому +2

      Yes Deploy your application means having an executable that you can run on your client's machine, you can search the web there a lot of tools that can help you do that it's easy, and since your using sqlite it's even easier when it comes to the database stuff all you need to do is include your database file with your project assets (images, icons ..) and you're ready to go.
      Unfortunately i don't have windows installed at the moment i would have recorded a video for you on how to do it, but it's gonna take some while cause i need windows and VS, but you can always use google and get this stuff done :))

  • @KevinCarbonaro
    @KevinCarbonaro 7 років тому

    Why when I type public SQLiteConnection myConnection; there is an underline under SQLConnection ? I followed your instructions step by step multiple times and not sure if I missed something or not. The sqlite reference is there, the using statement is there as well. I am using VS Community 2015.

    • @KevinCarbonaro
      @KevinCarbonaro 7 років тому +3

      Nevermind... I uninstalled sqlite from nuget manager and installed again... not sure what happened but the first time round it must not have installed correctly. Hopefully my comment helps others, so leaving it here.

    • @OverSeasMedia
      @OverSeasMedia  7 років тому +1

      Kevin Carbonaro thank you for taking the time to share the solution with everyone

  • @reeesgaming7056
    @reeesgaming7056 4 роки тому

    idk if u r still here but when i hit run it comes up with
    SQL logic error no sutch table: albums

  • @brianzhu8203
    @brianzhu8203 5 років тому

    guys if u dont see your .sqlite or .db file, go to the release folder instead

  • @diwaspoudel3130
    @diwaspoudel3130 7 років тому

    Thank you sir...

  • @hera2711
    @hera2711 7 років тому

    Hello, I dont know you are here or not, but When I do the results to display the results from the db to console I get System.InvalidOperationException: No current row

    • @OverSeasMedia
      @OverSeasMedia  7 років тому

      I'm so sorry for not replying earlier to this message i'm not logging in to this account a lot lately, If you're still having trouble with this or seeking help with anything else, please leave a reply with a code snippet or something and i'll do my best to assist you.
      Thank you.

  • @jimrody7716
    @jimrody7716 3 роки тому

    After installing SQLite HOW do you open it? Is there a button to somewhere to click?

    • @dchubad
      @dchubad 3 роки тому

      SQLite is installed by right clicking on the project and adding it using the Nugnet option. Once installed you have to declare it with the 'using' at the top of your opened project page such as using System.Data.SQLite; Once you done that you should be good to go. hope this helps

  • @reeesgaming7056
    @reeesgaming7056 4 роки тому

    its very epic!!

  • @mamunurrashid5652
    @mamunurrashid5652 6 років тому

    Nice.....

  • @knad9752
    @knad9752 3 роки тому

    Does this work with xamarin?

  • @МагжанДжаксылыков
    @МагжанДжаксылыков 5 років тому +1

    How to open DB BROWSER for SqLite?

    • @OverSeasMedia
      @OverSeasMedia  5 років тому

      You have do download and install.it it's not included

    • @danielvinarov
      @danielvinarov 5 років тому +1

      @@OverSeasMedia is that link intended or is it just a typo? How do I download it, couldn't find updated tutorials

    • @OverSeasMedia
      @OverSeasMedia  5 років тому

      Hey Daniel,
      That's just a typo I am sorry

    • @danielvinarov
      @danielvinarov 5 років тому

      @@OverSeasMedia oh hi thank you for your quick response. How do I install it? Thier site has changed and I cant find it
      Can you tell me or do a simple tutorial?

  • @doannguyen4946
    @doannguyen4946 7 років тому

    nice dude ,ty

  • @omervolkankup3865
    @omervolkankup3865 4 роки тому

    I m getting errors during cooding all time for some reason , then i have to define them and get set, but the last error i m getting is not even making sence .

    • @omervolkankup3865
      @omervolkankup3865 4 роки тому

      Severity Code Description Project File Line Suppression State
      Error CS1061 'SQLiteconnection' does not contain a definition for 'Open' and no accessible extension method 'Open' accepting a first argument of type 'SQLiteconnection' could be found (are you missing a using directive or an assembly reference?) SQLite C:\Users\oemer\source
      epos\SQLite\SQLite\Database.cs 30 Active

    • @omervolkankup3865
      @omervolkankup3865 4 роки тому

      Severity Code Description Project File Line Suppression State
      Error CS1503 Argument 2: cannot convert from 'SQLite.SQLiteconnection' to 'System.Data.SQLite.SQLiteConnection' SQLite C:\Users\oemer\source
      epos\SQLite\SQLite\Program.cs 17 Active

    • @essenceshift098
      @essenceshift098 3 роки тому

      @@omervolkankup3865 share your source code?

  • @parthdattani31
    @parthdattani31 4 роки тому

    i not retrive sqlite namespace
    why?

  • @jackson8102
    @jackson8102 4 роки тому

    hi
    i am trying to type these code, why the code show System.Data.SQLite.SQLiteException: 'SQL logic error
    near "INSTER": syntax error'
    do u helpt me?

  • @PapadakisGiannis
    @PapadakisGiannis 2 роки тому

    how you opend dbrowser

  • @KaanMenace
    @KaanMenace 2 роки тому

    Bro, can you show how to protect a sqlite3 DB with a password? ❤️

  • @FiraFiki
    @FiraFiki 7 років тому

    Thank you :)

  • @clickdraw9762
    @clickdraw9762 3 роки тому

    Shoutout Bryson Tiller.

  • @ChristianHaugland74
    @ChristianHaugland74 2 роки тому

    using dapper it is even simpler than this :)

  • @davidgates5189
    @davidgates5189 5 років тому

    dude you have same voice as Cristiano Ronaldo lol !!

    • @OverSeasMedia
      @OverSeasMedia  5 років тому +1

      LMAO I just watched one of his videos cause I never heard him talk and I can confirm that your comment is accurate af 😂.

  • @TRICKSNDASTUCES
    @TRICKSNDASTUCES 5 років тому

    thnx

  • @didierleprince6106
    @didierleprince6106 6 років тому +1

    Merci

  • @reeesgaming7056
    @reeesgaming7056 4 роки тому

    thank u for this tho

  • @hoangphihung9387
    @hoangphihung9387 6 років тому

    Thank !

  • @reeesgaming7056
    @reeesgaming7056 4 роки тому

    nvm i fixed it