I'd like to add some properties to a entity to a model, but that property doesn't make any changes in the database nor in a migration script.
When I add this:
public test test1 { get; set; }
public enum test { asasas, asdasdasd };
I get an empty migration
public override void Up()
{
}
public override void Down()
{
}
But when i add:
public String test1 { get; set; }
public enum test { asasas, asdasdasd };
I get the expected migration
public override void Up()
{
AddColumn("dbo.SpiderBatches", "test1", c => c.String());
}
public override void Down()
{
DropColumn("dbo.SpiderBatches", "test1");
}
Because the second change does make a correct migration I can assume that the class/context are correctly setup and are working. So the error must be in the enum.
Can anyone help me further?