public override void Execute() { SafeReader sr = DB.GetFirst( "GetNonLimitedDataForCreditBureau", CommandSpecies.StoredProcedure, new QueryParameter("RefNumber", this.refNumber) ); if (!sr.IsEmpty) { LastUpdate = sr["Created"]; Score = sr["RiskScore"]; Errors = sr["Errors"]; Log.Debug( "GetNonLimitedDataForCreditBureau {0} results: last update = '{1}', Score = {2}, Errors = '{3}'.", this.refNumber, LastUpdate.MomentStr(), Score, Errors ); } else { Log.Debug( "GetNonLimitedDataForCreditBureau {0} results: no data found.", this.refNumber ); } // if } // Execute