Select theme:
Radzen Blazor Studio generates service classes for database access. Your data is exposed as a set of methods that retrieve or manipulate data. For
example to get the records from the Orders
table you use the GetOrders
method. In Blazor server applications this method accepts an argument of type
Radzen.Query
which allows to page, sort, filter the data. In Blazor WASM application the GetOrders
method has separate arguments that map to OData parameters
for filtering, sorting and paging ($filter
, $orderby
, $top
, $skip
).
To filter the data follow these steps:
OnInitializedAsync
method. In WASM applications
it is usually in the method which handles the LoadData
event of a RadzenDataGrid instance.To sort the data follow the same steps. Just add the properties you want to sort by and specify the sort direction.
The Query Builder allows you to "expand" composite properties (related objects or colletions). Expanding means to eagerly load related data.
In Blazor server applications this is equivalent to using the
Include
Entity Framework method (which does SQL JOIN
under the hood). In Blazor WASM applications expanding is literally using the $expand
OData operation.
In Query Builder simply check the required properties. Radzen Blazor Studio will only list the properties that can be expanded (objects and collections).
In Blazor WASM applications you can also select what properties to return from the OData service which Radzen Blazor Studio has generated for your database. This is equivalent
to the $select
odata operator. If you don't specify it all properties will be returned.
In Query Builder check the properties you want to be returned from the service.
Radzen is free to use. You can also test the premium features for 15 days.
Download NowSelect theme: