Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 21, 2012 10:38 PM by GmGregori
Apr 21, 2012 10:01 PM|LINK
How do i solve :
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference ?
var sql3 = "SELECT MedicalId From Medical WHERE CDSID=@0";
var medical = db.QuerySingle(sql3, myCDSID);
var myMedicalId = medical.MedicalId; //error appears to be here
Apr 21, 2012 10:38 PM|LINK
It looks like "medical" is empty: no one record matches the query criteria.