There are many ways to perform queries with XPO.
You can do this:
For each of the above, you can optionally query within the transaction by passing in the
Or we can use LINQ via
1 2 3
All of these methods are powerful, but the power comes at a cost. The syntax is neither elegant nor particularly clear and as a result it is not very practical to maintain or test.
A Fluent Interface for XPO
How about if we could do the following?
1 2 3 4
Or, for a more elaborate example:
1 2 3 4 5 6 7 8 9 10 11 12
In the next post I’ll show how to put the fluent interface code together.