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
Version
LiteDb 5.0.21 on .net 8 (linked in by standard 2.0 dll)
Describe the bug
When we start our app with liteDB 5.0.21, it will access a row of liteDBs. In 50% of the INITIAL access to that DB it will fail to initialize the return for some fields of a dictionary with the right values but set them to null. Any access after the first one will return the right values, always.
The data is simple:
classFileData{publicstringPath{get;set;}publicstringKey{get;set;}}class _fileDataDic
{publicstringid{get;set;}publicDictionary<string,FileData> dic {get;set;}}// The DB is created with Dictionary<string,FileData>entry=new(){"foo.jpg",new(){Path='ABC',Key="123"}};varcol= db.GetCollection<_fileDataDic>("Example");
col.Insert("FOO", new _fileDataDic { id = "FOO", dic = entry});
// We access by this:varcol= db.GetCollection<_fileDataDic>("Example");_fileDataDicfileDataDic= col.FindById("FOO");
In 50% now the returned fileDataDic will look like this
Version
LiteDb 5.0.21 on .net 8 (linked in by standard 2.0 dll)
Describe the bug
When we start our app with liteDB 5.0.21, it will access a row of liteDBs. In 50% of the INITIAL access to that DB it will fail to initialize the return for some fields of a dictionary with the right values but set them to null. Any access after the first one will return the right values, always.
The data is simple:
In 50% now the returned fileDataDic will look like this
Path & Key are NOT null in the DB. A second request will return the right values for Path & Key
The LiteDB will be called by a Microsoft.AspNetCore.Mvc Controller.
The text was updated successfully, but these errors were encountered: