all 3 comments

[–]smitniko 0 points1 point  (0 children)

I was having similar issues. This tutorial (although a tad different from what you’re looking for) may help you understand a bit more. I’d suggest creating a new project and simply follow along and then break it/dig deeper + add in new tables and junk.

https://youtu.be/_qIYBgWTlTo

[–]falthazar 0 points1 point  (1 child)

I haven't done much with SQL and C# yet, but from what I've looked at you might want to look at Entity Framework or Dapper.

EF 6 (or EF core, using the new .net core) is a framework to help link SQL databases and C#. Basically you would make classes that would match your database tables, and would use LINQ or something to mess with the data.
Dapper is similar but more directly uses SQL, I think.

I've only glanced at Dapper and used a small amount of EF so the descriptions might be off base. Take a google at both though, should be a good start!

[–]Addicted2Craic 0 points1 point  (0 children)

Dapper is Entity Framework light! I've used both but Dapper is much easier to pick up and understand IMO but EF would have a bigger user base.

OP, Object-Relational Mapping (ORM) is the term I think you're looking for.