protected override bool ExecuteDataProcessingProc() { int success; using (var db = new WoolworthsDBDataContext()) { db.CommandTimeout = CommandTimeoutInSeconds.Value; success = db.p_ImportProductLocationDaily(MasterLogId); //for now } if (success == 0) return false; else if (success == 1) return true; else throw new ArgumentOutOfRangeException("success", "Stored Proc p_ImportProductLocationDaily 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_ImportProductLocationDaily(MasterLogId); //for now } if (success == 0) { return(false); } else if (success == 1) { return(true); } else { throw new ArgumentOutOfRangeException("success", "Stored Proc p_ImportProductLocationDaily returned int value that that was not equal to 1 or 0"); } }