The connection string 'MysqlEF' in the application's configuration file does not contain the require异常

在学习EF core first 对接mysql时,出现了这个异常.

原因是:连接字符串中缺少providerName="MySql.Data.MySqlClient"

    <add name="MysqlEF" connectionString="Data Source=192.168.1.125;port=3307;Database=MiniProfilerDemo;User Id=root;Password=123456;Allow User Variables=True;Convert Zero Datetime=true;" providerName="MySql.Data.MySqlClient"/>

猜你喜欢

转载自www.cnblogs.com/tanfuchao/p/8982355.html
今日推荐