I wonder if there is any way to validate a Expression towards EF core without using a real database.
We could of course do the validation in a integration tests, but It would be very helpful if we could ensure that the expression is valid already in a unit test.
To me, a novice, it feels like pretty basic functionality. Despite this I have yet to find any solution when looking around on the internet.
Any insight would be appreciated.
Edit: To summarize, I do not need to validate the sql ( does it find table X etc ) rather I only want to know that EF can generate a query string from the expression tree.