Claudio Bernasconi
Claudio Bernasconi
  • 103
  • 1 214 320
Bogus: Generating Intelligent Test Data (.NET/No AI)
Bogus is a fake data generator for C# that makes generating fake data for tests or prototypes more fun and efficient. Learn how to quickly implement realistic test data for your prototypes or automated tests.
00:00 Introduction
00:13 Bogus Demo
01:29 How to Configure Bogus
04:14 Using Localization with Bogus
04:47 Seeding: Make the Test Data Deterministic
05:47 Bogus Installation (NuGet)
06:02 Conclusion
🔥 C#/.NET Bootcamp: The Fundamentals & more (Code FRIENDS10 for 10% OFF)*
claudiobernasconi.ch/dotnet-course
📌 .NET Developer Roadmap
claudiobernasconi.ch/learn-dotnet
📌 Bogus (GitHub):
github.com/bchavez/Bogus
📌 CZcams Playlists:
The FREE Blazor Crash Course: czcams.com/video/89Klc6WHElw/video.html
Blazor: czcams.com/play/PLwISgxnkpZGITT6pELfCeQ6qK0G3ujldZ.html
✅ SUBSCRIBE FOR MORE VIDEOS
Subscribe: 🔔 claudiobernasconi.ch/Subscribe
🚀 CONNECT & SUPPORT
Twitter: CHBernasconiC
Blog: claudiobernasconi.ch
Newsletter: claudiobernasconi.ch/newsletter
* Affiliate Link: I earn a small commission at no additional cost
zhlédnutí: 367

Video

How To Use Browser Storage in Blazor Server (.NET 5+)
zhlédnutí 1,1KPřed 2 měsíci
The browser's session storage allows us to store data relevant to the current user and tab. The local storage allows us to store data relevant to a user but across tabs and sessions. In this video, I will show you how to access the local and session storage in Blazor Server using C# instead of JavaScript. 00:00 Introduction 00:32 ASP.NET Core Protected Browser Storage 00:59 WebAssembly 01:21 Ac...
What's Coming With .NET 9? - 3 New LINQ Methods!
zhlédnutí 1,1KPřed 3 měsíci
It's been only a few months since we got C# 12 and .NET 8. However, the .NET development team has already published insights into their vision of .NET 9, and we already have a few new features in .NET 9 Preview 1 that we can explore today. 00:00 Introduction 00:23 The .NET 9 Vision 01:28 New Visual Studio Version? 01:57 3 New LINQ Methods 03:16 .NET MAUI 03:39 Other New Features 04:24 New Relea...
How to Disable a Button after Clicking in Blazor
zhlédnutí 965Před 3 měsíci
Today, I want to provide a solution to a common problem we face when implementing Blazor web applications. When a user presses a button, the button stays active by default. There are two main issues here. A simple solution is to disable the button while we process the button click behind the scenes. Let's find out how to achieve it. 00:00 Introduction 00:18 The Issues without Disabling the Butt...
Params Collections - The First NEW C# 13 Feature
zhlédnutí 812Před 3 měsíci
It's only been a few months since we got C# 12 with the release of .NET 8 in November 2023. However, today, I'm already showing you the first C# 13 proposal Params Collections, which has been implemented as a preview version. 00:00 Introduction 00:17 Collection Expressions in C# 12 00:47 Params Collections in C# 13 01:51 What are the Advantages? 03:23 How Much Impact Does That Have? 04:18 Concl...
How to Share Blazor Components between Applications
zhlédnutí 1,4KPřed 4 měsíci
In today's video, I want to answer a simple but interesting question that I often get in the comments section of my Blazor videos. How do you share components between multiple projects? 00:00 Introduction 00:15 Creating a Razor Class Library and a Shared Blazor Component 01:05 Using a Shared Blazor Component in a Blazor Web App 02:17 Challenges When using Tailwind CSS (or other CSS frameworks) ...
How to Use Tailwind CSS in Blazor | Quick Start
zhlédnutí 3,1KPřed 4 měsíci
In this video, we dive into the world of Tailwind CSS and replace Blazor's default CSS framework, Bootstrap, with this popular CSS styling framework. 00:00 Introduction & What we build 00:55 Create the Blazor Web App 01:27 Download the Tailwind CLI 02:53 Create and Configure the Tailwind CSS Config File 03:39 Create the Source Tailwind CSS File 04:03 Load the Generated Tailwind CSS 04:24 Use Ta...
How to Use Blazor Components in ASP.NET Core MVC?
zhlédnutí 3,7KPřed 4 měsíci
In this video, I show how to use Blazor components in an existing ASP.NET Core MVC application. 00:00 Introduction 00:27 The ASP.NET Core MVC Application 00:52 Adding a Blazor Component 01:43 Integrating a Blazor Component in an MVC Application 02:38 Configuring an MVC Application for Blazor Server Interactivity 03:39 Adding the _Import.razor File 04:13 The Motivation 04:58 Sharing Components u...
9 UI Frameworks for .NET Desktop App Development [2024]
zhlédnutí 19KPřed 5 měsíci
The landscape of different user interface frameworks for .NET desktop development offers many choices. What's great for the ecosystem and experienced developers can be challenging for novices and people getting into .NET from other technologies. I will provide the most fundamental information about the 9 most common user interface frameworks for .NET desktop app development to help you decide w...
Q&A: How Much Does A Channel With 1 Million Views Make?!
zhlédnutí 387Před 5 měsíci
Today is exactly five years since my first CZcams video upload. It was an Introduction to Dependency Injection in C# video uploaded on December 14th, 2018. Meanwhile, the channel has 94 videos, including this one. Almost 15 thousand people subscribed to the channel. Maybe we will make it before the end of the year. We also have almost 1M views, which we will definitely make within the next few ...
Blazor Localization in .NET 8 & Blazor Server
zhlédnutí 5KPřed 5 měsíci
We will learn how to localize a Blazor application in .NET 8. The same code is also applicable to .NET 7 Blazor Server. We use regular .NET NuGet packages and create regular resource files. For Blazor WebAssembly, you need to tweak the code, it won't work as shown in this video. 00:00 What We Build in This Video 00:45 Creating the Blazor Web App in Visual Studio 01:39 Install & Setup the Requir...
What's NEW in Blazor in .NET 8?!
zhlédnutí 4KPřed 5 měsíci
NET 8 is finally here, and I'm excited to share what's new in Blazor with .NET 8. It is not an exaggeration to say that Blazor has fundamentally changed! There is a new project template with a new file structure, new rendering modes, stream rendering, enhanced navigation, and new authentication components. 00:00 Introduction 00:45 The new Blazor Project Templates 02:02 The Blazor Web App Projec...
.NET 8 | What is Native AOT in .NET?
zhlédnutí 9KPřed 6 měsíci
Today, we dive deep into the world of AOT in .NET 8 and learn everything you need to know about it. We're not just scratching the surface. Let's find out how it works, how to use it, and when it doesn't make sense. 00:00 Introduction 00:30 What is Native AOT? 03:10 Creating a Native AOT API Project 07:56 Native AOT Advantages 09:19 Native AOT Disadvantages 11:12 When to Use Native AOT? 11:40 Na...
.NET 8 | Everything you NEED to KNOW!
zhlédnutí 23KPřed 6 měsíci
.NET 8 is finally here! It's been a long-anticipated release by the whole .NET community. I'm mostly happy for all the .NET developers limited to using long-term support versions. With .NET 8 and C# 12, we get many new improvements to the platform we all use and love! Now, let's take a step back and see what's new. 00:00 .NET 8 is HERE! 00:44 Frozen Collections in .NET 8 01:22 .NET 8 Performanc...
Uploading Files with Blazor (Server & WebAssembly)
zhlédnutí 4,6KPřed 6 měsíci
Uploading Files with Blazor (Server & WebAssembly)
Getting Ready for .NET Conf 2023!
zhlédnutí 498Před 6 měsíci
Getting Ready for .NET Conf 2023!
NEW Single Blazor Web App Project Template
zhlédnutí 3,2KPřed 7 měsíci
NEW Single Blazor Web App Project Template
TimeProvider - New Date & Time Abstractions in .NET 8!
zhlédnutí 1,4KPřed 7 měsíci
TimeProvider - New Date & Time Abstractions in .NET 8!
Dependency Injection in .NET 8: Keyed Service Registrations 🚀
zhlédnutí 1,9KPřed 7 měsíci
Dependency Injection in .NET 8: Keyed Service Registrations 🚀
Primary Constructors in C# 12 - WORTH IT?
zhlédnutí 1,7KPřed 7 měsíci
Primary Constructors in C# 12 - WORTH IT?
The BEST .NET Ever! - What's Coming with .NET 8?
zhlédnutí 7KPřed 8 měsíci
The BEST .NET Ever! - What's Coming with .NET 8?
This NEW feature entirely CHANGES Blazor in .NET 8!
zhlédnutí 3,5KPřed 8 měsíci
This NEW feature entirely CHANGES Blazor in .NET 8!
How to Authenticate a Blazor Server App with Azure AD
zhlédnutí 9KPřed 8 měsíci
How to Authenticate a Blazor Server App with Azure AD
AUTODECOMPILATION IS HERE! | Visual Studio 2022 Update 17.7
zhlédnutí 2,7KPřed 8 měsíci
AUTODECOMPILATION IS HERE! | Visual Studio 2022 Update 17.7
Blazor Tutorial - Creating a Todo App using Blazor Server
zhlédnutí 8KPřed 9 měsíci
Blazor Tutorial - Creating a Todo App using Blazor Server
WHY YOU SHOULD LEARN C# AND .NET - TOP 5 REASONS
zhlédnutí 6KPřed 9 měsíci
WHY YOU SHOULD LEARN C# AND .NET - TOP 5 REASONS
How to use Bicep to Deploy Azure Resources
zhlédnutí 5KPřed 10 měsíci
How to use Bicep to Deploy Azure Resources
How to Program C# in Visual Studio Code [2023]
zhlédnutí 35KPřed 10 měsíci
How to Program C# in Visual Studio Code [2023]
Creating Azure Resources like a Pro using ARM Templates
zhlédnutí 5KPřed 10 měsíci
Creating Azure Resources like a Pro using ARM Templates
What Is Infrastructure as Code?
zhlédnutí 651Před 10 měsíci
What Is Infrastructure as Code?

Komentáře

  • @waynehamberg9248
    @waynehamberg9248 Před dnem

    What about WebUI 3? It's XAML based!

  • @arrrryyy
    @arrrryyy Před dnem

    Dude, can you stop making these facial impressions like you are disgusted?

  • @mostaphasaid7250
    @mostaphasaid7250 Před 2 dny

    Thank you very much. very informative video.😍🤩

  • @badatcomputer
    @badatcomputer Před 6 dny

    I also found using a Try-Finally block is helpful. If(IsAddingToCart) then return, else place the IsAddingToCart=true before the Try, and in the Finally place IsAddingToCart=false. Solved my problems.

  • @rohann8073
    @rohann8073 Před 12 dny

    Thank you for this video

  • @Jel.Awesh.M
    @Jel.Awesh.M Před 14 dny

    Now, the next question, what .NET version should I focus on learning for a job perspective?

    • @ClaudioBernasconi
      @ClaudioBernasconi Před 13 dny

      Always use the latest stable release. At this time, it is .NET 8.

    • @Jel.Awesh.M
      @Jel.Awesh.M Před 13 dny

      @@ClaudioBernasconi Right, that would be for new projects, but if you looking for a new job. What would it be better?

  • @md.shakirhossain
    @md.shakirhossain Před 14 dny

    Thank you so much @ClaudioBernasconi for your nice, easy and helpful video

  • @wiepcorbier
    @wiepcorbier Před 14 dny

    Put it in IIS and it doesn't work anymore. The links don't work, bootstrap is gone. Not good at all.

  • @Pryvyd9
    @Pryvyd9 Před 15 dny

    why is everything xaml now? I had a long break in wpf while working on c++ ImGui project and when I came back it's just a cluttered maze where I can't get anything done. ImGui might require you to build an application in a particular way but once you set it up it's so easy and intuitive.

  • @2005bgva
    @2005bgva Před 16 dny

    Thanks your video was very instructive. I think that for today 2024 for desktop applications the best option is .NET MAUI.

  • @niteshsetin
    @niteshsetin Před 16 dny

    How do i get the access token in blazor server app build with net 8?

  • @niteshsetin
    @niteshsetin Před 16 dny

    How do i get the access token in blazor server app build with net 8?

  • @guimatheus92
    @guimatheus92 Před 16 dny

    Thanks for the video! I am trying to find an information but it's getting hard, how do I know all properties that a resource might have during the resource creation using the template? For example, if I create an ADX resource I can define different properties before creating (database name, availability zones, sku, etc). But how do I know all MUST properties and all optional properties?

  • @jam18m
    @jam18m Před 17 dny

    I have a doubt, I have Visual studio 2019, will I have to reinstall it again? From minute 2 I have my doubts about whether to continue or not!

    • @ClaudioBernasconi
      @ClaudioBernasconi Před 17 dny

      Today, I recommend using the latest C# and Visual Studio version.

  • @brucerosner3547
    @brucerosner3547 Před 17 dny

    The irony is that Winforms will outlive WPF and most of its successors. My own view that making the interpretation of code dependent on external files is an unnecessary and error prone complication. Header files in C and C++ was a bad idea from day one and no language has used this approach since. Similarly defining used interfaces in XML requires close coordination between two completely different approaches. Pure code can be provably correct, that is, all pre and post conditions are satisfied. This is impossible with external XML files.

  • @jaymartinez311
    @jaymartinez311 Před 18 dny

    Love the video but dark mode is your friend 😂. Great video though.

    • @ClaudioBernasconi
      @ClaudioBernasconi Před 18 dny

      Thanks for your feedback. I learned that some people have problems with their eyes when using dark mode. That's why I decided to use light mode in my videos to make them as inclusive as possible. Thanks for your understanding. 🙏

  • @RajK09
    @RajK09 Před 18 dny

    I was looking for same content and your video played automatically. Thank you for the content.

  • @madsmikkelrasmussen240

    What a great overview, THANKS!

  • @tmlyrical4298
    @tmlyrical4298 Před 18 dny

    Which I use Avalonia Or Uno ? Beginner ( not recommend easy - i only focusing in future also to get profit and stable on one )

  • @SrimathiJayaraman
    @SrimathiJayaraman Před 22 dny

    This was really helpful at the right time!

    • @ClaudioBernasconi
      @ClaudioBernasconi Před 22 dny

      Thanks for your feedback. I'm glad the video helped you out!

  • @kevintubbs4648
    @kevintubbs4648 Před 23 dny

    Wow, I've NEVER needed to do so much pausing and replaying before! But I stuck with it, and eventually succeeded! I used VS 2022 and .NET 8.0 on Windows 11. These are all newer than what the OP used, but I was able to figure out the differences. I succeeded at building and distributing a functioning plugin! Now I can start putting my own code in there. I'm not sure, but I'd guess that you could manage to use VB instead of C#. But you're stuck with the JS stuff, I think.

    • @ClaudioBernasconi
      @ClaudioBernasconi Před 23 dny

      Fantastic! I'm sorry, I improved a lot with video creation over the years and, as you already mentioned, I used much older tech at the time. I'm happy you were able to figure it out! Did you also rely on the StreamDeckToolkit or did you use something else? Curious to learn.

    • @kevintubbs4648
      @kevintubbs4648 Před 22 dny

      @@ClaudioBernasconi I used StreamDeckToolkit, following your instructions closely. Thank you for demonstrating how it all goes together, so that I can take the base code and start writing my own actions. My main interest is to develop plug-ins that talk to relay outputs and sensor inputs, for control of various devices attached to the PC through serial ports and interface cards. In the old days I would take a metal panel, drill holes, and install switches and indicator lights. The Stream Deck panels are so inexpensive and so flexible, it is a much slicker way to control things. Thanks again for getting me to the starting line!

  • @dioxino76
    @dioxino76 Před 23 dny

    I prefer not using another tool with my passwords: the less tools are used to manage them, the more secured will be my passwords.

    • @ClaudioBernasconi
      @ClaudioBernasconi Před 23 dny

      Where do you store your passwords? All in your mind? Or do you use the same password for different services?

  • @mattpavey
    @mattpavey Před 24 dny

    Great video. The thing I kept having trouble with was the Resouce.resx file was not generating the designer file, even when it was an embedded resource and even if I tried to use the ResXFileCodeGenerator approach; however, turns out for me it was a matter of opening the Resource.resx file (in editor mode) and then changing the "Access Modifier" from "No code generation" to "Public" (or Internal depending on your needs). Once I did that the rest all worked as expected. Lastly, for what it's worth, I thought the idea to redirect and force a page reload was a good one for my use-case. I suppose others may find that to be unnecessary, but it worked well for me. Thanks for the video!

  • @TheDeathknight23
    @TheDeathknight23 Před 26 dny

    I followed the tutorial exactly as it was presented. I even copied the exact code into my blazor project but it seems .NET8 absolutely hates .NET7 and no matter how many errors I remove, it still won't let me have the app run successfully. It seems we have no choice but to discard this project in .NET8 entirely unless you can release it again on .NET8.

  • @leonardodavid8749
    @leonardodavid8749 Před 26 dny

    Very nice video, Claudio. Thank you!

  • @ClaudioBernasconi
    @ClaudioBernasconi Před 27 dny

    Do you generate test/fake data yourself, or do you use Bogus or something similar? 🤔

  • @ottomaier7127
    @ottomaier7127 Před 27 dny

    Cool! Danke für den Tipp 👍

  • @DhruvGoel-jc1lp
    @DhruvGoel-jc1lp Před 28 dny

    Amazing

  • @shatvani
    @shatvani Před 29 dny

    Hi, thanks for sharing your knowledge. Can you tell me how to create role-based authorization in a Blazor Server application, please?

    • @ClaudioBernasconi
      @ClaudioBernasconi Před 28 dny

      You can configure the roles as part of the [Authorize] attribute. The following article is a great starting point: www.c-sharpcorner.com/article/role-based-authorization-in-blazor/

  • @krccmsitp2884
    @krccmsitp2884 Před měsícem

    4:45 Does Blazor also support regular constructor injection we use in MVC or Controller API?

    • @ClaudioBernasconi
      @ClaudioBernasconi Před 28 dny

      Yes, it's possible with one of the "code-behind" approaches: czcams.com/video/kjWsGlpYGmQ/video.html

    • @krccmsitp2884
      @krccmsitp2884 Před 28 dny

      @@ClaudioBernasconi great, thanks

  • @francoislepron2301
    @francoislepron2301 Před měsícem

    I am interested in Uno or Avalonia because I have to develop applications for embedded devices running a Linux OS (Yocto TorizonOS). Uno seems to work pretty well on an arm64 bits processor with a small touchscreen 7''.

  • @LokiDaFerret
    @LokiDaFerret Před měsícem

    Along with control +KD there's also control +KF which I use a lot which formats selected text

  • @TravelingGonad
    @TravelingGonad Před měsícem

    There must be a better way than reloading the whole Blazor site just to change the language!

  • @ZenOfKursat
    @ZenOfKursat Před měsícem

    after buy 15 udemy and others.... Finally a Real teacher... You know this job.... thanks bruh. plz do more blazor / razor dotnetcore stuffs.

    • @ClaudioBernasconi
      @ClaudioBernasconi Před měsícem

      Thank your for the kind words. I have many videos on the channel and new videos will come in the future. 😉

  • @zeminlu5606
    @zeminlu5606 Před měsícem

    Great video! By the way, why do you never blink?🤔

    • @ClaudioBernasconi
      @ClaudioBernasconi Před měsícem

      I record short segments and put them together in post-production. 🤓 I'm not a great speaker, and English is my third language. I never speak it, except in my videos. It's a lot of effort, and I hope you're still able to enjoy the content and learn something new. 😉

  • @dalmiroe
    @dalmiroe Před měsícem

    Hello, congratulations on the work. Could you tell me how to publish app Blasor Server on Vercel?

    • @ClaudioBernasconi
      @ClaudioBernasconi Před měsícem

      Thanks for your question. I haven't tried it myself, but it seems like .NET is not on their list of supported technologies/runtimes. Blazor Server requires ASP NET Core on the backend. Therefore, I doubt that it is possible to host it on Vercel.

    • @dalmiroe
      @dalmiroe Před měsícem

      @@ClaudioBernasconi Obrigado

    • @dalmiroe
      @dalmiroe Před měsícem

      I don't see anyone talking about deploying a Blazor server where we don't have access to IIS. Thanks

  • @THEArenaVD
    @THEArenaVD Před měsícem

    Hey im trying to pass in a complex Object List in my razor component and when running my application I get Blazor server error usung chrome. Would you habe any idea as to why this is occurring?

  • @Ya_kruutoy
    @Ya_kruutoy Před měsícem

    I searched for information on github for a long time but didn’t find anything. It’s good that you suggested that I need to specify the path

  • @aminbe3079
    @aminbe3079 Před měsícem

    Is there a way to target Windows 7 using the newer versions of .Net (starting from NET6 and up) ?

    • @ClaudioBernasconi
      @ClaudioBernasconi Před měsícem

      I don't know if it runs, but it's certainly not officially supported. Windows 7 support ended after 10 years on January 14th, 2020. Windows 7 was released in 2009 and I'm definitely should it makes not a lot of sense to target such an old operating system today. That said, nothing hold you back from building an app and trying to run it on Windows 7 and seeing what happens. I hope this helps.

  • @SVChannel1016
    @SVChannel1016 Před měsícem

    Neatly explained, very useful, thank you..

  • @gobindkumar9320
    @gobindkumar9320 Před měsícem

    how can we disabled or remove this error message (Could not reconnect to the server. Reload the page to restore functionality.) server app?

    • @ClaudioBernasconi
      @ClaudioBernasconi Před měsícem

      You should prevent this error from happening. When this error shows up, your application stops working and cannot be used anymore. I don't know if you can stop the message from appearing, but I can tell you that it most likely is not what you want to do.

  • @OeHomestead
    @OeHomestead Před měsícem

    I believe VS 2022 can scaffold all of this quite easily now-a-days.

  • @silfrido1768
    @silfrido1768 Před měsícem

    should I update to net 8 for gaming ?

  • @CarlKidwell
    @CarlKidwell Před měsícem

    Nice short tutorial unfortunately .NET 8 with this is completely broken ; any chance at a .NET 8 version of the same content?

    • @ClaudioBernasconi
      @ClaudioBernasconi Před měsícem

      Thanks for your feedback. You can still create Blazor Server applications using the new Blazor Web App project template when you select interactivity type server and use the global option instead of per component. Do you face any particular issues? I'd love to create a new video if there are points I know others struggle with.

  • @waqasjavaid9274
    @waqasjavaid9274 Před měsícem

    how we use it as restful api to use with mobile app?

    • @ClaudioBernasconi
      @ClaudioBernasconi Před měsícem

      For API development, you want to learn about ASP .NET Core WebAPI instead of Blazor.