C# 9 records as strongly-typed ids - Part 4: Entity Framework Core integration

added by DotNetKicks
12/23/2020 12:09:14 AM

1191 Views

So far in this series, I showed how to use C# 9 records to declare strongly-typed ids as easily as this: public record ProductId(int Value) : StronglyTypedId (Value); I also explained how to make them work correctly with ASP.NET Core model binding and JSON serialization.


0 comments