public virtual void Update(T entity) { context.Set <T>().Attach(entity); context.Entry(entity).State = EntityState.Modified; }
public GenericRepository(DevHubContext context) { this.context = context; dbset = context.Set <T>(); }