Change table name at runtime

后端 未结 7 1893
陌清茗
陌清茗 2020-12-17 03:22

Lets suppose that I have a db table with name Employee and a respective EF 6.0 db-first model.

Getting all rows of table Employee is done through q

7条回答
  •  一整个雨季
    2020-12-17 04:12

    Old question, but based on the problem I would suggest that you look at partioning your table based on a "current" bit or a datetime field. Partitioning is based on a column value & is supported by most modern DBMS. It would avoid issue at the ORM level.

提交回复
热议问题