Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SqlServer Migrations: Add EXEC calls to idempotent script #21933

Merged
merged 1 commit into from
Aug 5, 2020

Conversation

bricelam
Copy link
Contributor

@bricelam bricelam commented Aug 4, 2020

Also adds the ability for providers to detected whether a script is being generated and whether its idempotent. (resolves #14746)

Fixes #12911

MigrationsSqlGenerationOptions.Idempotent);

AssertSql(
@"EXEC(CONCAT(N'DELETE FROM [Table1]', CHAR(13), CHAR(10), N'WHERE [Id] = 1;', CHAR(13), CHAR(10), N'SELECT @@ROWCOUNT'));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤮

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This way because of #15256 and #9998)

Also adds the ability for providers to detected whether a script is being generated and whether its idempotent. (resolves dotnet#14746)

Fixes dotnet#12911
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants