I would like to use the lambda expression in my Repository as a generic parameter. If I use a firm like this one:
MyEntity entity:null
void Run(Expression<Func<MyEntity ,bool>> expression)
I can call it in this way:
Run(x => x.FirstName = "Whatever")
What I would like is the ability to do something like this:
Run(x => x.FirstName = "Whatever" and x.LastName = "whatelse")
or
Run(x => x.FirstName = "Whatever" && x.LastName = "whatelse")
And read the content of x.FirstName and x.LastName inside the procedure Run. Is there a way to accomplish that?