Model
__MigrationHistory
UPDATE-DATABASE
CONVERT
delete from dbo.[__MigrationHistory] where MigrationId = '201304042210224_MyMigration' INSERT INTO dbo.[__MigrationHistory] (MigrationId, Model, ProductVersion) select MigrationId = '201304042210224_MyMigration' ,Model = CONVERT(varbinary(max), '0x1F8B0800000000000...' ,1) ,ProductVersion = '5.0.0.net45' where not exists ( select 2 from dbo.[__MigrationHistory] where MigrationId = '201304042210224_MyMigration' )