关于[Simplify your ASP.NET Core API models with C# 9 records]的摘要:
Out of all the new capabilities C# 9 brings, records are my favorite. With positional syntax, they are immutable by default, which makes working with data classes a snap. I love the possibility of maintaining mutable state in C# where appropriate, like for business logic, and maintaining immutability (and data equality!) with records. And did you know that with ASP.NET Core 5, model binding and validation supports record types?
原文地址: https://daveabrock.com/2020/11/18/simplify-api-models-with-records