Hey Reader, Let's dive into some Blazor pitfalls this week that you should definitely watch out for. 🚨 Beware of Looping Errors!Ever used a loop alongside a lambda expression in your markup? Granted, this isn't exclusive to Blazor but a C# quirk to be mindful of. If you're using incremented variables within these lambda expressions, the results might surprise you. The following video sheds some light on this. 🛠️ Using Forms with Blazor SSROne of the highlights of Blazor Static Server-Side Rendering (SSR) is that you can utilize the EditForm component even without Blazor Server or WebAssembly. However, you might find yourself puzzled after form submission, wondering why updating or creating an entity isn't working as expected. This video explains the reasons behind it. If you have questions, feel free to reply to this email. I'm here for more tutorials and to answer any questions. Thanks so much to our community and my Patrons for your support. You are the foundation of this newsletter and my channel. Stay safe, have fun coding, and remember - the best part is creating something new! 💻 Take care, Patrick |
Become a .NET & Blazor expert with weekly tutorials featuring best practices and the latest improvements, right in your inbox.
Hey Reader, Ever tried to choose the perfect weapon for each creature in a dark, spooky forest? Silver bullets for werewolves, garlic for vampires, chainsaws for zombies... but what if you had to pick your weapon before entering the forest? Just like that forest adventure, dependency injection in C# can leave you stuck with the wrong tool when you need it most - unless you know about the Factory Pattern! Today, I’m breaking down how the Factory Pattern solves real-world dependency injection...
Hey Reader, In today’s tutorial, I’ll walk you through how to use Dapper, a high-performance micro ORM (object-relational mapper) with a .NET 8 Web API and SQL Server. We’ll cover everything you need to know to build a simple CRUD (Create, Read, Update, Delete) application. Watch on YouTube 📺 Check out the full tutorial on YouTube to see everything in action 👇 What We’ll Be Doing We’re going to work with a simple video game database to start. You’ll learn how to: Read all games or a specific...
Hey Reader, Today, I show you how combining Blazor and JavaScript can give you the best of both worlds. Let’s dive into how you can easily mix the power of these two technologies in your projects! Watch on YouTube 📺 Check out the full tutorial on YouTube to see everything in action 👇 A Simple Example: Console Logging in Blazor Imagine you’re working on a Blazor Server application, and you want to log the current count (of the Counter page) to the console. Your first thought might be to use...