Source Generator in .NET

Implement Builders easily with Source Generator in .NET

I created a YouTube video on Source Generator in which I showcased one possible implementation. However, I feel that I didn’t fully highlight its capabilities. In this blog post, I aim to demonstrate how to use the Source Generator to automatically create builders for a given class. Check the YouTube video and the source code here For our Builder Generator implementation, let’s start from scratch. Create a new class library project, name it SourceGenerator, add the necessary NuGet package references, and add a new class called AutoBuilderGenerator as shown in the code snippet below ...

February 28, 2024 · 4 min · Mohamad Dbouk
Azure CLI Icon

Update Azure SQL Server Firewall rules using Azure CLI

If you’re used to working with Azure SQL Server without a private endpoint or virtual network, you might be used to adding your public IP to the Azure SQL Server Firewall rules each time your public IP changes. Luckily, there’s an easy option: use the Azure CLI to update the network firewall rules with your new public IP. Get the Public IP using PowerShell Getting your public IP address is quick and easy with PowerShell. Just use the following command: ...

November 28, 2022 · 3 min · Mohamad Dbouk