Skip to content

Commit

Permalink
Add prefix naming support to CLI (#2145)
Browse files Browse the repository at this point in the history
fixes #2143
  • Loading branch information
ErikEJ committed Feb 6, 2024
1 parent 713f1b4 commit 0633263
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions samples/efcpt-schema.json
Expand Up @@ -426,6 +426,14 @@
"examples": [
false
]
},
"use-prefix-navigation-naming": {
"type": "boolean",
"default": true,
"title": "Use prefix based naming of navigations with EF Core 8 or later",
"examples": [
false
]
}
},
"examples": [{
Expand Down
1 change: 1 addition & 0 deletions src/GUI/RevEng.Shared/Cli/CliConfigMapper.cs
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,
UsePrefixNavigationNaming = config.CodeGeneration.UsePrefixNavigationNaming,

// Not supported:
UseHandleBars = false,
Expand Down
6 changes: 3 additions & 3 deletions src/GUI/RevEng.Shared/Cli/Configuration/CodeGeneration.cs
Expand Up @@ -57,13 +57,13 @@ 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; }

[JsonPropertyName("generate-mermaid-diagram")]
public bool GenerateMermaidDiagram { get; set; }

[JsonPropertyName("refresh-object-lists")]
public bool RefreshObjectLists { get; set; } = true;

[JsonPropertyName("use-prefix-navigation-naming")]
public bool UsePrefixNavigationNaming { get; set; }
}
}

0 comments on commit 0633263

Please sign in to comment.