26.10.2014, 14:45
Quote:
Stil active, yet on-hold. After my summer holidays, I've been busy on a deadlined project. That's been done, upcoming week I've got some exams. I expect to work on this project again soon after that.
|
Have you managed to solve the problem with EntityFramework MySQL and configuration file? I tried to use configuration in code:
Code:
public class Configuration : DbConfiguration { public Configuration() { AddDependencyResolver(new MySqlDependencyResolver()); SetProviderFactory(MySqlProviderInvariantName.ProviderName, new MySqlClientFactory()); SetProviderServices(MySqlProviderInvariantName.ProviderName, new MySqlProviderServices()); SetDefaultConnectionFactory(new MySqlConnectionFactory()); SetProviderFactoryResolver(new MySqlProviderFactoryResolver()); SetManifestTokenResolver(new MySqlManifestTokenResolver()); } }
Without this class the error doesn't occur, but of course EF does not work (errors with wrong provider, etc.)