md Ghouse

md Ghouse

  • NA
  • 5
  • 3.2k

please help me how to convert this query into Linq

May 3 2016 6:40 AM
string custype = ConfigurationManager.AppSettings["ProducerType"].ToString();
string query = "SELECT CODE ,DESC_E Description FROM S_MASTER WHERE CMP_CODE='A0' and loc_code='01' and DESC_E like '%" + val + "%' and subs_f='" + custype + "' order by 1";

Answers (2)