ExpressionToSql: Allow using an inherited property when using a lambda

Hi, this is my first contribution so if I'm doing anything wrong please let me know.
I has an issue where I had a OneToMany mapping of a subType and I couldn't use a lambda to specify a condition on an inherited property. Since the fix was so simple I decided to fix it and send it in.