public void Delete(Expression <Func <SelectRecord, bool> > where)
        {
            SelectRecord entity = _context.SelectRecord.Where(where).FirstOrDefault();

            entity.IsDelete = true;
            _context.Update(entity);
            _context.SaveChanges();
        }
Exemplo n.º 2
0
        public void Delete(Expression <Func <Student, bool> > where)
        {
            Student student = _context.Student.Where(where).FirstOrDefault();

            student.IsDelete = true;
            _context.Update(student);
            _context.SaveChanges();
        }
Exemplo n.º 3
0
        public void Delete(Expression <Func <Course, bool> > where)
        {
            Course entity = _context.Course.Where(where).FirstOrDefault();

            entity.IsDelete = true;
            _context.Update(entity);
            _context.SaveChanges();
        }
        public void Delete(Expression <Func <Teacher, bool> > where)
        {
            Teacher teacher = _context.Teacher.Where(where).FirstOrDefault();

            teacher.IsDelete = true;
            _context.Update(teacher);
            _context.SaveChanges();
        }