Yeah. This is the only way.
Click on google 'write LINQ provider'. There are many textbooks.
Start by understanding what the expression is , how it differs from lambdas, and how to work with them.
I find this book very useful (at least the beginning).
source
share