每次添加新实体和连接字符串时,Visual Studio 2012都会将所有连接字符串存储在一行中。
旧格式:
<connectionStrings>
<!--comment describing this string -->
<add name="connString" connectionString="..." providerName="System.Data.EntityClient" />
<!--comment describing this string2 -->
<add name="connString2" connectionString="..." providerName="System.Data.EntityClient" />
</connectionStrings>
新格式:
<connectionStrings>
<!--comment describing this string --><!--comment describing this string2 --><add name="connString" connectionString="..." providerName="System.Data.EntityClient" />add name="connString2" connectionString="..." providerName="System.Data.EntityClient" /></connectionStrings>
如何阻止它这样做?