Generating LinqToEntities Where statement depending on the user selection
问题 I have user-interface where user can select grid column (like age) and operator (lesser than, equals or greater than) for that column. Grid data is then filtered according to the selection. I have a following classes that are deserialized from the JSON that is coming from the client. /// <summary> /// Filter for reducing grid results /// </summary> public class Filter { /// <summary> /// Name of the column /// </summary> public string name; public string value; public int @operator { private