-
Notifications
You must be signed in to change notification settings - Fork 934
NH-3987 - Re-implement NhQueryable options #601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NH-3987 - Re-implement NhQueryable options #601
Conversation
4c931c7
to
022ea44
Compare
The |
022ea44
to
cef826f
Compare
Updated the reference documentation too. And fixed the |
Rebased for resolving conflicts x2. |
I was thinking. Do we need to have the separate method of options? Why not include it into |
Well I have tried at first something similar. But there is a roadblock: each Linq call creates a new Then, only allowing setting the options when obtaining the queryable from the session may be limiting: I frequently build different queries from the same queryable base on which I have already applied some Linq transformations, and those resulting different queries may not have the same options requirements. |
18af8fb
to
0214d99
Compare
0214d99
to
83fa6b4
Compare
83fa6b4
to
e8dd2ab
Compare
2df0165
to
13453e1
Compare
f875b52
to
4f41513
Compare
4f41513
to
3f6dbb6
Compare
Thanks Alexander, |
NH-3987 Re-implement NhQueryable options.
At least that way, adding more options should be way less intrusive.
Instead of having one extension method per option, we now would have a single
SetOptions
extension method, taking a delegate for setting options with aIQueryableOptions
object.I could have directly exposed the
IQuery
instead but well, it would have exposed undesirable features in a Linq context I think.