From 1b4205219f599cce257b6a33f2a1aa83f34c94d0 Mon Sep 17 00:00:00 2001 From: OlgunR Date: Tue, 21 Apr 2026 17:01:44 +0200 Subject: [PATCH] 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. --- DbFirst.Application/Catalogs/CatalogReadDto.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DbFirst.Application/Catalogs/CatalogReadDto.cs b/DbFirst.Application/Catalogs/CatalogReadDto.cs index 1063fce..260e0da 100644 --- a/DbFirst.Application/Catalogs/CatalogReadDto.cs +++ b/DbFirst.Application/Catalogs/CatalogReadDto.cs @@ -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; }