protected override bool ExecuteDataProcessingProc() { int success; using (var db = new WoolworthsDBDataContext()) { db.CommandTimeout = CommandTimeoutInSeconds.Value; success = db.p_ImportRelevantSpecial(MasterLogId); } switch (success) { case 0: return false; case 1: return true; default: throw new ArgumentOutOfRangeException("success", "Stored Proc p_ImportRelevantSpecial returned int value that that was not equal to 1 or 0"); } }
protected override bool ExecuteDataProcessingProc() { int success; using (var db = new WoolworthsDBDataContext()) { db.CommandTimeout = CommandTimeoutInSeconds.Value; success = db.p_ImportRelevantSpecial(MasterLogId); } switch (success) { case 0: return(false); case 1: return(true); default: throw new ArgumentOutOfRangeException("success", "Stored Proc p_ImportRelevantSpecial returned int value that that was not equal to 1 or 0"); } }