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...
3 months ago • 2 min read
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...
3 months ago • 2 min read
Today's Sponsor: HackerPulse — The Ultimate Dev Profile Don’t send 69 links to share your work - just share one! Bring together your GitHub, Stack Overflow, and LinkedIn profiles into a single HackerPulse dev profile. Perfect for job applications and networking, HackerPulse gives a complete picture of your skills and projects, all in one place. Create Your Profile Hey Reader, Today, I'm going to walk you through setting up a Blazor project using Clean Architecture. If you've ever wondered how...
4 months ago • 3 min read
Hey Reader, Today, I'd like to show you two powerful tools for managing data in .NET projects: Entity Framework and Dapper. I'm sure you already heard about them. First, let me explain what an ORM is and then walk you through examples of CRUD (Create, Read, Update, Delete) operations using both tools. Watch on YouTube 📺 Check out the full tutorial on YouTube to see everything in action 👇 What is an ORM? An ORM (Object-Relational Mapper) is a tool that helps your application communicate with a...
4 months ago • 3 min read
Hey Reader, Today, I want to show you something important about casting objects in C#. We’ll talk about the difference between casting a single object and a list of objects. What’s the Problem? Imagine you have a game with characters. We have a Character class that implements an ICharacter interface. Here's what that looks like: Single Object Casting We have a method to get a single character by its ID. Here’s how it looks: When we run this method, it works because C# knows that Character...
4 months ago • 1 min read
Hey Reader, Let's talk about an exciting new feature in .NET 9. It is adding static server-side rendering (SSR) pages to a globally interactive Blazor Web App. What Are Render Modes? If you're familiar with Blazor in .NET, you know we have these interactive render modes: Blazor Server: Runs on the server. Blazor WebAssembly: Runs in the browser. Auto Render Mode: Combines both. We also have SSR (Static Server-Side Rendering), which means everything is rendered on the server and sent to the...
4 months ago • 2 min read
Hey Reader, I hope you're doing fantastic! I have an exciting new tutorial to enhance your Blazor skills in .NET 8. Let's get started! How to use Multiple Layouts in Blazor in .NET 8 🔥 In this tutorial, I'll show you how to implement multiple layouts in your Blazor applications using .NET 8. You'll learn how to create and switch between different layouts, making your applications more dynamic and versatile. If you have any questions or need more details, just hit reply to this email. I'm here...
5 months ago • 1 min read
Hey Reader, I hope you're doing well. I'm thrilled to share an exciting new tutorial to supercharge your .NET 9 applications. Let’s dive in! 🚀 .NET 9 brings us the HybridCache - the fastest cache ever? In this tutorial, I'll guide you through the implementation and benefits of the new HybridCache in .NET 9. You’ll see detailed benchmarks comparing its performance with other caching strategies, and learn how to integrate it into your applications for blazing fast data retrieval. If you have...
5 months ago • 1 min read
Hey Reader, I hope you're doing well. I'm excited to share a new tutorial that will help you enhance your Blazor and .NET 8 applications. Let's get into it! 🔐 Authorization using Roles with Blazor & Identity in .NET 8 In this tutorial, I'll walk you through the process of setting up role-based authorization in your Blazor applications using ASP.NET Identity in .NET 8. You'll learn how to create and manage roles and control access to different parts of your application based on these roles. If...
5 months ago • 1 min read