I'm using EF code first and have the following in my migration file.
public override void Up()
{
AddColumn("dbo.ConsumerFee", "VATCodeId", c => c.Int(nullable: false, defaultValue: 1));
}
However when the column is added to the table it is given a default value of 0 not 1. When I run the migration manually I can see that it generates this sql :
alter table `ConsumerFee` add column `VATCodeId` int not null
Any ideas what may be up with this?