Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Query.Descending / Query.Ascending #1473

Closed
jackkoolage opened this issue Feb 13, 2020 · 2 comments
Closed

[BUG] Query.Descending / Query.Ascending #1473

jackkoolage opened this issue Feb 13, 2020 · 2 comments

Comments

@jackkoolage
Copy link

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

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() 
@mbdavid
Copy link
Owner

mbdavid commented Feb 15, 2020

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

@jackkoolage
Copy link
Author

thanks
im in love with that db .. keep going

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants