Ben Sampica
Ben Sampica
About Me
My Library
My Posts
My Podcast
Light
Dark
Automatic
CSharp
A Complete Guide to HTMX + .NET Minimal APIs
Creating a HTMX and .NET Minimal API from scratch and adding necessary features like validation and error handling.
ben-sampica
Nov 13, 2024
33 min read
DotNet
,
CSharp
,
HTMX
How to automatically deploy a passwordless Azure SQL Server
How to create an Azure SQL Server automatically that uses Microsoft Entra authentication, migrates the database using Entity Framework Core, and deploys out the infrastructure automatically with Bicep.
ben-sampica
May 3, 2024
9 min read
Azure
,
IAC
,
CSharp
Keyed Services in .NET 8 And The Factory Pattern
How keyed services can smooth over the factory pattern in dependency injection scenarios.
ben-sampica
Nov 15, 2023
3 min read
DotNet
,
CSharp
Azure AD Authentication Pitfall #1
A common authentication pattern with Azure AD comes to a screeching halt because of backwards compatibility.
ben-sampica
Nov 13, 2022
2 min read
Azure
,
IAC
,
CSharp
Fake It So You Can Make It
I use Bogus to demonstrate how fake factories can be used to easily create useful, random data, whether it be primitive types or complex objects, for use in testing and non-production data seeding.
ben-sampica
Aug 31, 2021
6 min read
CSharp
,
Testing
From MVC to Blazor Server
A step-by-step guide to take your MVC project and spice it up with Blazor components - or even Blazor pages!
ben-sampica
May 16, 2021
3 min read
DotNetCore
,
CSharp
,
Blazor
Blazor Server - EF Core Quirks
By default, EF Core’s DbContext is scoped. This will cause issues with asynchronous components accessing data in Blazor Server.
ben-sampica
Dec 5, 2020
5 min read
DotNetCore
,
Entity Framework Core
,
CSharp
,
Blazor
ADO.NET vs an ORM (Dapper & EF)
A case for an ORM compared to traditional ADO.NET and/or raw SQL scripts.
ben-sampica
Jun 16, 2020
8 min read
CSharp
,
Entity Framework
Fluent Validation
Learning, using, and extending the FluentValidation library.
ben-sampica
May 20, 2020
7 min read
DotNetCore
,
CSharp
A Tale of Legacy Code: I
A blast to the past with MVC5 and poorly maintained code
ben-sampica
Apr 24, 2020
6 min read
DotNet Framework
,
CSharp
»