Skip to content

Commit

Permalink
fixing whitespace and json property ordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwyza-pi committed Jan 6, 2025
1 parent 8ea28a2 commit 2776844
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/GUI/RevEng.Shared/Cli/CliConfigMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 10 additions & 10 deletions src/GUI/RevEng.Shared/Cli/Configuration/CodeGeneration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
}

0 comments on commit 2776844

Please sign in to comment.