You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this library, I'm enjoying using it at the moment. We're looking at using MongoDB as our main database system, while also using another embedded solution (maybe LiteDB) for the desktop version of our software.
Do you think it's possible for LiteDB to use the same ObjectId as MongoDB, so that we can re-use one C# class for both storage types?
Thanks,
Mark.
The text was updated successfully, but these errors were encountered:
Hey Mark, thanks for using LiteDB. It's really nice to know.... 😄
LiteDB.ObjectId is almost the same class than MongoDB.Bson.ObjectId. To use MongoDB.Bson.ObjectId as you Id, just write a small custom serialize/deserialize functions to do this:
Hi Mauricio,
Thanks for this library, I'm enjoying using it at the moment. We're looking at using MongoDB as our main database system, while also using another embedded solution (maybe LiteDB) for the desktop version of our software.
Do you think it's possible for LiteDB to use the same ObjectId as MongoDB, so that we can re-use one C# class for both storage types?
Thanks,
Mark.
The text was updated successfully, but these errors were encountered: