From f69f323542409a4d20ba1dbc9eb0a592bbeaf775 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 15 Dec 2025 14:03:15 +0100 Subject: [PATCH] Make ProfileView string properties nullable Changed several ProfileView properties (Type, Mandantor, ProfileName, LogLevel, Language, AddedWho) from non-nullable strings with default values to nullable strings. This allows these fields to be null instead of defaulting to an empty string. --- src/ReC.Domain/Entities/ProfileView.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ReC.Domain/Entities/ProfileView.cs b/src/ReC.Domain/Entities/ProfileView.cs index 936891b..c54f896 100644 --- a/src/ReC.Domain/Entities/ProfileView.cs +++ b/src/ReC.Domain/Entities/ProfileView.cs @@ -8,23 +8,23 @@ public record ProfileView public byte TypeId { get; init; } - public string Type { get; init; } = string.Empty; + public string? Type { get; init; } - public string Mandantor { get; init; } = string.Empty; + public string? Mandantor { get; init; } - public string ProfileName { get; init; } = string.Empty; + public string? ProfileName { get; init; } public string? Description { get; init; } public byte LogLevelId { get; init; } - public string LogLevel { get; init; } = string.Empty; + public string? LogLevel { get; init; } public short LanguageId { get; init; } - public string Language { get; init; } = string.Empty; + public string? Language { get; init; } - public string AddedWho { get; init; } = string.Empty; + public string? AddedWho { get; init; } public DateTime AddedWhen { get; init; } @@ -37,4 +37,4 @@ public record ProfileView public DateTime? LastRun { get; init; } public string? LastResult { get; init; } -} +} \ No newline at end of file