public VslaDdActivation FindActivationByImei(string imei) { try { var vslaDdActivation = (from a in SessionProxy.Query <VslaDdActivation>() where a.PhoneImei01 == imei || a.PhoneImei02 == imei select a).FirstOrDefault(); //A Refresh of the ORM session would make this procedue call a bit slow but it is necessary for now SessionProxy.Refresh(vslaDdActivation); return(vslaDdActivation); } catch { return(null); } }