Andrew Lock

Results 1521 comments of Andrew Lock

## Execution-Time Benchmarks Report :stopwatch: Execution-time results for samples comparing the following branches/commits: - [This PR (4651)](https://github.com/DataDog/dd-trace-dotnet/tree/e79a12069ea24b05d50cbf92415ad42d19fa95ee) - [master](https://github.com/DataDog/dd-trace-dotnet/tree/b1f45e9e8b9b47d786098efac4ec61f42c321801) Execution-time benchmarks measure the whole time it takes to execute a...

## Benchmarks Report :snail: Benchmarks for #4651 compared to [master](https://github.com/DataDog/dd-trace-dotnet/tree/b1f45e9e8b9b47d786098efac4ec61f42c321801): * 3 benchmarks are **slower**, with geometric mean 1.179 * All benchmarks have **the same** allocations The following thresholds were...

## Throughput/Crank Report:zap: Throughput results for AspNetCoreSimpleController comparing the following branches/commits: - [This PR (4651)](https://github.com/DataDog/dd-trace-dotnet/tree/e79a12069ea24b05d50cbf92415ad42d19fa95ee) - [master](https://github.com/DataDog/dd-trace-dotnet/tree/b1f45e9e8b9b47d786098efac4ec61f42c321801) - [benchmarks/2.9.0](https://github.com/DataDog/dd-trace-dotnet/tree/89ae3f4ee7d85b824badda5873166707c9e560b4) - [benchmarks/2.38.0](https://github.com/DataDog/dd-trace-dotnet/tree/cd4ce84cc4171a634435992f2eaff75b5a02f070) Cases where throughput results for the PR are worse...

## Execution-Time Benchmarks Report :stopwatch: Execution-time results for samples comparing the following branches/commits: - [This PR (4952)](https://github.com/DataDog/dd-trace-dotnet/tree/12ebce602d0a01997e98629ed868bfef16ee61f6) - [master](https://github.com/DataDog/dd-trace-dotnet/tree/d5cd1a58a6326acafe587a7df9d8c71d8ff4a1ea) Execution-time benchmarks measure the whole time it takes to execute a...

## Throughput/Crank Report:zap: Throughput results for AspNetCoreSimpleController comparing the following branches/commits: - [This PR (4952)](https://github.com/DataDog/dd-trace-dotnet/tree/12ebce602d0a01997e98629ed868bfef16ee61f6) - [master](https://github.com/DataDog/dd-trace-dotnet/tree/d79120110924ec6c7772d9e7cc6b7bad1669b22f) - [benchmarks/2.9.0](https://github.com/DataDog/dd-trace-dotnet/tree/89ae3f4ee7d85b824badda5873166707c9e560b4) Cases where throughput results for the PR are worse than latest...

## Benchmarks Report :snail: Benchmarks for #4952 compared to [master](https://github.com/DataDog/dd-trace-dotnet/tree/d79120110924ec6c7772d9e7cc6b7bad1669b22f): * 4 benchmarks are **faster**, with geometric mean 1.180 * 3 benchmarks are **slower**, with geometric mean 1.186 * All...

I haven't tried it, but I think you can use the approach in this blog post: https://blog.magnusmontin.net/2020/04/03/custom-data-types-in-asp-net-core-web-apis/ e.g.: ```csharp services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new OpenApiInfo { Title = "My API",...

There isn't _currently_ a way to make this work, it requires a bit of work. That said, I'm working on a fundamental redesign of the library in #117, and I...

Hi @chinwobble, sorry for the delay! You can use a Dapper `TypeHandler` as shown in [this post](https://andrewlock.net/using-strongly-typed-entity-ids-to-avoid-primitive-obsession-part-2/#other-type-converters-for-interfacing-with-the-world-). For EF Core, you can use [the approach from this post](https://andrewlock.net/strongly-typed-ids-in-ef-core-using-strongly-typed-entity-ids-to-avoid-primitive-obsession-part-4/) I haven't...