var trnlist = from tr in db.DebtorTransactions
join wr in db.Warranties
on tr.ProductID equals Convert.ToInt32(wr.PkfWarranty) into wrtd
from wr1 in db.Warranties
join sr in db.SalesReps
on wr1.fldSrId equals sr.pkfSrID into wrsr
from wr2 in db.Warranties
join ag in db.Agentsenter code here
on wr2.fldAgentID equals ag.pkfAgentID into wrag
select wrtd;
tr.ProductID is a int and wr.PKfWarranty is String
var rustul= convert.toint32(tr.ProductID) dose't sutable for me
is there any build in function of Linq to entity to do this?
tr.ProductID是一個int和wr.PKfWarranty是字符串 VAR rustul = convert.toint32(tr.ProductID)dose't sutable我 有沒有建立在功能Linq要實體做到這一點? 預先感謝
'變種整數= strings.Select(X => int.Parse(X));' – Khan
沒有先生..its不工作 –
錯誤是「爲int.parse最好重載方法匹配(字符串)有一些無效的參數「 –