Conditiional Database project configuration switch #23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ticket
22
What type of PR is this? (check all applicable)
Rationale
Currently the ability exists to create database projects for either MSSQL or PostgreSQL, so we wanted to make it easier to generate new solutions and define the target Database engine.
Implementation
Implemented additional switches command on the project generation making use of the Conditional processing and comment syntax , to enable the addition of conditional, or dynamic, content you can add Template Engine expressions in your source files. The conditional expression let you to include or exclude part of the file according to a specified condition, and to do this you can use the familiar conditional expressions like
#if, #else, #elseif, #endif
.Refactored the project templates to make use this functionality