public virtual void Delete(object id) { for (int i = 0; i < 8; i++) { Console.WriteLine(typeof(T)); } set = context.Set <T>(); T entityToDelete = set.Find(id); Delete(entityToDelete); }
public GenericRepo(PrisonDbContext context) { this.context = context; set = context.Set <T>(); }