Regira Engineering Blog

Notes on .NET, TypeScript & Vue

Patterns, gotchas and small wins from fifteen-odd years of .NET and web work — the Regira packages and modules, entity pipelines, editorial front-ends and everything between.

21 articles
Data & EF Core / Architecture

When Two People Edit the Same Record

Series · Writing in Regira Entities

When two people save the same record, the second save is refused instead of quietly erasing the first, whichever database the application runs on. The second user reloads and re-applies their change.

9 min read
.NET / Architecture / Tooling

Reviewing an App You Didn't Write

Series · Building apps with an AI agent

When an agent builds the app, a framework that owns the plumbing shrinks the review to the part that is your business. What to read first: which questions the API answers, what a save may change, and which rules run every time.

6 min read
Data & EF Core / Architecture

Omitted Is Not Empty

Series · Writing in Regira Entities

Saving a record from a small form should never wipe the items attached to it, while the full edit screen can still remove them all. How an API tells an omitted list from an empty one, and what a form sends for a row the user removed.

7 min read
.NET / Architecture / Tooling

Stop the Agent from Guessing

Series · Building apps with an AI agent

A coding agent built working apps on a framework it had never seen, without inventing a single method. The reason is documentation that lives with the code, is served one piece at a time, and tells the agent what to do next and how to check it worked.

8 min read
.NET / Vue / Architecture

What Happens When a Simple App Brief Gets Complicated?

Series · Building apps with an AI agent

Before an agent builds a bigger app, sort each request into what the framework provides, what the agent must assemble, and what is missing. A plan for a shopping-list app with sign-in, sharing, photos and offline use, and what changes when an app keeps growing after its first run.

11 min read
.NET / Vue / Architecture / Tooling

From Six Lines to a Working Full-Stack App

Series · Building apps with an AI agent

Hand a coding agent a six-line brief and get a running .NET and Vue app, with sample data and a clickable UI, in about half an hour. Step by step, with no license and no account.

Pinned 8 min read
.NET / Architecture

Page Views Without a Tracking Script

Know how many people read your site and where they come from, without a third-party script, a cookie or a consent banner. What the blog you are reading records, what it cannot, and how crawlers are kept out of the count.

10 min read
Data & EF Core / Architecture

An Update That Blanks a Field the Form Never Showed

Series · Writing in Regira Entities

Keep an update from blanking a field the form never showed, such as a reference code, a close date or a total. What causes it, why every line involved passes review, and the one-line declaration that prevents it.

5 min read
Data & EF Core / Architecture

Rules That Hold on Every Save

Series · Writing in Regira Entities

One place for each rule a save must obey, so it holds whether a user, an import or a nightly job did the saving. Required fields, timestamps and a code that never changes stop being scattered across controllers.

9 min read
Data & EF Core / Architecture

How to Query Hierarchies at Any Depth with EF Core

Series · Hierarchical data

Answer 'everything under X' for category trees, org charts and folders, at any depth. Three approaches, from one that works on any database to one that scales to millions of rows, and how to pick.

Pinned 17 min read
.NET / Architecture

The Realm at Any Date

Series · People, organisations and alliances

Answer who reported to whom on any past date from the data you already store, with no history tables and no migrations. One dated relationship table and a single filter do it; Westeros supplies three centuries of test data.

17 min read
TypeScript / Vue / Architecture

Edit Forms That Survive Reality

Series · Entities front-end

Edit forms where Cancel always works, a save shows what the server stored, a refused delete says so, and a deleted record can be brought back. Four decisions, in Vue.

9 min read