Skip to content

Commit e4e3f67

Browse files
committed
Remove DbProviderFactories item instead of commenting out.
1 parent 9d0df35 commit e4e3f67

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

installer/ModifyDbProviderFactories/Program.cs

-4
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ static void Main(string[] args) {
2020
.Elements("add")
2121
.Where(p => p.Attribute("invariant") != null && p.Attribute("invariant").Value == args[3])
2222
) {
23-
el.AddAfterSelf(
24-
new XComment(el.ToString())
25-
);
2623
el.Remove();
2724
}
2825
XElement xAdd;
@@ -41,7 +38,6 @@ static void Main(string[] args) {
4138
xApp.Load(args[1]);
4239
var DbProviderFactories = xApp.SelectSingleNode("/configuration/system.data/DbProviderFactories");
4340
foreach (XmlElement el in DbProviderFactories.SelectNodes("add[@invariant='" + args[3] + "']")) {
44-
el.ParentNode.InsertAfter(xApp.CreateComment(el.OuterXml), el);
4541
el.ParentNode.RemoveChild(el);
4642
}
4743
XmlElement xAdd = xApp.CreateElement("add");
-512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)