I'm developing a program for a customer who has a mysql server. I dont have the mysql server information because of security then I have been developing it on mysql localhost..
So I sent the program and my customer changed connection strings from config file (myprogram.exe.config) but it doesnt work. after that installed local mysql and tried it again, it also didnt work..
I have never tried make a program with a custom connectionstring.. As you know entity framework creates classes from db's tables. I created script of database...
I am looking for a solution..
this is my config file
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.
EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<connectionStrings>
<add name="XXXX.Properties.Settings.xxxConnectionString"connectionString=
"server=localhost;User Id=root;password=*****;Persist Security Info=True;
database=xxx" providerName="MySql.Data.MySqlClient" />
<add name="xxxxEntity" connectionString="metadata=res://*/xxxxModel.csdl|res:
//*/xxxModel.ssdl|res://*/xxxModel.msl;provider=MySql.Data.MySqlClient;provider
connection string="server=localhost;user id=root;password=*****;
persist security info=True;database=xxxx"" providerName=
"System.Data.EntityClient" />
</connectionStrings>
and my customer changed like that
<add name="TopluFatura.Properties.Settings.xxxxxConnectionString"
connectionString="server=IP_ADDRESS;User Id=root;password=------;
Persist Security Info=True;database=xxxxx"providerName="MySql.Data.MySqlClient"/>
<add name="xxxxEntity" connectionString="metadata=res://*/xxxxModel.csdl|
res://*/xxxxModel.ssdl|res://*/xxxxModel.msl;provider=MySql.Data.MySqlClient;
provider connectionstring="server=IP_ADDRESS;user id=root;password=------;
persist security info=True;database=xxxx""
providerName="System.Data.EntityClient" />