Hi everyone what I am trying to do is something similar to using lambda query inside WCF operation parameter. as I know there is no way to achieve this es lambda expressions are run-time and they can not be used in this way, but I think of some solutions for this. My first idea is to use some search criteria class so that I can populate this class and then use it on server-side to build some lambda expression. my thoughts on simple implementation for this class is something like
public class PersonSearchCriteria
{
public string FirstName {get; set;}
public string LastName {get; set;}
public int IdCardNumber {get; set;}
Expression<Func<TSource, bool>> predicate
}
this is some pseudo code so I want to be able to create instance of this class and based on this properties values' filter my database in my databasecontext (which in this case is EntityFramework 4.0 with selft tracking entities.
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.