How should I edit an Entity Framework connection string?

后端 未结 5 2026
没有蜡笔的小新
没有蜡笔的小新 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:27

    No, you can't edit the connection string in the designer. The connection string is not part of the EDMX file it is just referenced value from the configuration file and probably because of that it is just readonly in the properties window.

    Modifying configuration file is common task because you sometimes wants to make change without rebuilding the application. That is the reason why configuration files exist.

提交回复
热议问题