Zaid-Ajaj / LiteDB.FSharp

Advanced F# Support for LiteDB, an embedded NoSql database for .NET with type-safe query expression through F# quotations
MIT License
181 stars 20 forks source link

RegisterType is broken #17

Closed humhei closed 6 years ago

humhei commented 6 years ago

See https://github.com/mbdavid/LiteDB/wiki/Object-Mapping

    mapper.RegisterType<AutoSetHangtagTemplate>(
        serialize =
            fun value ->
                Bson.serializeField(value)
            ,
        deserialize =
            fun bsonValue ->
                let v = Bson.deserializeField bsonValue
                {v with RetrieveFrom = RetrieveFrom.FromDB}
    )

I cannot catch the code in function any more Should we fix it?