是否有一个命令或设置的子web.config忽略父级web.config(Is there a command or setting for a child web.config to ignore

编程入门 行业动态 更新时间:2024-10-26 05:25:02
是否有一个命令或设置的子web.config忽略父级web.config(Is there a command or setting for a child web.config to ignore the parent web.config)

我遇到了一个问题,在具有与父代相同的连接字符串设置的子项目中的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&

本文发布于:2023-08-07 02:21:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1458938.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:有一个   命令   config   web   command

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!