Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am trying to connect my WPF .NET framework 4.7.2 app to MySQL but the window just crashes after this page

image

I have tried installing

Softwares:-

``CONECTOR/NET 8.0.22 (x86)
{even though mine is a 64 bit system but these were the only available }

MySQL for Visiual Studio 1.2.9 (x86)

NuGet packages :-

MySql.Data.EntityFramework 8.0.22
Entity Framework 6.4.4 ```

I even tried installing 
```MySql.Data.Entity.EF6 6.10.9
MySql.Data.EntityFrameworkCore 8.0.22 (This was just to test as the
           Description of MySql.Data was MySql.Data.MySqlClient .Net Core Class Library)```

I have also tried using the dll's that come with the connector for net of MySQL , but the only dll's that i imported was `MySQL.Data` and `MySql.Data.EntityFramework` and not the other dlls that come bundled with it like when you try to install these from the nuget package manager there are other things added Ex: bouncy castle and ssh.net (although I do not know what they are for i will list all the reference below)  , **and the connecter and the dll's installed and imported was of the same version 8.0.22**

I have tried updating all the packages installed , i have tried rebuilding the solution and then attempting it once 

this all at least went to the next window where it would ask for connection , until i downloaded the connector and the MySQL for VS , i had to download those as the installation wizard would throw an error before i installed those software (connector/net and the MySQL for VS) , now  the only difference is it crashes earlier , the wizard would move forward before 

[clickme][2]


also this is the `app.config` code 

   
```<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.4.4.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  </configSections>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
  </startup>
  <entityFramework>
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
      <!--<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.10.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"></provider>-->
    <provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.EntityFramework, Version=8.0.22.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d">
      </provider></providers>
  </entityFramework>
    <system.data>
        <DbProviderFactories>
            <remove invariant="MySql.Data.MySqlClient" />
            <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=8.0.22.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
        </DbProviderFactories>
    </system.data>
  <runtime>

      <dependentAssembly>
        <assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-8.0.22.0" newVersion="8.0.22.0" />
      </dependentAssembly>

  </runtime>
  <connectionStrings>
    <add name="Model1" connectionString="data source=(LocalDb)MSSQLLocalDB;initial catalog=delt.Model1;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
  </connectionStrings>
</configuration>

I could resort to dapper but that would take time , and i have to learn how to use it, i am new to ORM's and i dont have a lot of time that why i want a fix for this

I have written mannual code for pretty much everything where i used the older method like dr[IDno].Tostring

but i have to perform task like record every changes made to the database by a user Data Validation Crud for Remaining Tables

Please do leave an Answer, I have listed absolutely everything i can think of message my if i have left out anything I thank this community for answering questions and taking their time off for us new comers Thank you


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
166 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...