profile

Patrick God

Become a .NET & Blazor expert with weekly tutorials featuring best practices and the latest improvements, right in your inbox.

video preview
Featured Post

💻 A Beginner's Guide To Dapper with a .NET Web API

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...

video preview

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...

video preview

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...

video preview

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...

video preview

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...

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...

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...

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...

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...

Hey Reader, Today, we're going to dive into CQRS (Command and Query Responsibility Segregation) and the Mediator pattern using a .NET Web API. We'll keep things simple by not using clean architecture for this example. If you're interested in CQRS and the Mediator pattern, this tutorial is for you. You can either watch the video tutorial on YouTube or keep scrolling if you prefer reading. Let's get started! YouTube Video Tutorial Check out the video below for the full tutorial. What is CQRS?...