I'd like to know how I can solve the following problem. I have the class below:
namespace CustomizandoCodeFirstMigrations.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class AlteraTelefoneFixoRenomeiaCelular : DbMigration
{
public override void Up()
{
RenameColumn("dbo.Pessoas", "Celular", "TelefoneCelular");
AlterColumn("dbo.Pessoas", "TelefoneFixo", c => c.String(nullable: false, unicode: false));
}
public override void Down()
{
RenameColumn("dbo.Pessoas", "TelefoneCelular", "Celular");
AlterColumn("dbo.Pessoas", "TelefoneFixo", c => c.String());
}
}
}
And when I type in the package manager console the command update-database I receive in response:
Subquery returns more than 1 row