mbdavid / LiteDB

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

Can having another variable ending in 'ID' effect things? #2283

Closed michaelsakharov closed 1 year ago

michaelsakharov commented 1 year ago

I have a fairly large class, with the first property being 'int Id' with the 'BsonId' attribute, so it should in theory take priority as the ID, then right after that I have string property called 'EntryID' however this property doesn't appear to save/load correctly and is usually null. There is yet another string property after that called 'EntryName' which seems to work fine.

michaelsakharov commented 1 year ago

Ah, figured it out, has nothing todo with LiteDB, Sorry.