Posted on: 1/17/2014 5:21:42 PM | Views : 606

I'm having a problem resolving this issue on this linq to string. I shorten the code to just the show the problem area only.
PRO_PRICE and PRO_STOCK is a Integer.
Converting the PRO_PRICE and PRO_STOCK to string in LINQ but it keeps giving errors. I have search for solutions but still can't solve it.
public ActionResult Detail(int PRO_ID = 0) { var model = new ViewModel(); var queryPro = (from p in db.PRODUCT_INFORMATION where p.PRO_ID == PRO_ID select new PRODUCT_MODEL() { PRO_PRICE = p.PRO_PRICE.toString() // Error here due to it not recognizing .toString(). //Alternative Solution but still does not resolve it due to the system not But it does not recognize the StringConvert method. PRO_PRICE = SqlFunctions.Stri ...

Go to the complete details ...