Blazor Tutorial | CRUD With Blazor, Step By Step | .NET 7

  Рет қаралды 50,427

Julio Casal

Julio Casal

Жыл бұрын

✅.NET 8 Full Course here: • Blazor Full Course For...
💻Get the source code: go.dotnetacademy.io/blazorcra...
Learn how to build an ASP.NET Core Blazor application completely from scratch and step by step.
By the end of this course, you will have a fully functional Blazor single page application, built entirely with C#, HTML and CSS, that will allow users to manage a simple game catalog from a modern, interactive and friendly user interface.
Topics covered:
01:07 A look at the finished application
04:53 Software prerequisites
05:33 What is ASP.NET Core?
10:18 What is Blazor?
12:29 Development environment setup
15:22 Creating a Blazor WebAssembly project
21:00 Exploring the Blazor project files
35:20 Debugging a Blazor WebAssembly application
38:23 Removing unneeded files and code
40:44 Adding an HTML table
43:14 Creating a C# model class
47:55 Using Razor syntax to combine HTML with C#
56:47 Using Bootstrap to style an HTML table
1:00:41 Moving data to a separate C# client class
1:06:05 Populating data on Razor component initialization
1:10:36 Using the EditForm component
1:20:47 Submitting data captured in an EditForm
1:25:24 Using the NavigationManager component
1:35:18 Using the InputSelect component
1:38:35 Adding client-side validation
1:44:34 Adding GetGame and UpdateGame to the C# client
1:48:42 Using parameters in Razor components
2:00:17 Adding an Edit button to table rows
2:05:32 Adding a modal dialog for deletion
2:16:48 Adding a Delete button to trigger deletion
2:25:16 Next Steps
🔥Become a Senior C# Backend Engineer: juliocasal.com/courses
🗺️Get My Free .NET Backend Developer Roadmap: juliocasal.com/roadmap
Join me on Patreon: / juliocasal
Follow me on LinkedIn: / juliocasal
Follow me on X: x.com/julioc
#blazor #dotnet #aspnetcore

Пікірлер: 98
@AthelstanEngland
@AthelstanEngland Жыл бұрын
I'm a native English speaker and found running this at 0.75 speed made the English much easier to understand, almost as if it had been uploaded at the wrong speed. Thanks for the video.
@juliocasal
@juliocasal Жыл бұрын
Thanks Athelstan, apologies for speaking too fast!
@AthelstanEngland
@AthelstanEngland Жыл бұрын
@@juliocasal lol no problem I can barely speak a second language, let alone quickly!!
@Duelweb
@Duelweb Ай бұрын
You are far and away the best! Clear, snappy and no ambiguity! Brilliant!
@juliocasal
@juliocasal Ай бұрын
Wow, thank you!
@markbennett1237
@markbennett1237 7 ай бұрын
Best Blazor tutorial I have found so far. Although I had to change the playback speed to 75%. Good thing KZbin has that feature. You speak very fast!
@juliocasal
@juliocasal 7 ай бұрын
I'm glad it helped, and sorry for speaking too fast!
@bennymountain1
@bennymountain1 5 ай бұрын
@@juliocasal Sounds good on my end, I set it to 125%, because I was on a deadline 🤣
@jacobjuarez9950
@jacobjuarez9950 Ай бұрын
You answered all the questions that I had while being thorough yet easy to understand!! Thank you
@juliocasal
@juliocasal Ай бұрын
I'm so glad!
@derekprieur5258
@derekprieur5258 Жыл бұрын
Julio, this has been a phenomenal video so far (I am about halfway through). I am normally developing in React but had to pickup Blazor for a bit recently. This video is simple and well explained so thank you 👍
@juliocasal
@juliocasal Жыл бұрын
Glad it was helpful!
@serkiat1
@serkiat1 Жыл бұрын
I am just learning Blazor and find your video so useful. I also liked the bits about Bootstrap, which is a new area for me. Thank you so much.
@juliocasal
@juliocasal Жыл бұрын
Glad it was helpful!
@th3ceo
@th3ceo 10 ай бұрын
Julio, Thank you! I needed a quick into to Blazor and this did the job. Looks like you have a good content. I appreciated No Ads and Happy to send Super Thanks!
@juliocasal
@juliocasal 10 ай бұрын
Thank you @th3ceo, really appreciate your support!
@tajudeensalaudeen5594
@tajudeensalaudeen5594 11 ай бұрын
Julio, Your style of teaching is awesome, Thank you for the video. I will use this to kick start Blazor.
@juliocasal
@juliocasal 11 ай бұрын
You're welcome!
@pavloblyznuk7027
@pavloblyznuk7027 6 ай бұрын
Nice explanation how to start using Blazor! Thank!
@juliocasal
@juliocasal 6 ай бұрын
Glad it was helpful!
@bulent2435
@bulent2435 Жыл бұрын
This is a great video, thanks. I'm also very happybecause someone finally said that I don't have to use Visual Studio. After using Vscode many year, Visual Studio doesn't make me feel comptable.
@juliocasal
@juliocasal Жыл бұрын
Great to hear!
@bennymountain1
@bennymountain1 5 ай бұрын
Great video, sir! Also serves as a good intro to VS Code.
@juliocasal
@juliocasal 5 ай бұрын
Glad you think so!
@tbunreall
@tbunreall 3 ай бұрын
Great video greatly appreciated
@juliocasal
@juliocasal 3 ай бұрын
Glad it was helpful!
@gui2peg
@gui2peg 5 ай бұрын
thank you very much for this
@juliocasal
@juliocasal 5 ай бұрын
You're very welcome!
@joaolopes9926
@joaolopes9926 5 ай бұрын
Thanks.
@juliocasal
@juliocasal 5 ай бұрын
Welcome!
@sifisocyprianshezi3824
@sifisocyprianshezi3824 Жыл бұрын
Great video. I want to apply this knowledge creating a appointment/ todo portal
@juliocasal
@juliocasal Жыл бұрын
Go for it!
@edinetgrunhed6000
@edinetgrunhed6000 5 ай бұрын
thanks for this video
@juliocasal
@juliocasal 5 ай бұрын
My pleasure!
@user-hw8tn2yd8b
@user-hw8tn2yd8b 2 ай бұрын
followed along but using Visual Studio rather than VS code. Got everything working apart from Modal, which would not open until I placed the DeleteGame razor component in a new DIR which I named Components (I appeared to recognise it as a Page when in was in the Pages DIR). Used Fontawesome instead of ioconic as it doesn't seem available to VS. Great little work out, thank you Julio.
@juliocasal
@juliocasal 2 ай бұрын
I’m glad it worked out!
@markdickensapdatamigration6283
@markdickensapdatamigration6283 5 ай бұрын
Very Good Training Content - Thank You . . . You sound Italian and have100% perfect English but if you could *SLOW* down yout talk by 15% or 25% then this would help me (UK/British/English) and the others on KZbin :-) ... please keep the training coming . . . I am impressed so far
@juliocasal
@juliocasal 5 ай бұрын
Noted!
@troyherman4458
@troyherman4458 5 ай бұрын
you are aware that you can literally slow him down by 15% in the settings right? I did this and it helps a lot. I appreciate the 15% suggestion, 25% is too slow.
@mrdl9199
@mrdl9199 Жыл бұрын
This is a great video, thanks.
@juliocasal
@juliocasal Жыл бұрын
You're welcome!
@anishjoshi1999
@anishjoshi1999 3 ай бұрын
love from nepal
@reipalacio
@reipalacio Жыл бұрын
o tanks. i am understanding finaly
@juliocasal
@juliocasal Жыл бұрын
Great to know!
@pepsiman_official
@pepsiman_official 2 ай бұрын
now starting to this one
@juliocasal
@juliocasal 2 ай бұрын
A .NET 8 version of this one is coming soon. Stay tuned!
@pepsiman_official
@pepsiman_official 2 ай бұрын
@@juliocasal Roger-Dodger, big brother
@moranmono
@moranmono 11 ай бұрын
Thanks!
@juliocasal
@juliocasal 11 ай бұрын
Ohh wow, thank you @moranmono!
@evaristegalois7378
@evaristegalois7378 3 ай бұрын
I'm following along, but building it in Visual Studio rather than vs code. If i come unstuck, it doesn't matter. Might try at 0.75 speed though, sounds like a good idea!
@waleedbensumaidea3947
@waleedbensumaidea3947 4 ай бұрын
Thank you so much Julio, Would you like to create a Video about Blazor in NET8 with the new Template? We see that there are some changes in the project files structure. Also, there are multiple render modes for each page so that makes it hard to decide which render mode to choose. Plus if we have to install a UI template like MudBlazor how installing the template would be with the new project structure, because in the client project, they had removed index.html and its layout
@juliocasal
@juliocasal 4 ай бұрын
I would love to, but a bit constrained on time right now. You can still do dotnet new blazorwasm in .NET 8, and the layout should not be too different from what I did in this video. Is it?
@robherto6260
@robherto6260 Жыл бұрын
Dear Julio. Thank you so much, this topic is really interesting. What about micro-frontend using blazor webassembly. Is it posible to work with?
@juliocasal
@juliocasal Жыл бұрын
I think it's doable, but I have not tried it yet.
@user-ff1uw2ud3x
@user-ff1uw2ud3x 9 ай бұрын
Hello Mr. Julio , I love your tutorial so far, very helpful and informative! I am facing a problem though at 1:29:33 when i try to run the project it says " error CS1061: 'List' does not contain a definition for 'Id' and no accessible extension method 'Id' accepting a first argument of type 'List' could be found (are you missing a using directive or an assembly reference?) " Why is that, i followed your tutorial closely , did i mess up somewhere? Thanks
@juliocasal
@juliocasal 9 ай бұрын
Care to share the code snippet where you are getting the error?
@dilipnair4762
@dilipnair4762 5 ай бұрын
Great video for beginners. Where can i get the source code for this project.
@juliocasal
@juliocasal 5 ай бұрын
Thanks! Source code here: www.patreon.com/posts/source-code-crud-82351048
@Ork-Schamane
@Ork-Schamane 10 ай бұрын
Nice Video. What is the Name of the mouse Highlight and arrow making prog?
@juliocasal
@juliocasal 10 ай бұрын
Camtasia.
@zedshockblade7157
@zedshockblade7157 2 ай бұрын
Do you know any good code formatter for razor pages in vscode?
@juliocasal
@juliocasal 2 ай бұрын
None other than the default that comes with the C# extension.
@valterekholm375
@valterekholm375 5 ай бұрын
Hello. How can the VS code intellisense work for PHP?
@juliocasal
@juliocasal 5 ай бұрын
No idea.
@2005Azm
@2005Azm Жыл бұрын
Thank your Sir for your great tutorial! I have one question! how to change sidebar color of the default Blazor server? Let's say I want it to be Green!!
@juliocasal
@juliocasal Жыл бұрын
Azim, that's defined in MainLayout.razor.css, in your Shared directory. Look for the sidebar class in that file and update the colors of the background-image property, like this: .sidebar { background-image: linear-gradient(180deg, rgb(5, 103, 20) 0%, #a09e65 70%); } Hope that helps!
@2005Azm
@2005Azm Жыл бұрын
@@juliocasal Thank you so very Mach Sir!
@JhimmyDev
@JhimmyDev Жыл бұрын
Hello Julio, which color theme do you use in vscode?
@juliocasal
@juliocasal Жыл бұрын
Jhimmy, I use the VS Code Icons extension, which whichever defaults it comes with: marketplace.visualstudio.com/items?itemName=vscode-icons-team.vscode-icons
@JhimmyDev
@JhimmyDev Жыл бұрын
@@juliocasal thank you.
@duartelucas5746
@duartelucas5746 Жыл бұрын
Julio, five stars!
@juliocasal
@juliocasal Жыл бұрын
Thank you!
@ThemisTheotokatos
@ThemisTheotokatos 11 ай бұрын
I Noticed that when I right click "view source", I don't see the html code that was created with razor rather I see the content of intdex.html. However when I click on developer tools, I can see what is rendered. If I crawl with my web spider the url I don't see the table. Can you explain why this might be the case?
@juliocasal
@juliocasal 11 ай бұрын
Yea, that's expected. Check this SO answer: stackoverflow.com/a/70772352/6105076
@morgtv1023
@morgtv1023 10 ай бұрын
Hello Mr. Julio, is there a way to integrate Blazor with Django? Thank you.
@juliocasal
@juliocasal 10 ай бұрын
I'm not familiar with Django, but if it is a backend web framework, it should be straightforward to integrate.
@xodusgraphicdesigns3384
@xodusgraphicdesigns3384 5 ай бұрын
how would i connect this to a database
@juliocasal
@juliocasal 5 ай бұрын
I go over that here: juliocasal.com/aspnetcore
@cristianconrads9109
@cristianconrads9109 11 ай бұрын
:( I dont know what did I do wrong but the X button does not display the message to confirm delete Thanks a lot for the code, my dislexia did't help, had lots of misspellings.
@juliocasal
@juliocasal 11 ай бұрын
Check out the included source code download. Should help point out what's missing.
@dobetter5433
@dobetter5433 Жыл бұрын
my blazor application in visual studio consume 100% cpu ! how to solve it !
@juliocasal
@juliocasal Жыл бұрын
Which specific processes are consuming 100% CPU in your box?
@dobetter5433
@dobetter5433 Жыл бұрын
@@juliocasal visual studio 2022 project 3300+ mb
@juliocasal
@juliocasal Жыл бұрын
@@dobetter5433 Try using VS Code instead 🙂
@harrisonwell1719
@harrisonwell1719 Жыл бұрын
how to format decimal as currency
@juliocasal
@juliocasal Жыл бұрын
Harrison, like this: @game.Price.ToString("C2")
@harrisonwell1719
@harrisonwell1719 Жыл бұрын
@@juliocasal I need the format to be like this while editing the input numbers not only when loading data
@sadokabdelbasset3226
@sadokabdelbasset3226 Ай бұрын
Thank you so much for the video, but please can you speak slower because it is very hard for us to understand, thank you again
@juliocasal
@juliocasal Ай бұрын
Noted! Also, new Blazor course coming soon!
@user-lt7cf5qq8j
@user-lt7cf5qq8j Жыл бұрын
It seems to me that working in Visual Studio is much more convenient. Is'n it ?
@juliocasal
@juliocasal Жыл бұрын
Not quite, Abo. Anything specific in the video that makes you think so?
Blazor Full Course For Beginners
5:06:17
Julio Casal
Рет қаралды 43 М.
Is Blazor Better than React?
14:25
Gavin Lon
Рет қаралды 39 М.
КАХА и Джин 2
00:36
К-Media
Рет қаралды 1,8 МЛН
SHE WANTED CHIPS, BUT SHE GOT CARROTS 🤣🥕
00:19
OKUNJATA
Рет қаралды 11 МЛН
Glow Stick Secret (part 2) 😱 #shorts
00:33
Mr DegrEE
Рет қаралды 51 МЛН
.NET Framework vs .NET Core vs .NET vs .NET Standard vs C#
25:14
IAmTimCorey
Рет қаралды 532 М.
What is the Future of Blazor? Should I Learn Blazor?
22:32
IAmTimCorey
Рет қаралды 54 М.
8 Free and Open Source Blazor UI Libraries
9:42
Claudio Bernasconi
Рет қаралды 33 М.
VS Code Tutorial For C# Developers
39:22
Julio Casal
Рет қаралды 15 М.
Should I Focus on Blazor or ASP.NET Core?
12:39
IAmTimCorey
Рет қаралды 76 М.
Blazor in 100 Seconds
2:33
Fireship
Рет қаралды 535 М.
ChatGPT Can Now Talk Like a Human [Latest Updates]
22:21
ColdFusion
Рет қаралды 502 М.
КАХА и Джин 2
00:36
К-Media
Рет қаралды 1,8 МЛН