Change table name at runtime

后端 未结 7 1903
陌清茗
陌清茗 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:23

    Thanks for the answers.

    I think that my case is a real-world scenario that is, typically neglected in all "getting-started" typical scenarios of EF tutorials and examples.

    Based on the fact that I use db-first approach and the switch should be at the application level, I think that I will create a Context instance, based on different SSDL with the new table name that the user will use on demand

提交回复
热议问题