1
9
2
3
3
1
4
3
.NET 11 Preview 5 is now available! (devblogs.microsoft.com)
5
3
6
9
7
7
8
2
Deprecating dotMemory Unit (blog.jetbrains.com)
9
6
10
7
11
11
Process API Improvements in .NET 11 (devblogs.microsoft.com)
12
8
13
2

I wrote a blog post about me getting in to FSharp web application development, but am having issues deciding how I want the data access to look. I'm very much open to feedback!

14
2
submitted 2 months ago by nemeski@mander.xyz to c/dotnet@programming.dev
15
2
submitted 2 months ago by nemeski@mander.xyz to c/dotnet@programming.dev
16
2
What's new for .NET in Ubuntu 26.04 (devblogs.microsoft.com)
submitted 2 months ago by nemeski@mander.xyz to c/dotnet@programming.dev
17
6
submitted 2 months ago by nemeski@mander.xyz to c/dotnet@programming.dev
18
3
submitted 2 months ago by nemeski@mander.xyz to c/dotnet@programming.dev
19
3
submitted 2 months ago* (last edited 2 months ago) by KiwiDevelop@programming.dev to c/dotnet@programming.dev

I kept running into the same issue when writing integration tests for ASP.NET Core APIs — there’s no clean way to assert how many SQL queries an endpoint executes.

Most of the time it ends up being:

  • custom DbCommandInterceptor
  • wiring it into WebApplicationFactory
  • manually counting queries

So I wrapped that into a small library.

Example:

await using var guard = factory.TrackQueries<Program, AppDbContext>();

var client = guard.CreateClient();

await client.GetAsync("/api/orders");

guard.AssertCount(exact: 1);

That’s it — no manual interceptor or log parsing.

What it does:

  • Counts SELECT/INSERT/UPDATE/DELETE queries triggered by HTTP requests
  • Starts counting from CreateClient() (so startup/seeding queries are ignored)
  • Works with any EF Core provider
  • Designed for WebApplicationFactory-based integration tests

GitHub: https://github.com/KiwiDevelopment/KiwiQuery

NuGet: dotnet add package KiwiQuery.EFCore

MIT, very small codebase. Would love feedback — especially if you’re already solving this in a different way.

20
2
submitted 2 months ago by nemeski@mander.xyz to c/dotnet@programming.dev
21
5
submitted 2 months ago by nemeski@mander.xyz to c/dotnet@programming.dev
22
2
submitted 3 months ago by nemeski@mander.xyz to c/dotnet@programming.dev
23
3
24
4
submitted 3 months ago by nemeski@mander.xyz to c/dotnet@programming.dev
25
2
view more: next ›

.NET

1863 readers
1 users here now

Getting started

Useful resources

IDEs and code editors

Tools

Rules

Related communities

Wikipedia pages

founded 3 years ago
MODERATORS