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

preview_player
Показать описание
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

Full Video Series for Movie Review Blazor App on .NET 8

✍ Code Example for Database version of Movie App on GitHub

✍ Code Example for First version (no database) of Movie App on GitHub

Video Tutorial for the first version (no database) of the Movie

Full Blazor on .NET 8 and Blazor Video Series

.NET 8 Video

.NET Playlist

🕐 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 ☕️

PayPal

🪙 BitCoin
12JZYMiRq5YRDN5R5zuyYt7jMN8eTpkgns

Please follow me on Twitter @GavinLonDigital

Full Playlist - C# for Beginners Course
------------------------------------------------------------

Links Included in this Video
--------------------------------------------
Install .NET 8 Preview 6

Announcement of .NET 8 Preview 6

Install Visual Studio 2022 Preview

Signal-R Explanation

Free Courses and Educational Videos - Gavin Lon
-------------------------------------------------------------------------------
Blazor (Webassembly) Shopping Cart Application full playlist

Full playlist - Let's Build an ASP .NET Core MVC Web Application on .Net 5

Full playlist - Advanced C# Course

Full playlist - C# for Beginners Course

Blazor Server App on .NET 6 Course - FreeCodeCamp

🎶All Music in this Video was Created by Gavin Lon
Рекомендации по теме
Комментарии
Автор

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, 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.

GavinLon
Автор

Thank you! Please keep upload these useful videos for the rest of us.

embossCoder
Автор

Hello sir I just wanna say thank you your advanced c sharp course help me alot
I am learning AR VR stuff your c sharp videos are very Helpful
Thank you.

prashlovessamosa
Автор

thanks for the clear and concise video!

gilleyt
Автор

Great video, I was going to ask from the static data to sql version.. and here it is. Now how about an API version?

netrunner
Автор

When I run the app after downloading it to my local machine, I get this error An unhandled exception occurred while processing the request.
InvalidOperationException: Endpoint / (/) contains anti-forgery metadata, but a middleware was not found that supports anti-forgery.
Configure your application startup by adding app.UseAntiforgery() in the application startup code. If there are calls to app.UseRouting() and app.UseEndpoints(...), the call to app.UseAntiforgery() must go between them. Calls to app.UseAntiforgery() must be placed after calls to app.UseAuthentication() and app.UseAuthorization().

Chefrachida
Автор

the link to "Code Example for Database version of Movie App" does not seem to work! Thx

saroshwadia