public LogDAL() { LogHeader model = new LogHeader(); Line _line = new Line(); Station _station = new Station(); Phase _phase = new Phase(); TestSeq _testseq = new TestSeq(); ProjectSeq _projectseq = new ProjectSeq(); TestHeader _testheader = new TestHeader(); Collection <TestStep> _teststep = new Collection <TestStep>(); Collection <TestResult> _testresult = new Collection <TestResult>(); startConn(); }
public bool insert(ref LogHeader _model) { bool failed = true; model = _model; using (conexao) { if (insertLine()) { return(failed); } if (insertPhase()) { return(failed); } if (insertStation()) { return(failed); } if (insertTestSeq()) { return(failed); } if (insertProjectSeq()) { return(failed); } if (insertTestHeader()) { return(failed); } _teststepIDAL = new TestStepDAL(conexao); _teststep = _teststepIDAL.findPerTestSeqId(_testseq.ID); failed = false; } return(failed); }