mbdavid / LiteDB

LiteDB - A .NET NoSQL Document Store in a single data file
http://www.litedb.org
MIT License
8.36k stars 1.22k forks source link

Fix issue: Id is null when anon. type is de/-serialized #2433

Closed JKamsker closed 4 months ago

JKamsker commented 4 months ago

Anonymous types get their _id zeroed out when deserializing.

mbdavid commented 4 months ago

Thanks @JKamsker

JKamsker commented 4 months ago

Thanks for the Switft merge 🚀

Just one thing: Was this even the correct approach? Is this the way it's done in the other places? I didnt find it, that's why i am asking.

I am:

But it could also be:

Just not completely sure what the convention here is 😅