Connecting C# To MySQL Using Blazor (Full CRUD Actions)



Connecting C# To MySQL Using Blazor (Full CRUD Actions)

Connecting C# To MySQL Using Blazor (Full CRUD Actions)

How do I talk to MySQL from C#? That’s a pretty common question. MySQL databases are very popular, especially on the web. So when you are building a web application especially, you might be considering using MySQL. Fortunately, there is a very easy way to connect to MySQL databases using C# and in this video, I am going to show you how to do just that.

Mailing List: https://signup.iamtimcorey.com
Source Code: https://leadmagnets.app/?Resource=ConnectingToMySQL
Purchase Courses: https://iamtimcorey.com
Patreon: https://www.patreon.com/IAmTimCorey

0:00 – Intro
0:51 – Demo Blazor Server App
3:57 – Adding a Class Library
5:43 – Adding NuGet packages
7:04 – Data Access class:
8:27 – • Load data method explained
15:51 – • Save data method explained
18:20 – Library dependency
19:15 – New Blazer page
20:48 – Dependency injection (startup.cs)
24:38 – Razor page setup: Using statements
25:45 – Making data access methods Async
32:25 – Adding Data Models
34:11 – Razor Page setup: Calling data access
37:19 – MySQL Connection string
41:11 – Razor Page layout for displaying data
44:11 – Save Data
49:14 – Update Data
52:40 – Delete Data
54:55 – Summary and concluding remarks

Thanks to Ralfs HBK for the chapters breakdown

Comments are closed.