Problem Connection DB

0

I am doing a C # system, I connected the database (Access) and the program asked to copy the database to the system folder and everything.

The problem is that the application is not saving the data in the system folder bank, I have to direct the database to App.Config .

How do I do this?

File App.Config :

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
    </configSections>
    <connectionStrings>
        <add name="BancodeDados.Properties.Settings.BancodeDadosConnectionString"
            connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\GlimaSoftDB.mdb"
            providerName="System.Data.OleDb" />
    </connectionStrings>
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
    </startup>
</configuration>
    
asked by anonymous 03.10.2016 / 19:19

0 answers