iluvadev / PocketBaseClient

C# client to interact with a particular PocketBase application: an ORM mapped to your PocketBase server. [This project is in active development. The things described below could change]
MIT License
39 stars 8 forks source link

Enhance Filter options #4

Closed iluvadev closed 1 year ago

iluvadev commented 1 year ago

In PocketBaseClient version 0.3.0, the filtering options were

Now, with PocketBaseClient version 0.4.0:

iluvadev commented 1 year ago

Added in PocketBaseClient v.0.4.0 a Sort system to sort Filtered data:

var myTodos = myTodosCollection.Filter(todo => todo.Title.StartsWith("my todo"))
                               .SortBy(todo => todo.Created.Desc().AndThenBy(todo.Updated))
foreach(var myTodo in myTodos)
{
   ...
}
iluvadev commented 1 year ago

Issue solved using code generated with pbcodegen v0.5.0