Open Jodsderechte opened 1 year ago
There is no code here committing anything to the database. An simple example employing the using() { } is on the homepage of the project [How to use LiteDB] (https://github.com/mbdavid/LiteDB#how-to-use-litedb)
unles si'm completly blind that looks pretty much exactly like the exmple 🤔
var db = new LiteDatabase()
var col = db.GetCollection<Class>()
col.EnsureIndex(x => x.Somevalue, true);
col.Insert(Object)
Although i have to admit i didn't copy over the addGeneralSetting() part from my main. But i'm doing that
I've been using liteDB to store some values. However i tried setting up a 2. db to save some different values and those ones do not persist between application restarts. Embeds does persist. General settings do not. I have no idea why this happens or where the difference is. During the session i can save and read the values without any problems but after restarting values are lost.