我遇到了一个问题,在具有与父代相同的连接字符串设置的子项目中的web.config。 我们在我们的几个网络应用中都有这个功能,但有一种情况我们希望孩子不要使用父级web.config。 在子web.config中是否有设置或命令忽略父级web.config?
I am running into a problem with a web.config in a child project that has the same connection string setting as a parent. We have this in several of our web apps but there is one case where we want a child not to use the parent web.config. Is there a setting or command in the child web.config to ignore the parent web.config?
最满意答案
如果我正确理解你的问题,你也可以从你的子web.config中<clear />所有以前定义的连接字符串:
<configuration> <connectionStrings> <clear/> <add name="definedInParentButRedefinedHere" etc="..." /> </connectionStrings> </configuration>If I understand your question correctly, you can also <clear /> out all previously defined connection strings from within your child web.config:
<configuration> <connectionStrings> <clear/> <add name="definedInParentButRedefinedHere" etc="..." /> </connectionStrings> </configuration>更多推荐
web,config,child,电脑培训,计算机培训,IT培训"/> <meta name="description&
发布评论