我需要在运行时设置我的EntityFramework连接字符串。现在,我有以下内容:stringconnectionString="metadata=res://*/DataModels.CustomerDataModel.csdl|res://*/DataModels.CustomerDataModel.ssdl|res://*/DataModels.CustomerDataModel.msl;provider=System.Data.SqlClient;providerconnectionstring="datasource=tcp:{serverName},{portN
我需要在运行时设置我的EntityFramework连接字符串。现在,我有以下内容:stringconnectionString="metadata=res://*/DataModels.CustomerDataModel.csdl|res://*/DataModels.CustomerDataModel.ssdl|res://*/DataModels.CustomerDataModel.msl;provider=System.Data.SqlClient;providerconnectionstring="datasource=tcp:{serverName},{portN