title: can not Enable Migrations
body: <p>That error show when i run Enable Migration ! iam did the reverse engineering the SQLServer and i want to do some changers on my Data  i see this erroe whoch guide me to the line 10 on config.cs which is the constructor generated by visual studio (iam using Visual 2015) , sql connector 6.9.4 </p>
  
  <pre><code>Checking if the context targets an existing database...
  System.TypeInitializationException: The type initializer for 'System.Data.Entity.Migrations.DbMigrationsConfiguration`1' threw an exception. ---&gt; System.TypeLoadException: Inheritance security rules violated by type: 'MySql.Data.Entity.MySqlEFConfiguration'. Derived types must either match the security accessibility of the base type or be less accessible.
     at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs)
     at System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, IRuntimeMethodInfo ctor, IntPtr&amp; blob, IntPtr blobEnd, Int32&amp; namedArgs)
     at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
     at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
     at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit)
     at System.Attribute.GetCustomAttributes(MemberInfo element, Type type, Boolean inherit)
     at System.Reflection.CustomAttributeExtensions.GetCustomAttributes[T](MemberInfo element, Boolean inherit)
     at System.Data.Entity.Infrastructure.DependencyResolution.DbConfigurationFinder.TryFindConfigurationType(Assembly assemblyHint, Type contextTypeHint, IEnumerable`1 typesToSearch)
     at System.Data.Entity.Infrastructure.DependencyResolution.DbConfigurationManager.EnsureLoadedForAssembly(Assembly assemblyHint, Type contextTypeHint)
     at System.Data.Entity.Infrastructure.DependencyResolution.DbConfigurationManager.EnsureLoadedForContext(Type contextType)
     at System.Data.Entity.Migrations.DbMigrationsConfiguration`1..cctor()
     --- End of inner exception stack trace ---
     at System.Data.Entity.Migrations.DbMigrationsConfiguration`1..ctor()
     at Data.Migrations.Configuration..ctor() in C:\Users\saif kouti\Desktop\piski[pi_kouti]\piski\Data\Migrations\Configuration.cs:line 10
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Data.Entity.Migrations.Utilities.MigrationsConfigurationFinder.FindMigrationsConfiguration(Type contextType, String configurationTypeName, Func`2 noType, Func`3 multipleTypes, Func`3 noTypeWithName, Func`3 multipleTypesWithName)
     at System.Data.Entity.Migrations.Design.ToolingFacade.BaseRunner.FindConfiguration()
     at System.Data.Entity.Migrations.Design.ToolingFacade.ScaffoldRunner.RunCore()
     at System.Data.Entity.Migrations.Design.ToolingFacade.BaseRunner.Run()
  The type initializer for 'System.Data.Entity.Migrations.DbMigrationsConfiguration`1' threw an exception.
  </code></pre>
  
  <p>here my configuation.cs</p>
  
  <pre><code>namespace Data.Migrations
  {
      using System;
      using System.Data.Entity;
      using System.Data.Entity.Migrations;
      using System.Linq;
  
      internal sealed class Configuration : DbMigrationsConfiguration&lt;iskiContext&gt;
      {
          public Configuration()
          {
              AutomaticMigrationsEnabled = false;
          }
  
          protected override void Seed(Data.iskiContext context)
          {
              //  This method will be called after migrating to the latest version.
  
              //  You can use the DbSet&lt;T&gt;.AddOrUpdate() helper extension method 
              //  to avoid creating duplicate seed data.
          }
      }
  }
  </code></pre>
  
  <p>and here my context </p>
  
  <pre><code>using System.Data.Entity;
  using Domain.Models.Mapping;
  using Domain.Models;
  namespace Data
  {
      [DbConfigurationType(typeof(MySql.Data.Entity.MySqlEFConfiguration))]
  
      public partial class iskiContext : DbContext
      {
          static iskiContext()
          {
              Database.SetInitializer&lt;iskiContext&gt;(null);
          }
  
          public iskiContext()
              : base("Name=iskiContext")
          {
          }
  
          public DbSet&lt;accomodation&gt; accomodations { get; set; }
          public DbSet&lt;company&gt; companies { get; set; }
          public DbSet&lt;contract&gt; contracts { get; set; }
          public DbSet&lt;Event&gt; events { get; set; }
          public DbSet&lt;event_user&gt; event_user { get; set; }
          public DbSet&lt;organizerrequest&gt; organizerrequests { get; set; }
          public DbSet&lt;product&gt; products { get; set; }
          public DbSet&lt;products_user&gt; products_user { get; set; }
          public DbSet&lt;user&gt; users { get; set; }
          public DbSet&lt;user_company&gt; user_company { get; set; }
          public DbSet&lt;winner&gt; winners { get; set; }
  
          protected override void OnModelCreating(DbModelBuilder modelBuilder)
          {
              modelBuilder.Configurations.Add(new accomodationMap());
              modelBuilder.Configurations.Add(new companyMap());
              modelBuilder.Configurations.Add(new contractMap());
              modelBuilder.Configurations.Add(new eventMap());
              modelBuilder.Configurations.Add(new event_userMap());
              modelBuilder.Configurations.Add(new organizerrequestMap());
              modelBuilder.Configurations.Add(new productMap());
              modelBuilder.Configurations.Add(new products_userMap());
              modelBuilder.Configurations.Add(new userMap());
              modelBuilder.Configurations.Add(new user_companyMap());
              modelBuilder.Configurations.Add(new winnerMap());
          }
      }
  }
  </code></pre>