Dzoukr / Dapper.FSharp

Lightweight F# extension for StackOverflow Dapper with support for MSSQL, MySQL, PostgreSQL, and SQLite
MIT License
365 stars 35 forks source link

Make README code samples valid (Add requirement for `[<CLIMutable>]` attribute to docs) #67

Closed greggyb closed 1 year ago

greggyb commented 1 year ago

It seems based on guides and posts elsewhere that F# record types must be annotated with [<CLIMutable>] to interoperate with Dapper queries. In my own experience, following the code samples in the README leads to exceptions that are not readily resolvable without some significant further digging.

It would be helpful for the samples in the README to be valid and working code.

Dzoukr commented 1 year ago

Hi, [CLIMutable] is not required for this library - see the examples in Tests folder.