0
var assignresult = (from i in _Objcontext.DistributorProductMappings
where i.ProductId == items.ProductID && i.DistributorId == items.DId && i.UpdatedDate == items.UpdatedDate
select (int.Parse(i.Purchases) + int.Parse(i.StockTakeback)).ToString()
).FirstOrDefault() ?? "0";
此語句失敗不工作convertionsLINQ到實體無法識別方法方法
什麼錯誤失敗? –
{「Message」:「LINQ to Entities無法識別方法Int32 Parse(System.String)方法 ,並且此方法無法轉換爲存儲表達式。」} –