What does <clear /> signify when specifying a connectionstring?
问题 This answer to another question states: Do not forget to clear the connectionStrings first: <connectionStrings> <clear /> <add name="LocalSqlServer" connectionString="Data Source=(local);Initial Catalog=aspnetdb;Integrated Security=True" providerName="System.Data.SqlClient"/> </connectionStrings> ... interesting. What does that do? 回答1: In .Net config files are inherited, so your applications config will inherit settings from your machines config. The <clear/> tag will remove any inherited