Intro to Blazor Server Side - Includes SQL Data Access and Best Practices

Sdílet
Vložit
  • čas přidán 24. 06. 2024
  • Blazor Server Side is an ASP.NET Core application type that uses SignalR to connect the client to the server. This allows for a rich, client-side interactivity with just C# code (no JavaScript needed). In this video, we will walk through what Blazor Server Side is, how it compares to Blazor Client Side, how to set it up and use it, and even how to connect it to SQL to create a real page that inserts data into the database and displays information from the database.
    Mailing List: signup.iamtimcorey.com/
    Source Code: leadmagnets.app/?Resource=Bla...
    Courses: IAmTimCorey.com/courses
    0:00 - Intro
    1:22 - Creating new Blazor Server App
    4:46 - Balzor Server App overview
    11:08 - Counter page explained
    18:15 - Counter Page Network traffic
    25:00 - Fetch Data page explained
    32:24 - Data Access
    32:55 - Data Access: Standard Class Library with Dapper
    46:59 - Data Access: Blazor App configuration and database connection string
    49:02 - Data Access: New Razor Component page and display Data from database
    59:30 - Data Access: Save data with data validation
    1:03:52 - Data Access: Blazor UI from
    1:08:25 - Data Access: Save data from form
    1:13:36 - Summary and concluding remarks
    Thanks to Ralfs HBK for the chapters breakdown

Komentáře • 845

  • @paulnewell8873
    @paulnewell8873 Před 4 lety +46

    Tim, thank you so much for this, your tutorial is so clear and concise. I haven't programmed in about 5 years and just getting back into it and coming from a VB desktop application background it was a bit daunting. This tutorial and your c# to SQL tutorial made things so easy to understand. Easily the best tutorials around. Cheers.

    • @IAmTimCorey
      @IAmTimCorey  Před 4 lety +2

      Excellent! I am glad it was so helpful.

  • @oncalldev
    @oncalldev Před 4 lety +56

    Great introduction to Blazor Server-Side and one of the best "how-to" programming tutorials I've watched - clear, understandable and to the point.

  • @leighhydes
    @leighhydes Před 4 lety +21

    Awesome introduction to Blazor. I must also admit that this is one of the few video tutorials I've been fully engage with all of the way through. Thank you.

  • @randyriegel8553
    @randyriegel8553 Před 4 lety +8

    Thanks Tim. I've been messing with Blazor for a while (back in the preview versions) and never had very good experiences with it partly because lots of stuff changed from each preview release. This video was awesome and I learned a LOT! I've been using C# for about 10 years and still watch some of your fundamental videos and still learn stuff. Keep up the good work. I plan on subscribing to your Patreon.

    • @IAmTimCorey
      @IAmTimCorey  Před 4 lety +2

      I'm glad my content has been so helpful.

  • @sausagesmcgee7079
    @sausagesmcgee7079 Před 3 lety +3

    this guy is a fantastic teacher - subscribed! - I had ran up the demo project and thought I had it figured Tim showed many great tricks and explanations - Thanks Tim!

  • @calx
    @calx Před rokem +6

    I've done half a dozen of these Blazor CRUD tutorials, and this is the first one that was clearly explained and "just enough" to get me through these early stages of learning. Thank you so much!

  • @StephenSamuelsen
    @StephenSamuelsen Před 4 lety +10

    Phenomenal tutorial! Learned a ton watching this. Thanks for the great upload!

  • @graynoble4795
    @graynoble4795 Před 3 lety

    I am new to Blazor and using SQL and man, I have to say, you NAILED this video! Thank you for such great content!!!! Very well done!

  • @queenstownswords
    @queenstownswords Před 4 lety +1

    @Tim Thanks for pointing out the path vs. blazor component 'disconnect' (at the 50 minute mark of the video for others)! That disconnect is exactly what gets people confused in the real world.
    So cheers and please keep up the great work.

  • @RPGMadnessVX
    @RPGMadnessVX Před 4 lety +1

    I keep coming back to this tutorial. You are an excelent teacher! Thank you so much!

  • @EliCarter
    @EliCarter Před rokem +1

    I am haven't coding since ASP Classic and I was huge into building applications back then. This is the best video I found so far for working with Dbs. Thank you. I have a long road ahead.

  • @kainpwnsu
    @kainpwnsu Před rokem +3

    TIM! Thank you! THIS IS HOW CLASSES ARE SUPPOSED TO BE TAUGHT! You have explained WHAT, WHY, and HOW. Most courses only explain what to do. Standing ovation. You are an EDUCATOR. You've got yourself a new subscriber.
    I also very much appreciate the throwback to the "under construction" GIF of the 90s, at 27:25. Ah, those were the days, hacking out HTML between college classes so I don't completely starve to death.

    • @IAmTimCorey
      @IAmTimCorey  Před rokem

      I'm glad you enjoyed it.

    • @AthelstanEngland
      @AthelstanEngland Před rokem

      ​@@IAmTimCorey agreed excellent video again. Tim, is this still relevant as a good foundation for someone just getting ready for first Blazor app, or should we be looking at another/extra video. Thanks.

  • @gavranhas
    @gavranhas Před 2 lety +1

    Thanks a lot, Tim! That was EXACTLY what I was looking for to get started with an app. I wish you all the best and, of course, you have another pupil for a long time. :) Thanks again.

  • @amphetaminocid
    @amphetaminocid Před 4 lety

    This was the best intro on Blazor. I loved it. Thanks Tim.

  • @rubenssz
    @rubenssz Před 4 lety +2

    You sir help this world become a better place. I appreciate your effort. Thank you for this lesson, and for helping us!

  • @zarokoshin4090
    @zarokoshin4090 Před 3 lety +3

    I love the idea of making this kind of web apps without the need for JavaScript 🤩. There’re some topics that i find complicated and wrap my head around but you have a way to explain things that makes it like it’s simple, to me that’s a Great Teacher as always... thanks Tim, you are the best !

  • @orbitbyrd7369
    @orbitbyrd7369 Před 4 lety

    Thank you so much Tim. Great introduction to Blazor server side.

  • @AlexKruddinger
    @AlexKruddinger Před 4 lety +3

    Ima wathing thes for second time - a lot of good structured information, well done!

  • @DanBalan1
    @DanBalan1 Před 2 lety

    I'm pretty sure you saved my neck, Tim Corey. EF Core just wasn't clicking with my application needs and I thought I was gonna get canned for sticking my neck out so far for Blazor. Turns out I just needed the right tool for the job! I can't thank you enough man.

  • @aimanemeish3482
    @aimanemeish3482 Před 3 lety

    The Video is great, and i really like your comment at the end, telling us to choose things on purpose. thx a million. I stardted learning blazor yesterday with your videos, and now i have my firts project running correctly. grazie

  • @shararehbanei3871
    @shararehbanei3871 Před 11 měsíci +1

    since I started as "Junior Developer" ,you're my Great Teacher ,Many Thanks Tim 🙂

  • @devian1001
    @devian1001 Před 2 lety

    nice video Tim, I never believe you can do a great Intro in 1 hour and 20 mins. Thanks Tim.

  • @juanpabloguerra9512
    @juanpabloguerra9512 Před 2 lety

    Happy birthday Tim. Thanks for all you do

  • @mscotthowell1
    @mscotthowell1 Před 4 lety +1

    Great demo Tim. Wrapping my head around it. Thanks again.

    • @IAmTimCorey
      @IAmTimCorey  Před 4 lety

      You are welcome.

    • @mscotthowell1
      @mscotthowell1 Před 4 lety

      I love using dapper. I have watched this video many times and after numerous retries I have built a blazor app using the sakila database on mysql using vscode/vim and dotnet command line running on Fedora Core 31. So far it's working great. Again, thanks.

  • @samz2856
    @samz2856 Před 2 lety

    Your C# videos have been immensely helpful, thank you!

  • @yashvishah7800
    @yashvishah7800 Před 2 lety

    After 10 Years I have resumed my work... Your tutorials helped me a lot to get all through again... Thank You Soo Much.. God Bless You .. :-)

  • @Funkfreed
    @Funkfreed Před 3 lety

    Tim this is just awesome. I watched this did the code then I watched it again and created notes on all steps and suggestions you have. The other blazor videos are now in my watch later. Thanks again.

    • @IAmTimCorey
      @IAmTimCorey  Před 3 lety

      Excellent! That’s a great way to learn.

  • @klovehomes
    @klovehomes Před 4 lety

    Great breakdown of Blazor's structure ! Thanks

  • @arnotek
    @arnotek Před 10 měsíci +1

    I haven't built web applications in a while and the world moved - wow!. It may have been 3 years since you recorded this, but this is EXACLTY what I needed to get back into this arena. Thank you.

    • @IAmTimCorey
      @IAmTimCorey  Před 10 měsíci

      That's great!

    • @pjn2001
      @pjn2001 Před 10 měsíci

      @@IAmTimCorey Hi Tim. Thanks for all your excellent content that you put out. I was curious to know if this video is still relevant in regards to .net 7/8 or should I be looking at other more recent videos?

    • @IAmTimCorey
      @IAmTimCorey  Před 10 měsíci

      Yep, it mostly is. The biggest thing will be that Program.cs and Startup.cs have been collapsed into just Program.cs. I have a video covering the differences. Other than that, the rest is almost entirely still relevant.

    • @pjn2001
      @pjn2001 Před 10 měsíci

      @@IAmTimCoreyGreat stuff. Seems like nothing major then. I will definitely check out that video as well. Thank you so much for taking the time to respond sir, it is much appreciated.

  • @JimmyGee
    @JimmyGee Před 4 lety

    Great, as usual, Tim. Finally I know Blazor. Thanks!

  • @lesliequadros
    @lesliequadros Před 4 lety

    My first blazor video. Wonderful, thanks a lot.

  • @BCLBlazorCollectionsLibrary

    Really sir, very good structural info you describe in this video :)

  • @xphoenixaurax
    @xphoenixaurax Před 4 lety

    THANK YOU SO MUCH!! I was able to code along with you in a project that I am working on. Incredibly helpful!!

  • @markharby180
    @markharby180 Před 4 lety +8

    This is by far the best 'real-world' Blazor tutorial I have seen. Great work Tim.
    Will you be doing a client-side video as we get closer to launch ?

  • @MrErinday
    @MrErinday Před 3 lety

    Thanks for this, it's great. Im starting out the long path of rewriting a .NET web forms app i wrote years ago. Im not a trained programmer, Infrastructure mainly, but we never get access to our devs to do internal IT apps, so I try and learn some stuff myself to do some internal work. Coming from the fairly simple .aspx and .cs world it's quite daunting jumping into these very different (for me) frameworks. You have made it just that little less daunting. This has been a great help. Thankyou.

  • @quince10
    @quince10 Před 4 lety

    A great new year gift to us. Thanks million !

  • @talkathiriify
    @talkathiriify Před 4 lety

    Very Awesome!
    Thank you very much for the article, and wish you a happy new year.

  • @ritzP1976
    @ritzP1976 Před 2 lety +1

    Overall your content is brilliant. Definitely a must for all newcomers to the technologies you discuss.👍🏾

  • @MohammadAldefrawy
    @MohammadAldefrawy Před rokem

    This is the most valuable content I had found during my searching journey.
    من أفضل الفيديوهات التعليمية في هذا الفرع

  • @mjh0511
    @mjh0511 Před 4 lety

    Great work again Tim. Excellent tutorial. Now looking to start a Blazor project.

    • @IAmTimCorey
      @IAmTimCorey  Před 4 lety

      Thank you! Best wishes on your project.

  • @danervin5138
    @danervin5138 Před 4 lety +1

    Great demo today. Just what I needed. Been trying to find a good blazor server side demo that wasn't completely EF centric.

  • @skewlines4152
    @skewlines4152 Před 4 lety

    Following along with this video taught me a lot! It took me quite a while as I had to figure out how to do everything from Visual Studio Code on Linux, but in the end it worked perfectly. I ended up using a postgres docker container instead of sqlserver, but the other things work just as well if not quicker in vscode with the terminal.

  • @alansimpson4245
    @alansimpson4245 Před 4 lety +6

    Thanks Tim, great as always. For anyone who is interested, I did a Blazor / Dapper playlist. I won't post the URL because last time I did this message didn't show. But if you search Google for Blazor Dapper CRUD you should find it under Alan Simpson. Not saying it's as good as what Tim does, he's my mentor too. But it may be worth a peek if you're interested in Dapper.

  • @panostzavelis4489
    @panostzavelis4489 Před 4 lety

    The potential of Blazor (server side and client side) in dot net Core, is the main reason I decided to return to Microsoft after many years.
    This is an excellent lesson, thank you sir!

  • @PriyanshuSingh-vh2zi
    @PriyanshuSingh-vh2zi Před 2 lety

    Thank you so much for this video, I was stuck so badly and it just resolved my problem. It might have been risky for my job. It really helped me. thank you from bottom of my heart. Love from India.

  • @geoffreydesousa1254
    @geoffreydesousa1254 Před 4 lety

    Very thankful for these videos!

  • @ViragDesai
    @ViragDesai Před 3 lety

    Super tutorial, Tim! Very easy and I'm a fan of yours now 😊😊

  • @richardshi1896
    @richardshi1896 Před 3 lety

    It's a ton of information wrapped in a 1-hour video, but I have learned a lot. Need to watch it again and code along to really learn.

  • @kramesh3821
    @kramesh3821 Před 5 měsíci

    Hi Tim. Absolutely fantastic course, especially the details and the steps that you follow are great.

  • @steveymcneckbeard
    @steveymcneckbeard Před 4 lety

    Very nice indeed! Refused to watch any other tutorial on Blazor unless it was you or Kudenvat (you are first). Thanks Tim!

  • @gideon17you
    @gideon17you Před 3 lety

    This is excellent! Thank you Tim!

  • @anishravindran7545
    @anishravindran7545 Před 3 lety

    Great tutorial !!! Thanks for uploading this video. Thank You

  • @edwin2769
    @edwin2769 Před 4 lety

    Great tutorial video. one of the best tutorials I've watched...it is so easy to understand.

  • @ianjeffery3762
    @ianjeffery3762 Před 4 lety +1

    Please do more Blazor videos! The two you have done so far is great.....but i want more :-)

    • @IAmTimCorey
      @IAmTimCorey  Před 4 lety +2

      They are coming, including a start to finish course that uses them.

  • @peturkrustev8452
    @peturkrustev8452 Před 3 lety

    You have great teaching skills! Thank you!

  • @ben.thornhill
    @ben.thornhill Před 4 lety

    Blazor gets me seriously excited at the possibilities for us .NET developers. Thanks for the great introduction and I look forward to future videos exploring Blazor.
    P.S. that Razor confusion is almost too hard to believe... You couldn't make that up. 😂

  • @20alp02
    @20alp02 Před 2 lety +1

    Thank you so much! Awesome tutorial!

  • @Otonium
    @Otonium Před 3 lety

    Love it, so simple. The course paid off.

  • @GOCUTUBER
    @GOCUTUBER Před 4 lety

    Simply amazing as usual.

  • @kmills-swimmin
    @kmills-swimmin Před 2 lety

    You are as good as they come! Thank you for what you do.

  • @uwejadick4550
    @uwejadick4550 Před rokem

    Great tutorial Tim. Thanks a lot. That was my first Blazor tutorial and there will be a lot more before I will be able to upgrade my Winform ERP system to Blazor but it gives me a lot of ideas.

  • @zeljkokatic7101
    @zeljkokatic7101 Před 4 lety

    Tim you gave me a great idea for my reporting project by using Blazor

  • @TubeDommy
    @TubeDommy Před 4 lety

    Great tutorial. Thanks, Tim

  • @xacompany
    @xacompany Před 4 lety +1

    Thanks, Pure Gold!

  • @haneenrayedawad14
    @haneenrayedawad14 Před 4 lety +1

    best channel ever thank you sir

  • @TimothySinnott
    @TimothySinnott Před 2 lety

    Wonderful. Very helpful. Thank you.

  • @befitmyfriend
    @befitmyfriend Před 4 lety

    Great intro to Blazor.

  • @christopherguntang7816

    Thank you so much! I've learned many things from you, sir Tim.

  • @crispypvper7554
    @crispypvper7554 Před 4 lety +1

    Your tutorials are actually amazing, you explain everything so in-depth. Subbed :)

  • @S3Kglitches
    @S3Kglitches Před 3 lety

    I love this tutorial. Thank you for that. I just noticed Blazor Server in some of your other videos and I really liked it instead of MVC

    • @IAmTimCorey
      @IAmTimCorey  Před 3 lety

      Glad I could help!

    • @S3Kglitches
      @S3Kglitches Před 3 lety

      @@IAmTimCorey maybe you could do a short video of Blazor Server vs WebForms comparison? I noticed that WebForms is somehow similar

  • @acrowder
    @acrowder Před 3 lety

    Great video - thank you!

  • @ahkkafi
    @ahkkafi Před 3 lety

    Great content tim

  • @hjgarciac
    @hjgarciac Před 2 lety

    Excelente. Mi inglés es muy malo, pero la tonalidad, claridad y simplicidad del lenguaje usado, hacen que logre entender todo. Y el contenido insuperable. Felicitaciones

    • @IAmTimCorey
      @IAmTimCorey  Před 2 lety

      Awesome! I am glad my content is clear and helpful.

  • @user-hn4pm1ts9j
    @user-hn4pm1ts9j Před 8 měsíci

    Good starter tutorial. Thank you. I have a lot to learn. :)

  • @pietsmitsa
    @pietsmitsa Před 4 lety

    Awesome, loved it & subbed!

  • @HarveyMyers
    @HarveyMyers Před 3 lety

    Long time developer tying to catch up and move ahead after some years of disability, this is great.

  • @emcattaneo
    @emcattaneo Před rokem

    Great video! Thanks!

  • @zoltan.halasz
    @zoltan.halasz Před 4 lety

    Thanks for the tutorial!

  • @pingu2k4
    @pingu2k4 Před 4 lety

    Have only just loaded the video so this may be mentioned at some point, but there isn't enough Blazor stuff out there right now, so thanks. Hope there are more to come from you.

    • @IAmTimCorey
      @IAmTimCorey  Před 4 lety +1

      There is, including a whole course.

    • @pingu2k4
      @pingu2k4 Před 4 lety

      @@IAmTimCorey Hey :) Thats awesome. Is there an ETA on the course? Looking at doing stuff right away, and have done some of the basic stuff already out there and have a handle on sections of stuff already, but looking to get more advanced, and also get more rounded with my knowledge. :)

  • @jiribatulka49
    @jiribatulka49 Před 4 lety +63

    "MinLength for the FirstName is 5" - a guy named Tim

  • @RalfsBalodis
    @RalfsBalodis Před 3 lety

    Very nice video. Thank you!

  • @RalfsBalodis
    @RalfsBalodis Před 3 lety +8

    0:00 - Intro
    1:22 - Creating new Blazor Server App
    4:46 - Balzor Server App overview
    11:08 - Counter page explained
    18:15 - Counter Page Network traffic
    25:00 - Fetch Data page explained
    32:24 - Data Access
    32:55 - Data Access: Standard Class Library with Dapper
    46:59 - Data Access: Blazor App configuration and database connection string
    49:02 - Data Access: New Razor Component page and display Data from database
    59:30 - Data Access: Save data with data validation
    1:03:52 - Data Access: Blazor UI from
    1:08:25 - Data Access: Save data from form
    1:13:36 - Summary and concluding remarks

  • @kamilmikua5794
    @kamilmikua5794 Před rokem

    As always keep going!

  • @rikudouensof
    @rikudouensof Před 3 lety

    Thanks for the class

  • @markopavic7318
    @markopavic7318 Před 4 lety

    You can separate code from page. Clean and clear tutorial tnx!

  • @kopilkaiser8991
    @kopilkaiser8991 Před 11 měsíci

    A great tutorial to get started with Blazor. I am new to this and I got interested into learning Blazor rather than other web stack, the reason being, I have experience of C# and I want to build on top of my foundation rather than building a new foundation somewhere else.

  • @Darbokst
    @Darbokst Před 2 lety

    great video, I got little lost with the nitty gritty details toward the end, but it covered so much goodness. I watched the whole thing in one go. I can't even do that with TVs that I like.

  • @bassemshehata3701
    @bassemshehata3701 Před rokem

    Great tutorial, Thanks a lot

  • @mjaguilar923
    @mjaguilar923 Před 4 lety

    Thank you so much Tim.

  • @reyvelarde5432
    @reyvelarde5432 Před 3 lety

    Great tutorial. Thank you so much.

    • @IAmTimCorey
      @IAmTimCorey  Před 3 lety

      You are most welcome. Thanks for watching.

  • @embaayyub7289
    @embaayyub7289 Před 4 lety +2

    Thanks, Tim, for amazing tutorials. I am waiting for a video about blazor globalization(localization) in client and server-side included data annotations. I hope you will do it.

    • @IAmTimCorey
      @IAmTimCorey  Před 4 lety +2

      I will add it to the list. Thanks for the suggestion.

    • @DLVideo94
      @DLVideo94 Před 4 lety

      @@IAmTimCorey I will love that too. A video about blazor globalization(localization)

  • @SuperDre74
    @SuperDre74 Před 3 lety

    As always another fine tutorial you can actually follow manually, (ok, maybe for the actual database itself not, but that was easily created through VS).

  • @setiadisudrajat5031
    @setiadisudrajat5031 Před 3 lety

    thanks, great upload !

  • @luisorostizaga7597
    @luisorostizaga7597 Před 4 lety

    Thank you Nice tutorial :D

  • @nelfstor
    @nelfstor Před rokem

    Thank you for brilliant tutorials. English is not my native, but i understand you explanations like it is)

  • @sunilanthony17
    @sunilanthony17 Před 4 lety +5

    This is an awesome introduction to Blazor. Thank you for the pet talk at the end. This is really a game-changer for me because I'm better at C# than JavaScript. My pet peeve
    is that MS name the extension .razor. Why not blazor to avoid confusion?

    • @IAmTimCorey
      @IAmTimCorey  Před 4 lety +2

      I think they reused items but I agree.

  • @edwin2769
    @edwin2769 Před 3 lety

    Thank you for this tutorial.. i learned a lot from you.

  • @mikey803
    @mikey803 Před 4 lety

    Great video. Helped to introduce me more to Blazor and to help reinforce some SQL Server info from your fundamentals course. Could not get the source code downloaded. Was able to, on the fly, create a quick sql db for use with it. Did it without too much "peaking". lol

    • @IAmTimCorey
      @IAmTimCorey  Před 4 lety +1

      If you can't get the source code, you can always email me at tim@iamtimcorey.com and I can send it to you.

    • @mikey803
      @mikey803 Před 4 lety

      I'm sorry. The source code worked fine. it was the sql server part that was not working right. Sql server is a new way of thinking for me. The last database manager I used was dBase 3, which sadly shows my age. lol

  • @deniszubanov9823
    @deniszubanov9823 Před 4 lety

    Thank you Tim for the very, very helpful video. There is no such good tutorial in the Russian c# youtube community for me.

  • @Tanner_o
    @Tanner_o Před 4 lety

    Thank you very much, and thank you for the last words.