C
Charles Zhang
I would like add my ADO.Provider information to <DbProviderFactories>
section of <system.data> to "Machine.config".
I used the following code to get section:
Configuration config ConfigurationManager.OpenMachineConfiguration();
ConfigurationSection section = config.Sections["system.data"];
Then I used Visual Studio debugger to see the value of the "section".
I know the section is a "DefaultSection" type.
However, after some extensive researches, I could find any way to add
contents to the section.
I did find there is "Save" method in the "Configuration" class. But I do
not know how to change "Configuration" a class.
Thanks
Charles Zhang
section of <system.data> to "Machine.config".
I used the following code to get section:
Configuration config ConfigurationManager.OpenMachineConfiguration();
ConfigurationSection section = config.Sections["system.data"];
Then I used Visual Studio debugger to see the value of the "section".
I know the section is a "DefaultSection" type.
However, after some extensive researches, I could find any way to add
contents to the section.
I did find there is "Save" method in the "Configuration" class. But I do
not know how to change "Configuration" a class.
Thanks
Charles Zhang