Skip to content

Commit

Permalink
Add remove-valuegeneratedonadd to cli
Browse files Browse the repository at this point in the history
fixes #2056
  • Loading branch information
ErikEJ committed Dec 19, 2023
1 parent 28c94f4 commit 966b553
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 11 additions & 2 deletions samples/efcpt-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
"use-t4",
"remove-defaultsql-from-bool-properties",
"soft-delete-obsolete-files",
"use-alternate-stored-procedure-resultset-discovery"
"use-alternate-stored-procedure-resultset-discovery",
],
"properties": {
"enable-on-configuring": {
Expand Down Expand Up @@ -372,6 +372,14 @@
"examples": [
false
]
},
"remove-valuegeneratedonadd": {
"type": "boolean",
"default": false,
"title": "Remove ValeGeneratedOnAdd() from entity configuration, useful with Oracle",
"examples": [
false
]
}
},
"examples": [{
Expand All @@ -389,7 +397,8 @@
"discover-multiple-stored-procedure-resultsets-preview": false,
"use-alternate-stored-procedure-resultset-discovery": false,
"use-no-navigations-preview": false,
"merge-dacpacs": false
"merge-dacpacs": false,
"remove-valuegeneratedonadd": false
}]
},
"names": {
Expand Down
1 change: 1 addition & 0 deletions src/GUI/RevEng.Shared/Cli/CliConfigMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public static ReverseEngineerCommandOptions ToOptions(this CliConfig config, str
ProjectRootNamespace = names.RootNamespace,
MergeDacpacs = config.CodeGeneration.MergeDacpacs,
UseDecimalDataAnnotation = config.CodeGeneration.UseDecimalDataAnnotation,
RemoveValueGeneratedOnAdd = config.CodeGeneration.RemoveValueGeneratedOnAdd,

// Not supported:
UseHandleBars = false,
Expand Down
3 changes: 3 additions & 0 deletions src/GUI/RevEng.Shared/Cli/Configuration/CodeGeneration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,8 @@ public class CodeGeneration

[JsonPropertyName("use-decimal-data-annotation-for-sproc-results")]
public bool UseDecimalDataAnnotation { get; set; } = true;

[JsonPropertyName("remove-valuegeneratedonadd")]
public bool RemoveValueGeneratedOnAdd { get; set; }
}
}

0 comments on commit 966b553

Please sign in to comment.