Other Data Base

Apr 30, 2015 at 1:56 AM
Hi!

May someone know how i configure My Sql with Generic Unit of Work & (Extensible) Repositories Framework?

I already setup the dll's in my projects and change the web.config, but it don't work yet.
  • C:\Program Files (x86)\MySQL\MySQL Connector Net 6.8.3\Assemblies\v4.5\MySql.Data.dll
  • C:\Program Files (x86)\MySQL\MySQL Connector Net 6.8.3\Assemblies\v4.5\MySql.Data.Entity.EF6.dll
  • C:\Program Files (x86)\MySQL\MySQL Connector Net 6.8.3\Assemblies\v4.5\MySql.Web.dll
<entityFramework codeConfigurationType="MySql.Data.Entity.MySqlEFConfiguration, MySql.Data.Entity.EF6">
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
    <providers>
      <provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6" /> 
    </providers>
  </entityFramework>
Coordinator
May 12, 2015 at 4:38 PM
Hi AlanBessa,

There shouldn't be any difference using MySql, please make sure you have EF working with MySql then integrate the framework. You may want to have a look at how DI & IoC is configured.

https://genericunitofworkandrepositories.codeplex.com/SourceControl/latest#main/Sample/Northwind.Web/App_Start/UnityConfig.cs
Marked as answer by lelong37 on 5/12/2015 at 9:38 AM