What does signify when specifying a connectionstring?

前端 未结 2 1734
抹茶落季
抹茶落季 2021-01-06 08:44

This answer to another question states:


Do not forget to clear the connectionStrings first:


   
   <         


        
2条回答
  •  北海茫月
    2021-01-06 09:42

    The element removes all sections and section groups from your application that were defined earlier in the current configuration file or at a higher level in the configuration file hierarchy.

    http://msdn.microsoft.com/en-us/library/aa903345(v=vs.71).aspx

    so for example, if this was a child config file and the parent config file had some settings... you may not want them being inherited so you specify the clear flag to clear it and then use your settings.

提交回复
热议问题