LINQ - Joins in a dynamic query
问题 Because of some business decisions I need to change a bit of what I was doing. Yay me. :) Currently, I have: public IOrderedQueryable<ProductDetail> GetProductList(string productGroupName, string productTypeName, Dictionary<string,List<string>> filterDictionary) { string whereClause = "ProductGroupName='" + productGroupName + "' AND ProductTypeName='" + productTypeName + "'"; string comma = ""; foreach (KeyValuePair<string, List<string>> myKVP in filterDictionary) { comma = ""; if (myKVP