admin管理员组文章数量:1417061
I have a C# project running from about 8 years without problems. Using 4.8 c# entity framework 6 MySql and SqLite.
This year I would like to upgrade mysql db drivers from version 8 to 9.
After this upgrade, running the project inside visual studio I have no problem.
Building the setup and install to a brand new computer with windows 11, I have this exception:
Using the same DbCompiledModel to create contexts against different types of database servers is not supported.
Wasting some days to understand this problem without success. Read some old posts on this argument but nothing helped me.
<connectionStrings>
<add name="LumenEntities" providerName="MySql.Data.MySqlClient" connectionString="server=localhost;port=3306;database=lumen;uid=root;pwd=root" />
</connectionStrings>
<entityFramework>
<providers>
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.EntityFramework, Version=9.1.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
</providers>
</entityFramework>
If I can't find a solution I think to downgrade to version 8 of the driver. Any help is apreciated.
本文标签: cUsing the same DbCompiledModel to create contextsquot with Entity FrameworkStack Overflow
版权声明:本文标题:c# - Using the same DbCompiledModel to create contexts..." with Entity Framework - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745257348a2650181.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论