C# Windows Form Application With Entity Framework Error: System.Data.Entity.Core.ProviderIncompatibleException

c# entity-framework-6 forms windows

Popular Answer

At this site, I was able to locate anything from the MYSQL BUGS Forum.

I have to downgrade to: in order to get around it.

Data from MySql 6.9.12 (6.10.7 and 8.0.11 exhibited the problem)

- 6.8.8 MySQL.Data.Entity (6.9.12 and 6.10.7 exhibited the problem)

MYSQL ERRORS

Furthermore, I must add "[DbConfigurationType(typeof(MySql.Data.Entity.MySqlEFConfiguration))]" to the DBContext Class:

using System.Data.Entity;

namespace ADMMassUploader
{
    [DbConfigurationType(typeof(MySql.Data.Entity.MySqlEFConfiguration))]
    public class ApplicationDbContext : DbContext
    {
        public ApplicationDbContext() : base("MySqlConnection")
        {
        }

        public static ApplicationDbContext Create()
        {
            return new ApplicationDbContext();
        }
        public DbSet<adm_main> AdmMain { get; set; }
    }
}
0
7/26/2018 7:04:03 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow