26.10.2014, 14:50
Quote:
Good to hear!
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.) |