Faithlife / FaithlifeData

Helpers for querying ADO.NET-compatible databases.
https://faithlife.github.io/FaithlifeData/
MIT License
6 stars 4 forks source link

Support converting IDataRecord to a C# 9 record. #19

Closed ddunkin closed 3 years ago

ddunkin commented 3 years ago

This type of record still isn't supported, though I don't know how likely it would be to find this in real code:

public record FunRecord(int TheFun)
{
    public int DoubleTheFun => 2 * TheFun;
}

A simple workaround would be to use a method instead of a computed property.