When adding an SQL server GO commandto a call DbMigration.Sql("GO ...")that calls the entity framework method Update-Databaseto exclude the exception argument, "sql" cannot be null. "
GO command
DbMigration.Sql("GO ...")
Update-Database
Delete GOand the migration will fail because the next SQL statement creates a trigger, which should be on its own.
GO
I did not find absolutely any information on this, so an SO thought could be beneficial.
, , SQL Server GO , , EF SQL .
, DbMigration.Sql(sql, suppressTransaction=false).
DbMigration.Sql(sql, suppressTransaction=false)
suppressTransaction SQL- ( ). GO .
suppressTransaction