log 2019/10/18

Prevent modifying ContentLength after starting response #14056 (#15089) · aspnet/AspNetCore@4dd9bfc · GitHub

以下の issue が発端。 Content-Length の操作では例外になっていたのに置き換えでは例外にならなかった。 Middleware that rewrites content seemingly can't change ResponseStream ContentLength · Issue #14056 · aspnet/AspNetCore · GitHub

GitHub - RickStrahl/Westwind.AspnetCore.LiveReload: ASP.NET Core Live Reload Middleware that monitors file changes in your project and automatically reloads the browser's active page
上記の middleware がなんか良さそうに見える。 Live Reload って標準ではされないんだなぁ。


Add a flag to prevent config, json files from being copied to the bui… · aspnet/AspNetCore-Tooling@8a99b91 · GitHub

ExcludeConfigFilesFromBuildOutput の利用に関しての PR だが、MSBuild の結果に対しての xUnit のテストを書くための拡張が面白い。


Query: Skip updating NewExpression without ctor · aspnet/EntityFrameworkCore@2a39b06 · GitHub

Query 構築のために式ツリーを visitor で走査している部分だと思うが、 NewExpression という constructor 呼び出しを伴う expression(要は new ) において .NET Framework において Update がうまくできないため、引数 0 の場合はスキップしてしまおうというもの。

System.Linq.Expressions は深く見たことないけど、ちょっとおもしろそう。


Query: Translate GroupBy-Aggregate when using result selector (#18415) · aspnet/EntityFrameworkCore@0fd7de0 · GitHub

以下の issue の対応の一部
Query: group by using result selector doesnt translate correctly when grouping key is used in result selector · Issue #18267 · aspnet/EntityFrameworkCore · GitHub

修正の詳細はあまり理解できないが、テストで使われている QueryTestBase の内容が面白い。

https://github.com/aspnet/EntityFrameworkCore/blob/60aba6fc018d8c83d65a32577d5b1feec1f8866c/test/EFCore.Specification.Tests/Query/QueryTestBase.cs

Maybe とか追加してあって、ほーとなった。