I am new to EF5 Code First and I\'m tinkering with a proof-of-concept before embarking on a project at work.
I have initially created a model that looked something l
Based on @JustAnotherUserYouMayKnow's answer, but easier.
Try firstly execute Sql() command and then AlterColumn():
Sql(@"
UPDATE dbo.People
SET Location =
CASE Location
WHEN 'London' THEN 1
WHEN 'Edinburgh' THEN 2
WHEN 'Cardiff' THEN 3
ELSE 0
END
");
AlterColumn("dbo.People", "Location", c => c.Int(nullable: false));