From abcbedca2a6421139db3017c6794bc888570af57 Mon Sep 17 00:00:00 2001 From: konstantin Date: Fri, 5 Apr 2024 07:27:54 +0000 Subject: [PATCH] Make `MarktlokationsId` in BO Marktlokation Optional / Nullable --- BO4E/BO/Marktlokation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BO4E/BO/Marktlokation.cs b/BO4E/BO/Marktlokation.cs index ba16826e..6be74d98 100644 --- a/BO4E/BO/Marktlokation.cs +++ b/BO4E/BO/Marktlokation.cs @@ -45,13 +45,13 @@ public class Marktlokation : BusinessObject /// verbraucht, oder erzeugt wird /// [DefaultValue("|null|")] - [JsonProperty(Required = Required.Always, Order = 10, PropertyName = "marktlokationsId")] + [JsonProperty(Required = Required.Default, Order = 10, PropertyName = "marktlokationsId")] [JsonPropertyName("marktlokationsId")] [JsonPropertyOrder(10)] [DataCategory(DataCategory.POD)] [BoKey] [ProtoMember(4)] - public string MarktlokationsId { get; set; } + public string? MarktlokationsId { get; set; } /// Sparte der Messlokation, z.B. Gas oder Strom. [JsonProperty(Required = Required.Always, Order = 11, PropertyName = "sparte")]