public class Test {
public int Value { get; set; }
}
public static class TestExtensions {
public bool BiggerThanPi(this Test test) => test.Value >= 4;
}
Is it possible to make database.Query<Test>().Where(x => x.BiggerThanPi()).ToList() work?
Reason for this is 1) to avoid repeating the test in lots of place, 2) the code compiles no problem but is a runtime error in the expression visitor.
Given the following dummy code...
Is it possible to make
database.Query<Test>().Where(x => x.BiggerThanPi()).ToList()
work?Reason for this is 1) to avoid repeating the test in lots of place, 2) the code compiles no problem but is a runtime error in the expression visitor.