Expected behaviour when including multiple Where() filters #5
Unanswered
TheCakeMonster
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Honestly I think without adding something more, you'd end up with a "Tom-A-to" vs "Tom-AH-to" scenario where it seems correct for only half the people. What comes to mind is SQL where clauses with AND, OR etc. Here is a link to my goto ORM framework where he (Frans Bouma) added those keywords to his framework to allow mimicing TSQL. He defaults to "AND" if the clause is not explicitly specified. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@swegele As my first user, can I ask you a hypothetical question? It's about what happens under more advanced filtering scenarios, with multiple Where() tests. It popped into my mind after looking at your lambda in #3
Given the following code in an assembly containing the 3 types FakeBusinessFactory, MainBusinessFactory and FakeRepository, what would be your expectation?
How many classes would you expect to be registered as a result of this being run at startup?
Beta Was this translation helpful? Give feedback.
All reactions