The model backing the 'InternalRoleContext`3' context has changed since the database was created.

Jun 2, 2013 at 9:20 AM
Hello everyone.
I start learning the EF Membership. I download the example from https://efmembership.codeplex.com/. I put in some setting connection string, for sql Server in sample1 or sample2, and I have a error.

__The model backing the 'InternalRoleContext`3' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269)__

I guess what I must create migration, but I don't understand where my dbContext type for it.

Thanks
Jun 6, 2013 at 12:34 AM
I am so sorry for this question, now I more better understanding EFMebership and that error is fail now. Thanks
Jul 31, 2013 at 9:24 AM
did you resovle the problem?
Nov 1, 2013 at 2:14 AM
_create migration
1.   internal sealed class Configuration<TUser, TKey> : DbMigrationsConfiguration<InternalUserContext<TUser, TKey>>    
 where TUser : class   where TKey : struct
       {
        public Configuration()
        {
            AutomaticMigrationsEnabled = true;
        }
  protected override void Seed(InternalUserContext<TUser, TKey> context)
        {
         //migration code   
        }
}
and add to
protected override void OnModelCreating(DbModelBuilder modelBuilder) {
                 Database.SetInitializer(new MigrateDatabaseToLatestVersion<InternalUserContext<TUser, TKey>, Configuration<TUser, TKey>>());
//another code.....