Couchbase Lite .NET - converting Dictionary to F# record


I’m just getting started on a Couchbase Lite project in .NET. The examples in the online documentation use a C# Dictionary to read and write documents. But I’m planning to use F# instead, with the Record data type with named fields. So I’m wondering what is the best way to convert between a Dictionary and F# records?

Another post (“Using POCOs with Xamarin and Couchbase Lite”) uses C# to do an explicit conversion between class properties and document fields. I could do something similar in F#, but I’m wondering if there’s an easier way?


Thanks for the question.

@martinesmann is our developer advocate who specialises in .NET. Martin, are you able to help here?