I'm trying to ignore the "Automatic" migration using Entity Framework 6.0 rc1. My problem is that I don't want this feature right now and every time that my application runs I can see all entity logs trying to create all tables.
Anticipate thanks.
Try this:
internal sealed class Configuration : DbMigrationsConfiguration<YourContext>
{
public Configuration()
{
AutomaticMigrationsEnabled = false;
}
}
UPDATE:
You can also try this:
Database.SetInitializer<YourContextType>(new CreateDatabaseIfNotExists());
You can put this inside your entityFramework section of the app.config:
<contexts>
<context type="YourNamespace.YourDbContext, YourAssemblyName" disableDatabaseInitialization="true"/>
</contexts>
This msdn page tells all about the Entity Framework Configuration Section.