This error was due to the fact that Entity Framework 6.0 was installed in the GAC. Once it was uninstalled, everything worked properly.
1 ts, Action
1 action)
at System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.GenerateStatements(IEnumerable1 migrationOperations) at System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(IEnumerable
1 migrationOperations, String providerManifestToken)
at System.Data.Entity.Migrations.DbMigrator.GenerateStatements(IList1 operations, String migrationId) at System.Data.Entity.Migrations.Infrastructure.MigratorBase.GenerateStatements(IList
1 operations, String migrationId)
at System.Data.Entity.Migrations.DbMigrator.ExecuteOperations(String migrationId, XDocument targetModel, IEnumerable1 operations, IEnumerable
1 systemOperations, Boolean downgrading, Boolean auto)
at System.Data.Entity.Migrations.DbMigrator.ApplyMigration(DbMigration migration, DbMigration lastMigration)
at System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.ApplyMigration(DbMigration migration, DbMigration lastMigration)
at System.Data.Entity.Migrations.DbMigrator.Upgrade(IEnumerable1 pendingMigrations, String targetMigrationId, String lastMigrationId) at System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.Upgrade(IEnumerable
1 pendingMigrations, String targetMigrationId, String lastMigrationId)
at System.Data.Entity.Migrations.DbMigrator.UpdateInternal(String targetMigration)
at System.Data.Entity.Migrations.DbMigrator.<>c__DisplayClassc.<Update>b__b()
at System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
at System.Data.Entity.Migrations.Infrastructure.MigratorBase.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
at System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration)
at System.Data.Entity.Migrations.Infrastructure.MigratorBase.Update(String targetMigration)
at System.Data.Entity.Migrations.Design.ToolingFacade.UpdateRunner.Run()
at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
at System.Data.Entity.Migrations.Design.ToolingFacade.Run(BaseRunner runner)
at System.Data.Entity.Migrations.Design.ToolingFacade.Update(String targetMigration, Boolean force)
at System.Data.Entity.Migrations.UpdateDatabaseCommand.<>c__DisplayClass2.<.ctor>b__0()
at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)
The current migration SQL generator (SqlServerMigrationSqlGenerator) is unable to generate SQL for operations of type 'System.Data.Entity.Migrations.Model.AlterTableOperation'. Call SetSqlGenerator on your migrations configuration class to use a different SQL generator. To create a custom SQL generator that can handle this type of operation, add a new class that derives from SqlServerMigrationSqlGenerator and override Generate(MigrationOperation).I delete the Migrations and re-execute the process with a new migration. In this case, I get the following errors: Column 'NotificationName' in table 'dbo.NotificationSubscriptionInfoes' is of a type that is invalid for use as a key column in an index. Column 'TenancyName' in table 'dbo.UserLoginAttempts' is of a type that is invalid for use as a key column in an index.
Now, If I put the two related lines of the Migration class in comments(!!), the process is completed successfully and the database is created. But, when I try to run now the application I get the following runtime error:
1<System.Collections.Generic.List
1<!!0>> System.Data.Entity.QueryableExtensions.ToListAsync(System.Linq.IQueryable1<!!0>)'.] Abp.EntityFramework.Repositories.<GetAllListAsync>d__8.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.EntityFramework\EntityFramework\Repositories\EfRepositoryBaseOfTEntityAndTPrimaryKey.cs:69 System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.Start(TStateMachine& stateMachine) +94
Abp.EntityFramework.Repositories.EfRepositoryBase3.GetAllListAsync() +145 Castle.Proxies.EfRepositoryBase
2Proxy.GetAllListAsync_callback() +5I am using VS2015 Professional Update3 + MS SQL Server 2012 and I have re-installed the latest version of the Entity Framework for the solution. Is something else that I should do or install?
Thanks