From 2776844be10512e939fd760f4a7488625d62fb98 Mon Sep 17 00:00:00 2001 From: jwyza-pi Date: Mon, 6 Jan 2025 08:54:32 -0600 Subject: [PATCH] fixing whitespace and json property ordering. --- src/GUI/RevEng.Shared/Cli/CliConfigMapper.cs | 2 +- .../Cli/Configuration/CodeGeneration.cs | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/GUI/RevEng.Shared/Cli/CliConfigMapper.cs b/src/GUI/RevEng.Shared/Cli/CliConfigMapper.cs index 6456ad27a..c5bcad397 100644 --- a/src/GUI/RevEng.Shared/Cli/CliConfigMapper.cs +++ b/src/GUI/RevEng.Shared/Cli/CliConfigMapper.cs @@ -186,7 +186,7 @@ public static ReverseEngineerOptions ToOptions(this CliConfig config, string pro UseDecimalDataAnnotationForSprocResult = config.CodeGeneration.UseDecimalDataAnnotation, UsePrefixNavigationNaming = config.CodeGeneration.UsePrefixNavigationNaming, UseInternalAccessModifiersForSprocsAndFunctions = config.CodeGeneration.UseInternalAccessModifiersForSprocsAndFunctions, - + // HandleBars templates are not supported: UseHandleBars = false, SelectedHandlebarsLanguage = 0, // handlebars support, will not support it diff --git a/src/GUI/RevEng.Shared/Cli/Configuration/CodeGeneration.cs b/src/GUI/RevEng.Shared/Cli/Configuration/CodeGeneration.cs index a809d1a0f..6ca33bd84 100644 --- a/src/GUI/RevEng.Shared/Cli/Configuration/CodeGeneration.cs +++ b/src/GUI/RevEng.Shared/Cli/Configuration/CodeGeneration.cs @@ -66,36 +66,36 @@ public class CodeGeneration public bool UseInflector { get; set; } = true; [JsonPropertyOrder(150)] + [JsonPropertyName("use-internal-access-modifiers-for-sprocs-and-functions")] + public bool UseInternalAccessModifiersForSprocsAndFunctions { get; set; } + + [JsonPropertyOrder(160)] [JsonPropertyName("use-legacy-inflector")] public bool UseLegacyInflector { get; set; } - [JsonPropertyOrder(160)] + [JsonPropertyOrder(170)] [JsonPropertyName("use-many-to-many-entity")] public bool UseManyToManyEntity { get; set; } - [JsonPropertyOrder(170)] + [JsonPropertyOrder(180)] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] [JsonPropertyName("use-no-navigations-preview")] public bool UseNoNavigationsPreview { get; set; } - [JsonPropertyOrder(180)] + [JsonPropertyOrder(190)] [JsonPropertyName("use-nullable-reference-types")] public bool UseNullableReferenceTypes { get; set; } = true; - [JsonPropertyOrder(190)] + [JsonPropertyOrder(200)] [JsonPropertyName("use-prefix-navigation-naming")] public bool UsePrefixNavigationNaming { get; set; } - [JsonPropertyOrder(200)] + [JsonPropertyOrder(210)] [JsonPropertyName("use-t4")] public bool UseT4 { get; set; } - [JsonPropertyOrder(210)] + [JsonPropertyOrder(220)] [JsonPropertyName("use-t4-split")] public bool UseT4Split { get; set; } - - [JsonPropertyOrder(220)] - [JsonPropertyName("use-internal-access-modifiers-for-sprocs-and-functions")] - public bool UseInternalAccessModifiersForSprocsAndFunctions { get; set; } } }