Logo Barret Codes
  • Home
  • About
  • Engage With Me
  • Recent Posts
  • Silly Little Apps
  • More
    Podcasts
  • Posts
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Posts
  • Community
  • Conferences
  • Development
  • Life
  • Podcasts
  • Soft Skills
  • Videos
  • Series
  • Multi-Tenant .NET
couple with moving boxes
Multi-Tenant .NET, Part 4: Moving Day

Part 4 of 3. Surprise! It’s a bonus post for the series. What happens when you need to move to a new approach?

  • dotnet
  • ef-core
  • sql-server
  • multi-tenancy
  • architecture
Thursday, August 27, 2026 | 22 minutes Read
A bunch of containers stacked in a pile
Your PC Is a Build Agent: Self-Hosted GitHub Actions in Docker Desktop

Running a self-hosted GitHub Actions runner as a Docker Desktop container on your local machine is easy. We’ll look at the Dockerfile, the entrypoint, the compose file, and then a few things that bit me when I moved this blog’s CI onto one.

  • github-actions
  • docker
  • ci-cd
  • hugo
  • devops
Tuesday, August 25, 2026 | 14 minutes Read
network hub
Multi-Tenant .NET, Part 3: Separate Buildings (Database per Tenant)

Part 3 of 3. Giving every tenant its own database - the strongest isolation there is. It deletes even more code than Part 2 (including the model cache key), and replaces it with a connection-string swap, a catalog database, and the joy of migrating N databases on every deploy.

  • dotnet
  • ef-core
  • sql-server
  • multi-tenancy
  • architecture
Thursday, August 20, 2026 | 7 minutes Read
House for rent sign
Multi-Tenant .NET: Shared Database With Schema Separation

Part 2 of 3. Moving each tenant into its own SQL Server schema — which lets us delete the query filter, the TenantId column, and the SaveChanges stamp from Part 1, in exchange for exactly one new thing: a schema-aware model cache key.

  • dotnet
  • ef-core
  • sql-server
  • multi-tenancy
  • architecture
Thursday, July 30, 2026 | 7 minutes Read
a group of photos on a table as someone sorts through them
Photo Organizer - A Handy Little App

I needed a simple app to organizer years of digital photos into a coherent organizational structure. So I put Claude to work to create what I needed.

  • dotnet
  • utilities
  • console-app
Thursday, July 23, 2026 | 4 minutes Read
A view of apartments
Multi-Tenant .NET: Shared Database With Partitions

Part 1 of 3. Building a shared-database multi-tenant app in .NET with EF Core global query filters, then using SQL Server table partitioning so the database physically keeps each tenant’s data in its own drawer.

  • dotnet
  • ef-core
  • sql-server
  • multi-tenancy
  • architecture
Friday, July 17, 2026 | 13 minutes Read
Back view of a bouncer at a bar. Hero image. Validation in FastEndpoints
Validation in FastEndpoints: Pipelines, Pitfalls, and Patterns

Before you reach the meat of your code, before you reach the business rules, before you get to the domain logic, it all starts with the request.

  • fast-endpoints
  • dotnet
  • validation
Tuesday, June 30, 2026 | 13 minutes Read
Hero image - an empty bench in a desolate emptiness
The Case of the Empty IIS Deployment

Octopus Deploy reported a successful deployment. I browse to the website, and… nothing. A blank page. No errors in any of the obvious places.

  • iis
  • octopus deploy
Wednesday, June 17, 2026 | 4 minutes Read
Title card of image with d20 in background
Roll for Architecture: What D&D Taught Me About Software Design

Turns out, the skills for D&D overlap quite a bit with software design

  • architecture
  • dnd
Sunday, May 31, 2026 | 7 minutes Read
Title card of image with camera lens in background
Zoomable Image - Creating a Zoom Effect

Creating a zoom in effect for images in a blog post

  • css
  • hugo
Wednesday, May 13, 2026 | 4 minutes Read
Testing in .NET with xUnit + NSubstitute + Shouldly
Testing in .NET with xUnit + NSubstitute + Shouldly

There’s a better stack, a better way to approach testing – and it’s been sitting in the .NET ecosystem the whole time.

  • testing
  • dotnet
  • xunit
  • nsubstitute
  • shouldly
Wednesday, April 29, 2026 | 23 minutes Read
Train Station Signage
Give .NET Its Props - Central Package Management

You update a package in one project, but then you forget that you’re also using that package in another project. .NET has the solution for your…. solution: central package management.

  • nuget
  • package management
  • dotnet
Thursday, April 23, 2026 | 9 minutes Read
  • ««
  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • »
  • »»
Navigation
  • About
  • Engage With Me
  • Recent Posts
  • Silly Little Apps
  • Podcasts
  • Posts
Contact me:
  • barretblake@live.com
  • barretb
  • Barret

Toha Theme Logo Toha
© Copyright Barret Blake.
Powered by Hugo Logo