Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1447

EntityFramework 6 mysql .net connector 6.9.9 (no replies)

$
0
0
Hi everyone, I have been trying to get the mysql .net connector 6.9.9 and 6.9.8 to work with an asp.net mvc and class library project but it just won't. when I configure to project to work with mysql( I do this by adding the attribute DbConfigurationType(typeof(MySqlEFConfiguration)) to my dbcontext and add DbConfiguration.SetConfiguration(new MySqlEFConfiguration()) to my Global.asax) and when I run enable-migrations in powershell, I get the error sequence contains no matching elements. Now the same dbcontext and entities work smoothly with MSSQL. MySql and EF6.1.3, MVC 5 have worked for me before using the .net 6.9.5 in 2014, I just don't understand why this is happening and what this simple error message means. Please can someone help with this? is there a bug or something in .net connector? Can we have a better Code first how to so that we can learn from. Is there a recent how to from anyone that we should be looking at?

Thanks in anticipation

Viewing all articles
Browse latest Browse all 1447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>