Skip to content

How to get raw sql for migrations #1625

Answered by jzabroski
Alksar asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Alksar ,

If you want to insert custom raw sql into an expression, you can use Raw.Sql(string) signature. This is used for escaping data within insert, update and delete expressions.

If you want to get the raw sql generated for a migration, then we call that a script. There is a command line option to generate a script via Preview Mode.

If you want something else, please explain like @ademchenko suggested. I'm going to move this Issue to a Discussion since it's not really an issue.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@jzabroski
Comment options

@rklec
Comment options

@jzabroski
Comment options

@rklec
Comment options

@jzabroski
Comment options

Answer selected by jzabroski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #1614 on August 11, 2022 14:09.