Adding a visual query builder to an existing ASP.NET Core app
· 9 min read

Sooner or later someone asks for it: "let users build their own reports". The app it is meant for already exists. It has a DbContext with dozens of entities, cookie or Identity sign-in, a layout, and rules about who may see which rows. This article adds a visual query builder to an app like that: one data model built from the context you already have, one API endpoint and one page. Most of it is about the part that matters in an existing app, which is keeping users inside the permissions the app already enforces.
