How should I edit an Entity Framework connection string?

后端 未结 5 2024
没有蜡笔的小新
没有蜡笔的小新 2020-12-12 17:13

I recently had to edit my app.config file to change the connection string for an Entity Framework data model (.edmx file). But I\'d like to know: Is the

5条回答
  •  天涯浪人
    2020-12-12 17:25

    Follow the next steps:

    1. Open the app.config and comment on the connection string (save file)
    2. Open the edmx (go to properties, the connection string should be blank), close the edmx file again
    3. Open the app.config and uncomment the connection string (save file)
    4. Open the edmx, go to properties, you should see the connection string uptated!!

提交回复
热议问题