Closed govi2010 closed 5 years ago
Hello @govi2010.
This is not valid: var firstPage = await booksStore.Query("select * from c").WithPagination(1, 10).OrderBy(x => x.Name).ToPagedListAsync();
You cannot have a LINQ OrderBy
with SQL. It should be var firstPage = await booksStore.Query("select * from c order by c.Name").WithPagination(1, 10).ToPagedListAsync();
instead.
@Elfocrash Yes I just did that. But thanks for replying.
Can I close this?
Hello team , Please change in this file.
Cosmonaut-develop\samples\Cosmonaut.Console\Program.cs
Change Following line:
var firstPage = await booksStore.Query().WithPagination(1, 10).OrderBy(x => x.Name).ToPagedListAsync();
Tovar firstPage = await booksStore.Query("select * from c").WithPagination(1, 10).OrderBy(x => x.Name).ToPagedListAsync();
It Gives Error