From 82cee2ca59852d1fd6c3297dd38ae98a066ff421 Mon Sep 17 00:00:00 2001 From: phoenix Date: Thu, 3 Apr 2025 20:58:58 -0400 Subject: [PATCH] Should be it --- Icarus/.editconfig | 19 +++++++++++++++++++ Models/.editconfig | 19 +++++++++++++++++++ Models/AccessLevel.cs | 1 + 3 files changed, 39 insertions(+) create mode 100644 Icarus/.editconfig create mode 100644 Models/.editconfig diff --git a/Icarus/.editconfig b/Icarus/.editconfig new file mode 100644 index 0000000..8020433 --- /dev/null +++ b/Icarus/.editconfig @@ -0,0 +1,19 @@ +# Top-most EditorConfig file +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.cs] +# Use 'var' when possible +csharp_style_var_for_built_in_types = true:suggestion +csharp_style_var_when_type_is_apparent = true:suggestion +csharp_style_var_elsewhere = true:suggestion + +# Use expression body for methods +csharp_style_expression_bodied_methods = true:silent \ No newline at end of file diff --git a/Models/.editconfig b/Models/.editconfig new file mode 100644 index 0000000..8020433 --- /dev/null +++ b/Models/.editconfig @@ -0,0 +1,19 @@ +# Top-most EditorConfig file +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.cs] +# Use 'var' when possible +csharp_style_var_for_built_in_types = true:suggestion +csharp_style_var_when_type_is_apparent = true:suggestion +csharp_style_var_elsewhere = true:suggestion + +# Use expression body for methods +csharp_style_expression_bodied_methods = true:silent \ No newline at end of file diff --git a/Models/AccessLevel.cs b/Models/AccessLevel.cs index 30f981b..385783d 100644 --- a/Models/AccessLevel.cs +++ b/Models/AccessLevel.cs @@ -7,6 +7,7 @@ public class AccessLevel { #region Properties [Newtonsoft.Json.JsonProperty("id")] + [Key] public Guid Id { get; set; } [Newtonsoft.Json.JsonProperty("level")] public string? Level { get; set; }