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
180 stars 22 forks source link

Serialization is broken on Xamarin.Android #33

Closed vshapenko closed 5 years ago

vshapenko commented 5 years ago

According to https://github.com/Zaid-Ajaj/LiteDB.FSharp/blob/master/LiteDB.FSharp/FSharpBsonMapper.fs#L32 https://github.com/Zaid-Ajaj/LiteDB.FSharp/blob/master/LiteDB.FSharp/Bson.fs#L160 Type.GUID is used to determine if types are equal, but this does not work in Xamarin.Android. Looks like these properties are always same. Looks like Type.FullName is more safe in case of determining type equality