Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COM Messlokationszuordnung: Make Property MesslokationsId nullable #491

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions BO4E/COM/Messlokationszuordnung.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable enable
using System;
using System.Text.Json.Serialization;
using BO4E.ENUM;
Expand All @@ -17,10 +18,10 @@ public class Messlokationszuordnung : COM
{
/// <summary>Die Messlokations-ID, früher die Zählpunktbezeichnung.</summary>
[DataCategory(DataCategory.POD)]
[JsonProperty(PropertyName = "messlokationsId", Required = Required.Always)]
[JsonProperty(PropertyName = "messlokationsId", Required = Required.Default)]
[JsonPropertyName("messlokationsId")]
[ProtoMember(3)]
public string MesslokationsId { get; set; }
public string? MesslokationsId { get; set; }

/// <summary>
/// Die Operation, mit der eine Messung an dieser Lokation für den Gesamtverbrauch der Marktlokation verrechnet
Expand Down Expand Up @@ -63,4 +64,4 @@ private DateTime _GueltigBis
[ProtoIgnore]
public DateTimeOffset? GueltigBis { get; set; }
}
}
}
Loading