Set string defaults to String.Empty in CatalogReadDto

Changed default values of CatTitle, CatString, and AddedWho from null! to String.Empty to prevent potential null reference issues.
This commit is contained in:
OlgunR
2026-04-21 17:01:44 +02:00
parent b35c167648
commit 1b4205219f

View File

@@ -3,9 +3,9 @@ namespace DbFirst.Application.Catalogs;
public class CatalogReadDto
{
public int Guid { get; set; }
public string CatTitle { get; set; } = null!;
public string CatString { get; set; } = null!;
public string AddedWho { get; set; } = null!;
public string CatTitle { get; set; } = String.Empty;
public string CatString { get; set; } = String.Empty;
public string AddedWho { get; set; } = String.Empty;
public DateTime AddedWhen { get; set; }
public string? ChangedWho { get; set; }
public DateTime? ChangedWhen { get; set; }