-
Hi, thanks for the project. How to properly get raw sql for migrations in fluent style? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hello, @Alksar , your question is unclear. Please, give an example of what you want. |
Beta Was this translation helpful? Give feedback.
-
Hi @Alksar , If you want to insert custom raw sql into an expression, you can use 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. |
Beta Was this translation helpful? Give feedback.
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.