Exemplo n.º 1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                db.Dispose();
                result = null;
                db     = null;
            }

            base.Dispose(disposing);
        }
Exemplo n.º 2
0
 public PrepareRating GetPrepareRating()
 {
     result = new PrepareRating
     {
         ListAnswer        = db.Answer.Include(a => a.ListAnswerDetail).AsEnumerable(),
         ListJobPosition   = db.JobPosition.AsEnumerable(),
         ListQuestionType  = db.QuestionType.Include(a => a.ListQuestion).AsEnumerable(),
         ListSalaryLevel   = db.SalaryLevel.AsEnumerable(),
         ListWorkingStatus = db.WorkingStatus.AsEnumerable(),
         ListWorkingTime   = db.WorkingTime.AsEnumerable()
     };
     return(result);
 }