Coding the Application Configuration File

The connection string information in the application configuration is used by the .NET application to connect to the database server. It contains the same kind of information you would see in a JADE client shortcut.

An example application configuration file called BankingClasses.exe.config was generated by the C# Exposure wizard, so if your information provided to the wizard was correct, you can use the contents of this file without modification.

  1. Open the App.config file for the BankingApp project.

  2. Overwrite the XML in this file with the contents of the BankingClasses.exe.config file.

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <configSections>
        <section name="joob"
                 type="JadeSoftware.Joob.Configuration.JoobConfigurationSection,                       JadeSoftware.Joob" />
      </configSections>
    
      <connectionStrings>
        <add name="myDefault" providerName="JadeSoftware.Joob.JadeConnection"
             connectionString="DataSource=C:/Jade7009/system/;
                               ConfigFile=C:/Jade7009/system/jade.ini;
                               SingleUser=False;
                               Schema=BankingViewSchema;
                               Application=DotNetConnection; 
                               IntegratedSecurity=true"></add>
      </connectionStrings>
    
      <joob defaultConnection="myDefault">
        <installation directory="C:\Jade7009\bin" />
      </joob>
    
      <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
      </startup>
    </configuration>