Usage of Parameters

While using RENHelpers, you may need spesific operatons such as ordering, including etc. This section covers how you can send these parameters to apply desired rules.

Assume we have the following database:

Here are the relationships:

  • 1 user should have only 1 side, but there could be multiple user for 1 side (1-*)

  • 1 side should only have 1 test, and 1 test must only belong to 1 side (1-1)

  • 1 test should have multiple test descriptions, while 1 test description must belong to only one test (1-*)

circle-info

All the examples will be shown on async functions of the repository. But please note that all this parameter calls can be applied to the functions' sync versions.

  1. Filter:

To filter a query, you can call filter parameter like this:

  1. Order By:

To order a query, you can call order parameter like this:

  1. Include:

To include navigation properties to a query, you can call include parameter like this:

  1. Read Only:

Too make query readonly, you can call isReadOnly parameter like this:

Last updated