Litedb: [BUG] Query.Descending / Query.Ascending

Created on 13 Feb 2020  路  2Comments  路  Source: mbdavid/LiteDB

Version
Which LiteDB version/OS/.NET framework version are you using. (REQUIRED)
litedb.5.0.0-rc / 7 x32 / 4.5.2

Describe the bug
col.Find(Query.All(Query.Ascending), limit:=Limit)
col.Find(Query.All(Query.Descending), limit:=Limit)
both commands gives same results (Ascending)

Code to Reproduce
vb.net dim db = New LiteDatabase(Application.StartupPath + "\Settings\DB.db") Dim col = Ldb.GetCollection(Of TBCls)("Metadata") Return col.Find(Query.All(Query.Descending), limit:=20).ToList()

bug fixed

All 2 comments

Hi @jackkoolage, thanks! I miss the _id parameter when not passed. Fixed and will be avaiable in nuget this next week

thanks
im in love with that db .. keep going

Was this page helpful?
0 / 5 - 0 ratings