我应该尝试这段代码但它无法正常工作。请在此代码上提供解决方案
var patientList = (from b in GBill.GetList()
join p in GPatient.GetList()
on b.PatientId equals p.patientid
select new {
patientid = p.patientid,
patientName = p.patientName,
address = p.address,
age = p.age,
BillId = b.BillId,
GrandTotal = b.GrandTotal,
salutation= p.salutation =="Mr."?"Male":"FeMale",
VisitNo = b.VisitNo ==Convert.ToInt32( b.VisitNo >1 ? "Old" : "New")
}).ToList();
在访问号码
时显示错误