Blazor on .NET 8 - Movie Review App - EntityFramework Core Migrations - Database Functionality

Опубликовано: 05 Октябрь 2024
на канале: Gavin Lon
2,079
96

In this video we revisit the Movie Review App that we build in a previous part of this series of videos related to Blazor and .NET 8. We modify the code so that the movie data is stored in a SQL Server database, and we add code to query this database using EntityFrameworkCore and LINQ.

******Important note
Please note that if you are using the official release of .NET 8 when running this project, please appropriately use this method in the relevant Program.cs file, AddInteractiveServerComponents. The code on GitHub currently implements the method, AddServerComponents, which is compatible with the relevant preview release of .NET 8 which was used when first developing this project.

Full Video Series for Movie Review Blazor App on .NET 8
🔗    • Blazor Movie Review Application on .N...  

✍ Code Example for Database version of Movie App on GitHub
🔗 https://github.com/GavinLonDigital/Mo...

✍ Code Example for First version (no database) of Movie App on GitHub
🔗 https://github.com/GavinLonDigital/Ba...

Video Tutorial for the first version (no database) of the Movie
🔗    • Blazor Movie Review Application on .N...  

Full Blazor on .NET 8 and Blazor Video Series
🔗    • What's New in .NET 8 ?  


.NET 8 Video
🔗 -    • What's New in .NET 8 ?  

.NET Playlist
🔗    • .NET Framework and .NET Core  

🕐 Video Time Indexes
-------------------------------------
00:00:00 - Introduction
00:04:38 - Setup Environment for .NET 8 and Blazor
00:05:11 - Get Code for First Version of Movie App from GitHub
00:08:01 - Create DBContext Class
00:09:27 -Add EntityFrameworkCore.SQLServer Dependency
00:09:41 - Add EntityFrameworkCore.Tools NuGet Package
00:10:19 - Create Code for the DBContext Class
00:12:00 - Write Code to Seed the Database
00:16:40 - Configure Connection String
00:17:23 - Configure DBContext type for Dependency Injection
00:18:27 - Run Ef Core Migration
00:22:34 - Write Task Async/Await Code for Asynchronous Functionality


Support the Channel 👍
------------------------------------
Buy me a Coffee ☕️
🔗 https://www.buymeacoffee.com/GavinLon

PayPal
🔗 https://www.paypal.com/paypalme/GavinLon

🪙 BitCoin
12JZYMiRq5YRDN5R5zuyYt7jMN8eTpkgns

Please follow me on Twitter @GavinLonDigital

Full Playlist - C# for Beginners Course
------------------------------------------------------------
🔗    • Unity for Beginners (C#) - 2023 - Let...  

Links Included in this Video
--------------------------------------------
Install .NET 8 Preview 6
🔗 https://dotnet.microsoft.com/en-us/do...

Announcement of .NET 8 Preview 6
🔗 https://devblogs.microsoft.com/dotnet...

Install Visual Studio 2022 Preview
🔗 https://visualstudio.microsoft.com/vs...

Signal-R Explanation
🔗 https://learn.microsoft.com/en-us/asp...


Free Courses and Educational Videos - Gavin Lon
-------------------------------------------------------------------------------
Blazor (Webassembly) Shopping Cart Application full playlist
🔗    • Blazor (WebAssembly) and Web API on ....  

Full playlist - Let's Build an ASP .NET Core MVC Web Application on .Net 5
🔗    • Part 1 - Overview - Let's Build an AS...  

Full playlist - Advanced C# Course
🔗    • Introduction - Advanced C# Tutorial (...  

Full playlist - C# for Beginners Course
🔗    • C# for Beginners - Part 1 - Introduct...  



Blazor Server App on .NET 6 Course - FreeCodeCamp
🔗    • Blazor Server App with .NET 6 and Syn...  

🎶All Music in this Video was Created by Gavin Lon