I have the following migration definition:
public override void Up()
{
AddColumn("dbo.MyTable", "MyEnum", c => c.Int(defaultValue: 0));
}
This will add my Enum to the Sql-Table during the migration. I'm using TPH and this enum is only member of a specified type, so EF will automaticly makes it nullable.
Question:
After the migration all columns have the value of "null". Instead of 0.
I would expect that only the table entries which use this enum type will have the default value of 0.