public Repository(SmartPan_TaskContext context) { this.context = context; entities = context.Set <T>(); }
public GenericRepository(SmartPan_TaskContext context) { this.context = context; db = context.Set <T>(); }