public class CustomSQLGenerator : SqlServerMigrationSqlGenerator { protected override void Generate(AlterColumnOperation alterColumnOperation) { var old = (System.Data.Entity.Migrations.Model.AlterColumnOperation)(alterColumnOperation.Inverse)).Column; var column = alterColumnOperation.Column; if (column.ClrType == typeof(Guid) && old.IsNullable == null && column.IsNullable == false) { } } }
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)