question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ValueTuple not supported

See original GitHub issue

A ValueTuple (see C# 7.2) object will not be saved to database correctly.

How to Reproduce

1) Define an object like this

``` var verticeObj = new {vertices = new List<(double x, double y, double z)>() { (1,2,3), (2,3,3), (3,4,5) }}; ```

2) Save it to LiteDB using db.SomeCollection.Insert(verticeObj)

3) Retrive db.SomeCollection, and you will get

``` {"vertices": [{}, {}, {}]} ```

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mbdavidcommented, Feb 12, 2020

Not yet. But I will add in my 5.1 roadmap to analyze this implementation if is possible to do.

0reactions
frankli0324commented, Feb 13, 2020

thanks. great library!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Predefined type 'System.ValueTuple´2´ is not defined or ...
We resolved our problem by adding manually ValueTuple into .csproj file inside Web project. Share.
Read more >
Fixing System Value Tuple Error
ValueTuple ' is not defined or imported”. As soon as you start programming tuples in C# 7.0, you are likely to encounter the...
Read more >
System ValueTuple"2" is not defined or imported
Have performed all the required steps to import System.ValueTuple into both VS 17 and 19 but still get error CS8179 Predefined type “System....
Read more >
Compil error CS8179 using a "tuple" after updating Visual ...
But now I get compile errors using tuples: The error shown: "Error CS8179 Predefined type 'System.ValueTuple`3' is not defined or imported"
Read more >
ValueTuple is not Supported in Aspnet Core 3.1 with ...
ValueTuples are currently not supported by System.Text.Json since they require field support and System.Text.Json only supports public ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found