public void AppointmentRemoving(IEnumerable <CarScheduling> appointments)
        {
            foreach (var item in appointments)
            {
                if (item.EventType != (int)AppointmentType.Occurrence)
                {
                    db.Remove(item);
                    if (item.EventType == (int)AppointmentType.Pattern)
                    {
                        RemoveOccurrances(item.PatternId);
                    }
                }
            }

            db.SaveChanges();
        }
示例#2
0
 public void Delete(Car car)
 {
     _context.Remove(car);
 }
示例#3
0
 public void Remove(TEntity entity)
 {
     _context.Remove(entity);
 }