diff --git a/MaLoIdentModels/MaLoIdentModels/Address.cs b/MaLoIdentModels/MaLoIdentModels/Address.cs index c31af15..78eb07b 100644 --- a/MaLoIdentModels/MaLoIdentModels/Address.cs +++ b/MaLoIdentModels/MaLoIdentModels/Address.cs @@ -5,6 +5,10 @@ namespace MaLoIdentModels; public class Address { + [JsonIgnore] + [Key] + public System.Guid? Id { get; set; } + [JsonPropertyName("countryCode")] [RegularExpression(@"[A-Z]{2}")] public string? CountryCode { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/DataControllableResource.cs b/MaLoIdentModels/MaLoIdentModels/DataControllableResource.cs index 18a9379..adca854 100644 --- a/MaLoIdentModels/MaLoIdentModels/DataControllableResource.cs +++ b/MaLoIdentModels/MaLoIdentModels/DataControllableResource.cs @@ -1,10 +1,15 @@ using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; using System.Text.Json.Serialization; namespace MaLoIdentModels; public class DataControllableResource { + [JsonIgnore] + [Key] + public System.Guid? Id { get; set; } + [JsonPropertyName("srId")] public string? SrId { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/DataMarketLocation.cs b/MaLoIdentModels/MaLoIdentModels/DataMarketLocation.cs index fa4d7ec..df81389 100644 --- a/MaLoIdentModels/MaLoIdentModels/DataMarketLocation.cs +++ b/MaLoIdentModels/MaLoIdentModels/DataMarketLocation.cs @@ -5,6 +5,10 @@ namespace MaLoIdentModels; public class DataMarketLocation { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public System.Guid? Id { get; set; } + [JsonPropertyName("maloId")] public string? MaloId { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/DataMarketLocationProperties.cs b/MaLoIdentModels/MaLoIdentModels/DataMarketLocationProperties.cs index a3e9501..300323c 100644 --- a/MaLoIdentModels/MaLoIdentModels/DataMarketLocationProperties.cs +++ b/MaLoIdentModels/MaLoIdentModels/DataMarketLocationProperties.cs @@ -6,6 +6,10 @@ namespace MaLoIdentModels; public class DataMarketLocationProperties { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public Guid? Id { get; set; } + [JsonPropertyName("marketLocationProperty")] public MarketLocationProperty MarketLocationProperty { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/DataMeterLocation.cs b/MaLoIdentModels/MaLoIdentModels/DataMeterLocation.cs index 8dcc249..e49e02c 100644 --- a/MaLoIdentModels/MaLoIdentModels/DataMeterLocation.cs +++ b/MaLoIdentModels/MaLoIdentModels/DataMeterLocation.cs @@ -5,6 +5,10 @@ namespace MaLoIdentModels; public class DataMeterLocation { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public System.Guid? Id { get; set; } + [JsonPropertyName("meloId")] public string? MeloId { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/DataNetworkLocation.cs b/MaLoIdentModels/MaLoIdentModels/DataNetworkLocation.cs index 72048c5..75a12c0 100644 --- a/MaLoIdentModels/MaLoIdentModels/DataNetworkLocation.cs +++ b/MaLoIdentModels/MaLoIdentModels/DataNetworkLocation.cs @@ -5,6 +5,10 @@ namespace MaLoIdentModels; public class DataNetworkLocation { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public System.Guid? Id { get; set; } + [JsonPropertyName("neloId")] public string? NeloId { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/DataTechnicalResource.cs b/MaLoIdentModels/MaLoIdentModels/DataTechnicalResource.cs index 0de719f..14014d9 100644 --- a/MaLoIdentModels/MaLoIdentModels/DataTechnicalResource.cs +++ b/MaLoIdentModels/MaLoIdentModels/DataTechnicalResource.cs @@ -4,6 +4,10 @@ namespace MaLoIdentModels; public class DataTechnicalResource { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public System.Guid? Id { get; set; } + [JsonPropertyName("trId")] public string? TrId { get; set; } } diff --git a/MaLoIdentModels/MaLoIdentModels/DataTranche.cs b/MaLoIdentModels/MaLoIdentModels/DataTranche.cs index af52745..61b1997 100644 --- a/MaLoIdentModels/MaLoIdentModels/DataTranche.cs +++ b/MaLoIdentModels/MaLoIdentModels/DataTranche.cs @@ -5,6 +5,10 @@ namespace MaLoIdentModels; public class DataTranche { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public System.Guid? Id { get; set; } + [JsonPropertyName("tranchenId")] public string? TranchenId { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/GeographicCoordinates.cs b/MaLoIdentModels/MaLoIdentModels/GeographicCoordinates.cs index 7300167..d9005c9 100644 --- a/MaLoIdentModels/MaLoIdentModels/GeographicCoordinates.cs +++ b/MaLoIdentModels/MaLoIdentModels/GeographicCoordinates.cs @@ -4,6 +4,10 @@ namespace MaLoIdentModels; public class GeographicCoordinates { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public System.Guid? Id { get; set; } + [JsonPropertyName("latitude")] public string? Latitude { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/IdentificationParameter.cs b/MaLoIdentModels/MaLoIdentModels/IdentificationParameter.cs index e3f02e4..d069059 100644 --- a/MaLoIdentModels/MaLoIdentModels/IdentificationParameter.cs +++ b/MaLoIdentModels/MaLoIdentModels/IdentificationParameter.cs @@ -6,6 +6,10 @@ namespace MaLoIdentModels; public class IdentificationParameter { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public Guid? Id { get; set; } + [JsonConverter(typeof(DateTimeOffsetWithTrailingZConverter))] [JsonPropertyName("identificationDateTime")] public DateTimeOffset IdentificationDateTime { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/IdentificationParameterIdentificationParameterAddress.cs b/MaLoIdentModels/MaLoIdentModels/IdentificationParameterIdentificationParameterAddress.cs index ecc5b03..96f4bdb 100644 --- a/MaLoIdentModels/MaLoIdentModels/IdentificationParameterIdentificationParameterAddress.cs +++ b/MaLoIdentModels/MaLoIdentModels/IdentificationParameterIdentificationParameterAddress.cs @@ -5,6 +5,10 @@ namespace MaLoIdentModels; public class IdentificationParameterIdentificationParameterAddress { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public System.Guid? Id { get; set; } + [JsonPropertyName("name")] public Name? Name { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/IdentificationParameterIdentificationParameterId.cs b/MaLoIdentModels/MaLoIdentModels/IdentificationParameterIdentificationParameterId.cs index 7c7ac79..97e9277 100644 --- a/MaLoIdentModels/MaLoIdentModels/IdentificationParameterIdentificationParameterId.cs +++ b/MaLoIdentModels/MaLoIdentModels/IdentificationParameterIdentificationParameterId.cs @@ -1,10 +1,15 @@ using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; using System.Text.Json.Serialization; namespace MaLoIdentModels; public class IdentificationParameterIdentificationParameterId { + [JsonIgnore] + [Key] + public System.Guid? Id { get; set; } + [JsonPropertyName("maloId")] public string? MaloId { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/LandParcel.cs b/MaLoIdentModels/MaLoIdentModels/LandParcel.cs index 6673250..04a8698 100644 --- a/MaLoIdentModels/MaLoIdentModels/LandParcel.cs +++ b/MaLoIdentModels/MaLoIdentModels/LandParcel.cs @@ -4,6 +4,10 @@ namespace MaLoIdentModels; public class LandParcel { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public System.Guid? Id { get; set; } + [JsonPropertyName("districtName")] public string? DistrictName { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/MarketLocationDateTime.cs b/MaLoIdentModels/MaLoIdentModels/MarketLocationDateTime.cs index 851168d..d6a9f8a 100644 --- a/MaLoIdentModels/MaLoIdentModels/MarketLocationDateTime.cs +++ b/MaLoIdentModels/MaLoIdentModels/MarketLocationDateTime.cs @@ -7,6 +7,10 @@ namespace MaLoIdentModels; public class MarketLocationDateTime { + [JsonIgnore] + [Key] + public Guid? Id { get; set; } + [JsonPropertyName("maloId")] [RegularExpression(@"\d{11}")] public string? MaloId { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/MarketLocationMeasuringPointOperator.cs b/MaLoIdentModels/MaLoIdentModels/MarketLocationMeasuringPointOperator.cs index 710327f..b17f3b6 100644 --- a/MaLoIdentModels/MaLoIdentModels/MarketLocationMeasuringPointOperator.cs +++ b/MaLoIdentModels/MaLoIdentModels/MarketLocationMeasuringPointOperator.cs @@ -7,6 +7,10 @@ namespace MaLoIdentModels; public class MarketLocationMeasuringPointOperator { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public Guid? Id { get; set; } + [JsonPropertyName("marketPartnerId")] public long MarketPartnerId { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/MarketLocationNetworkOperator.cs b/MaLoIdentModels/MaLoIdentModels/MarketLocationNetworkOperator.cs index 6fe394f..d109e15 100644 --- a/MaLoIdentModels/MaLoIdentModels/MarketLocationNetworkOperator.cs +++ b/MaLoIdentModels/MaLoIdentModels/MarketLocationNetworkOperator.cs @@ -7,6 +7,10 @@ namespace MaLoIdentModels; public class MarketLocationNetworkOperator { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public Guid? Id { get; set; } + [JsonPropertyName("marketPartnerId")] public long MarketPartnerId { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/MarketLocationProperties.cs b/MaLoIdentModels/MaLoIdentModels/MarketLocationProperties.cs index cf40bef..45bdecb 100644 --- a/MaLoIdentModels/MaLoIdentModels/MarketLocationProperties.cs +++ b/MaLoIdentModels/MaLoIdentModels/MarketLocationProperties.cs @@ -7,6 +7,10 @@ namespace MaLoIdentModels; public class MarketLocationProperties { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public Guid? Id { get; set; } + [JsonConverter(typeof(JsonStringEnumConverter))] [JsonPropertyName("marketLocationProperty")] public MarketLocationProperty MarketLocationProperty { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/MarketLocationSupplier.cs b/MaLoIdentModels/MaLoIdentModels/MarketLocationSupplier.cs index 758e621..750e153 100644 --- a/MaLoIdentModels/MaLoIdentModels/MarketLocationSupplier.cs +++ b/MaLoIdentModels/MaLoIdentModels/MarketLocationSupplier.cs @@ -7,6 +7,10 @@ namespace MaLoIdentModels; public class MarketLocationSupplier { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public Guid? Id { get; set; } + [JsonPropertyName("marketPartnerId")] public long MarketPartnerId { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/MarketLocationTransmissionSystemOperator.cs b/MaLoIdentModels/MaLoIdentModels/MarketLocationTransmissionSystemOperator.cs index b2e2627..b11c1b3 100644 --- a/MaLoIdentModels/MaLoIdentModels/MarketLocationTransmissionSystemOperator.cs +++ b/MaLoIdentModels/MaLoIdentModels/MarketLocationTransmissionSystemOperator.cs @@ -7,6 +7,10 @@ namespace MaLoIdentModels; public class MarketLocationTransmissionSystemOperator { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public Guid? Id { get; set; } + [JsonPropertyName("marketPartnerId")] public long MarketPartnerId { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/MeterLocationMeasuringPointOperator.cs b/MaLoIdentModels/MaLoIdentModels/MeterLocationMeasuringPointOperator.cs index ea17468..3a6ac47 100644 --- a/MaLoIdentModels/MaLoIdentModels/MeterLocationMeasuringPointOperator.cs +++ b/MaLoIdentModels/MaLoIdentModels/MeterLocationMeasuringPointOperator.cs @@ -7,6 +7,10 @@ namespace MaLoIdentModels; public class MeterLocationMeasuringPointOperator { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public Guid? Id { get; set; } + [JsonPropertyName("marketPartnerId")] public long MarketPartnerId { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/Name.cs b/MaLoIdentModels/MaLoIdentModels/Name.cs index 7a0b942..ff04cae 100644 --- a/MaLoIdentModels/MaLoIdentModels/Name.cs +++ b/MaLoIdentModels/MaLoIdentModels/Name.cs @@ -4,6 +4,10 @@ namespace MaLoIdentModels; public class Name { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public System.Guid? Id { get; set; } + [JsonPropertyName("surnames")] public string? Surnames { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/NetworkLocationMeasuringPointOperator.cs b/MaLoIdentModels/MaLoIdentModels/NetworkLocationMeasuringPointOperator.cs index dcb6a96..5940059 100644 --- a/MaLoIdentModels/MaLoIdentModels/NetworkLocationMeasuringPointOperator.cs +++ b/MaLoIdentModels/MaLoIdentModels/NetworkLocationMeasuringPointOperator.cs @@ -7,6 +7,10 @@ namespace MaLoIdentModels; public class NetworkLocationMeasuringPointOperator { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public Guid? Id { get; set; } + [JsonPropertyName("marketPartnerId")] public long MarketPartnerId { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/ResultNegative.cs b/MaLoIdentModels/MaLoIdentModels/ResultNegative.cs index 896d763..a606d28 100644 --- a/MaLoIdentModels/MaLoIdentModels/ResultNegative.cs +++ b/MaLoIdentModels/MaLoIdentModels/ResultNegative.cs @@ -5,6 +5,10 @@ namespace MaLoIdentModels; public class ResultNegative { + [JsonIgnore] + [Key] + public System.Guid? Id { get; set; } + [JsonPropertyName("decisionTree")] [RegularExpression(@"E_\d{4}")] public string? DecisionTree { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/ResultPositive.cs b/MaLoIdentModels/MaLoIdentModels/ResultPositive.cs index e5e8920..3c3e327 100644 --- a/MaLoIdentModels/MaLoIdentModels/ResultPositive.cs +++ b/MaLoIdentModels/MaLoIdentModels/ResultPositive.cs @@ -6,6 +6,10 @@ namespace MaLoIdentModels; public class ResultPositive { + [JsonIgnore] + [Key] + public System.Guid? Id { get; set; } + [JsonPropertyName("dataMarketLocation")] public DataMarketLocation? DataMarketLocation { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/SrMarketPartner.cs b/MaLoIdentModels/MaLoIdentModels/SrMarketPartner.cs index fb0a8eb..626ec6d 100644 --- a/MaLoIdentModels/MaLoIdentModels/SrMarketPartner.cs +++ b/MaLoIdentModels/MaLoIdentModels/SrMarketPartner.cs @@ -7,6 +7,10 @@ namespace MaLoIdentModels; public class SrMarketPartner { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public Guid? Id { get; set; } + [JsonPropertyName("marketPartnerId")] public long MarketPartnerId { get; set; } diff --git a/MaLoIdentModels/MaLoIdentModels/TrancheSupplier.cs b/MaLoIdentModels/MaLoIdentModels/TrancheSupplier.cs index 4ca94ec..8eb5592 100644 --- a/MaLoIdentModels/MaLoIdentModels/TrancheSupplier.cs +++ b/MaLoIdentModels/MaLoIdentModels/TrancheSupplier.cs @@ -5,6 +5,10 @@ namespace MaLoIdentModels; public class TrancheSupplier { + [JsonIgnore] + [System.ComponentModel.DataAnnotations.Key] + public Guid? Id { get; set; } + [JsonPropertyName("marketPartnerId")] public long MarketPartnerId { get; set; }