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
  • Tags
  • 2025
  • 2026
  • Advent-of-Code-2021
  • Advent-of-Code-2022
  • Adventures-in-Net
  • Ai
  • AI Builder
  • Ai Code
  • Ai-Art
  • Aicode
  • Alexa
  • API
  • Application-Insights
  • Approval-Flows
  • April-Dunham
  • Architecture
  • Ardalis
  • Asp-Net-Core
  • Aspire
  • Axug
  • Azure
  • Azure AI
  • Azure Back to School
  • Azure Data Factory
  • Azure-App-Service
  • Azure-Devops
  • Azure-Functions
  • Balance
  • Big-Data
  • Bing-Maps
  • Bitly
  • Blazor
  • Blog
  • Blogging
  • BlueSky
  • Burnout
  • C# Advent
  • C-Advent
  • Calendar
  • Canvas-App
  • Career
  • Change
  • Charity
  • Chatgpt
  • Cincydeliver
  • Civility
  • Class-Libraries
  • Claude
  • Cleveland C#
  • Code Reviews
  • Code-With-Ania-Kubow
  • CodeMash
  • Codementor
  • Cognitive-Services
  • Collections
  • Communication
  • Community
  • Conferences
  • Congitive Service
  • Connectors
  • Content
  • Conversion
  • Copilot
  • Crm
  • Csharp
  • Css
  • Culture
  • Custom-Connector
  • Data-Types
  • Database
  • Datetime
  • Davinci Resolve
  • Delay
  • Deployment
  • Deployment-Slots
  • Desktop
  • Development
  • Devops
  • Dnd
  • Dotnet
  • Dotnetaspire
  • Dotnetrocks
  • Dynamics
  • Ef-Core
  • ELT
  • Employment
  • Encodian
  • Entity Framework
  • Entity Framework Core
  • Entra Id
  • Entraid
  • Equality
  • Error-Handling
  • Estimates
  • Ethics
  • ETL
  • Excel
  • Experience
  • Expressions
  • Extension-Methods
  • Extensions
  • Facebook
  • Facial-Recognition
  • Failure
  • Fast-Endpoints
  • Festive Tech
  • Festive-Tech-Calendar
  • Fired
  • Flow
  • Flowfam
  • Fluentmigrator
  • Forms
  • Function
  • Function Friday
  • Functions
  • Gatekeeping
  • Gc20
  • Github
  • Github Copilot
  • Githubcopilot
  • Githubspeckit
  • Giving
  • Gmail
  • Goals
  • Google Calendar
  • Googlecalendar
  • Guidance-Counselor-2-0
  • Gulp
  • Hangfire
  • Hard-Drive
  • Hashtags
  • Hate
  • Hiring
  • HTTP
  • Hugo
  • Hybrid-Connector
  • Icymi
  • Ifttt
  • Iis
  • Image-Recognition
  • Images
  • Immutability
  • Imposter-Syndrome
  • Inclusivity
  • Instagram
  • Interviewing
  • Javascript-Friends
  • Jetbrains Datagrip
  • Jira
  • Job-Search
  • Json
  • Languages
  • Learning
  • Libraries
  • Life
  • Linkedin
  • Logging
  • Logic Apps
  • Logicapps
  • Love
  • Low-Code
  • Machine-Learning
  • Mastodon
  • Mentoring
  • Microsoft MVP
  • Minimal-Apis
  • Multi-Tenancy
  • Nimblepros
  • Nodejs
  • Nosql
  • Nsubstitute
  • Nuget
  • Nz365guy
  • Object-Recognition
  • Ocr
  • Octopus Deploy
  • OneDrive
  • Openai
  • Opentelemetry
  • Organizational-Skills
  • Otel
  • Outlook
  • Ownership
  • Ozcode
  • Package Management
  • Pc
  • Podcasts
  • Pos
  • Power-Apps
  • Power-Automate
  • Power-Automate-Desktop
  • Powerautomate
  • Powerautomatedesktop
  • Powershell
  • Privacy
  • Productivity
  • Racism
  • Razor
  • Recognition
  • Resharper
  • Responsibility
  • Retail
  • Rpa
  • Rss
  • Rss-Feed
  • Safe Habits
  • Sass
  • Scheduled-Tasks
  • Scheduling
  • SciFiDevCon
  • Security
  • Security-Questions
  • Sentiment-Analysis
  • Service-Fabric
  • Sexism
  • Shorts
  • Shouldly
  • Slides
  • Smart Cherry
  • Smart-Home
  • Soft-Skills
  • Specdrivendevelopment
  • Speckit
  • Sql
  • Sql-Server
  • Ssl
  • Stackexchange
  • Stackoverflow
  • Star Trek
  • Startrek
  • Startups
  • Stirtrek
  • Streamlabs Desktop
  • Summitna
  • Summitna2025
  • Surveillance
  • Task-Runner
  • Task-Runner-Explorer
  • Taylor-Desseyn
  • Teams
  • Tech
  • Tech Sharmitt
  • Templates
  • Testing
  • Text-Analytics
  • The-6-Figure-Developer
  • Time-Off
  • ToDo
  • Transition
  • Trello
  • Triggers
  • Troubleshooting
  • Try-Catch
  • Twitch
  • Twitter
  • Typescript
  • Unplug
  • Uri
  • User Groups
  • Validation
  • Video
  • Videos
  • Vision-Api
  • Vision-Service
  • Visual-Studio
  • Visual Studio Code
  • Visualstudio
  • Visualstudio2026
  • Vsts
  • Web-Assembly
  • Website
  • Windows-10
  • Word
  • Workflow
  • Xml
  • Xpath
  • Xunit
  • YearInReview
  • Youtube
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
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
Code samples of FastEndpoints and Minimal APIs side by side
FastEndpoints vs ASP.NET Minimal APIs in 2026

MVC controllers are legacy and no longer the go-to technology for handling your endpoints. Minimal APIs are the mainstream, but FastEndpoints has developed a strong following

  • fast-endpoints
  • minimal-apis
  • dotnet
Thursday, April 2, 2026 | 10 minutes Read
Mistake and Delete
EF Core Global Query Filters - The Soft Delete Pattern You Should Be Using

It’s one of the eternal debates of software development data management: How do you manage records that get deleted?

  • ef-core
  • dotnet
Wednesday, March 25, 2026 | 9 minutes Read
An image of a blueprint of an application architecture with various blocks of code
I Made an API

Some things in Power Automate work great. Some of them can be better done by a dedicated programming language like .NET. So, I made an API for myself

  • githubspeckit
  • dotnet
  • API
  • power-automate
Wednesday, March 11, 2026 | 10 minutes Read
A sign saying time for change
The Value of Immutability in .NET

Immutability - the state or quality of being unchangeable, unalterable, or unable to be modified over time.

  • dotnet
  • immutability
Friday, March 6, 2026 | 9 minutes Read
a calendar showing Monday
Getting Started with .NET Scheduling in Hangfire

Scheduling tasks in .NET is a lot easier these days. While scheduling libraries have been around a long time, the options available today are better than ever. We’re going to take a look at one of the available libraries: Hangfire

  • dotnet
  • scheduling
  • hangfire
Thursday, February 12, 2026 | 7 minutes Read
Blurry picture of computer code on a screen with glasses on the desk in front of it
Importing JSON Files Into A C# Project

As part of this fun side project I’ve been working on, I’ve been playing around with data that comes in the form of JSON data files. What I want to do is use these data files to seed the data in my database. So here’s a quick one for anyone looking to import JSON data into a running C# application. I showed in a previous post how I set up my Aspire project to have a separate data migration project to handle the DbContext, schema migrations, and seeding for my Postgres database. While some of the basic seeding is hardcoded into C# classes, most of the data will be coming from various JSON files filled with the data. Let’s walk through how I set up the loading of those files into my database.

  • dotnet
  • json
  • csharp
Monday, June 30, 2025 | 6 minutes Read
picture of code on a computer screen
What's New in .NET Aspire 9.1

Version 9.1 of .NET Aspire released a couple weeks ago and it has brought a whole host of new features to the framework. Aspire just keeps getting better and better. Here’s a few of my favorite highlights from the release.

  • aspire
  • dotnet
Wednesday, March 12, 2025 | 5 minutes Read
picture of code on a screen
Try-Catch-Throw in C#

We had an interesting discussion in a team meeting today and a good point was brought up about try/catch blocks and what happens when you throw an error in the catch section that perhaps a lot of developers new to C# might not be aware of.

  • try-catch
  • csharp
  • dotnet
Wednesday, January 22, 2025 | 4 minutes Read
  • ««
  • «
  • 1
  • 2
  • 3
  • 4
  • »
  • »»
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