2

I understand that there is a problem with saving value types. This means that logging structs might be a problem with MongoDB.

What is the best way to save a struct into a MongoDB then?

Joezer
  • 625
  • 1
  • 9
  • 20
  • 1
    Two remarks: *saving* is easy - it will work by default. Reading, however, is not. You'd either need to write a custom deserializer, or use a generic struct deserializer which is provided in the dupe. This problem still exists with 2.0-beta2 driver. The Jira ticket is at https://jira.mongodb.org/browse/CSHARP-94 – mnemosyn Feb 15 '15 at 13:55

0 Answers0