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

Deserialize (DataTime option) throw exception #9

Closed humhei closed 6 years ago

humhei commented 6 years ago

image

Zaid-Ajaj commented 6 years ago

I will take a look, for now as a workaround you can try using a custom option type with DateTime:

type Maybe<'t> = 
  | Nothing
  | Just of 't 

type Document = {
   OptionalDate : Maybe<DateTime>
}

Can you see if that works for you?

humhei commented 6 years ago

Thanks! image @Zaid-Ajaj
If you are busy with others Feel free to assign it to me (As i opened this issue)

Zaid-Ajaj commented 6 years ago

Thanks @humhei I got it fixed, published with version 2.4.0, it should available soon from nuget :smile: