LINQ Queries

Today in Dev [Over]Simplified, our hero, LINQ, saves a relationship on ice.

Posted on 06/28/2021 by Kasey Wahl

So you're eating at the dinner table when this alien come's up to you like:

And you're like, "Sure."

So you decide you're going to code up a blog in C# because you need a place to store all of your ideas.

So you code up classes in the shape of Posts, Blogs, and Comments--everything you need for a basic blog. 

You find some cute HTML blog template, slap it into your Solution, and you're ready to publish.

And then it occurs to you:

You don't have anywhere to store your data--the strings and ints and DateTimes that, for now, you're storing in that big ol' head of yours.

You're alien friend's like, "Hey, I've got an idea. Why don't you store all that in a database?"

You're like, "That's pretty chill."

So you download a bunch of NuGet packages, wire your database to your solution, set your first data migration, and you're set!

Or so you thought.

You've actually just encountered another roadblock.

Even though you're wired to a database that stores all of the data tables you need, you don't speak SQL, the language that databases understand.

Your application consists of two star-crossed lovers who's love letters are lost at sea.