title: LINQ to Entities does not recognize the method 'System.Object Parse(System.Type, System.String)'
body: <p>I am getting this error, i am trying to resolve it long but unable to fix it.
  LINQ to Entities does not recognize the method 'System.Object Parse(System.Type, System.String)' method, and this method cannot be translated into a store expression.</p>
  
  <pre><code> public static List&lt;itmCustomization&gt; GetAllProductCustomziation(string catID)
              {
                  var arrcatID = catID.Split('_');
                  int PId = int.Parse(arrcatID[0].ToString());
                  int CatID = int.Parse(arrcatID[1].ToString());
                  EposWebOrderEntities db = new EposWebOrderEntities();
                  List&lt;itmCustomization&gt; lstCust = new List&lt;itmCustomization&gt;();
                  lstCust.AddRange((from xx in db.vw_AllCustomization
                                    where xx.CatID == CatID &amp;&amp; xx.ProductID == PID
                                    select new itmCustomization()
                                    {
                                        itmName = xx.Description,
                                        catId = (int)xx.CatID,
                                        proId = (int)xx.ProductID,
                                        custType = (customizationType)Enum.Parse(typeof(customizationType), xx.CustType)
                                    }).ToList&lt;itmCustomization&gt;());
                  return lstCust;
  
              }
  </code></pre>