Prefix db passing to repository class

Hello!
Step1: You Can create 4 different repositories:

  1. Table named as a_products_category,
  2. a_products_info,
  3. a_archive_products_category,
    4.a_archive_products_info;

Step2:Create service which copy data from tables to archive
Step3: check in controller for product status and call service method

I’ll do that.

Anyway i think pass table name(prefix) as param is a bad way.

1 Like