Change Entity framework database schema at runtime

前端 未结 8 2593
花落未央
花落未央 2021-02-20 13:02

In most asp.net applications you can change the database store by modifing the connectionstring at runtime. i.e I can change from using a test database to a production database

8条回答
  •  情歌与酒
    2021-02-20 13:48

    The easiest way to solve the problem is to manualy remove all entries like 'Schema="SchemaName"' from the SSDL part of the model.
    Everything works propely in this case.

提交回复
热议问题