public void Delete(T entity)
 {
     _context.Remove(entity);
     Save();
 }
예제 #2
0
 public void Delete <T>(T entity) where T : class
 {
     _context.Remove(entity);
     _context.SaveChanges();
 }