Closed glennstephens closed 8 years ago
@glennstephens, thanks for the feedback!
For customization scenarios, you should subclass BaseTableDataStore<T>
with your type, from which you can customize (as all methods are virtual). At registration time, instead of client.RegisterTable<TodoItem>
, you will use client.RegisterTable<TodoItem, TodoItemDataStore>
, which allows you to use custom data stores rather than our defaults. 👍
We should update the README to reflect this.
Closing this out, if you have any issues / additional feedback, feel free to re-open the issue. 👍
It would be beneficial when the data is loaded to be able to restrict what is loaded. It is quite likely that someone would want to restrict as it may be part of a one-to-many, many-to-many relationship or just filtering based on some device identifier.
Doing something like changing
var _items = await table.GetItemsAsync();
to a virtual method such as
would allow users to have the flexibility of customising what they bring down for the table in more complex situations.