When storing a MySQL connection string in App.config, what value should the providerName property be set to?

前端 未结 1 1451
感动是毒
感动是毒 2020-12-16 20:37

When storing a MySQL connection string in App.config, what value should the providerName property be set to?

For example in the below App.config file, what value sho

相关标签:
1条回答
  • 2020-12-16 21:02

    Try this:

    <connectionStrings>
    <add name="MySQL" connectionString="SERVER=8.8.8.8; DATABASE=foo; UID=bar; PASSWORD=foobar" providerName="MySql.Data.MySqlClient" />
    </connectionStrings>
    
    0 讨论(0)
提交回复
热议问题