0
comment
comment
on 1/26/2020 8:42 AM
Problems
How do you create an instance of a given readonly class?
How do you get a new instance but with given fields with different values?
Writing readonly record classes 2007
Around 2007 I wrestled with writing immutable classes in c#. One of the key painpoints was that the constructor parameters for a class representing a database row for a specific table ended up with around 68 parameters.
Note that we already had code generation of SQL Reader row deserialization based on SQL information tab[...]