mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Correct use of FetchChainBuilder?
#243
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @markst on GitHub (Nov 27, 2018).
I wish to build the fetch clauses as follows:
Can I confirm this is the correct use of the chain builder?
I don't wish to build using the dot syntax as certain queries are optional.
@markst commented on GitHub (Nov 27, 2018):
Here's another example:
@JohnEstropia commented on GitHub (Dec 5, 2018):
I don't see anything wrong with how you're doing it. Just to add to your arsenal, you can also just store the
Where<T>andOrderBy<T>clauses separately:In your second example, though, I'm not sure why you are returning
[FetchClause]and notFetchChainBuilder<Booking>. If you really need just the array of clauses you can use my code above and just say@markst commented on GitHub (Dec 6, 2018):
Thanks John!