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:
@@ -3,9 +3,9 @@ namespace DbFirst.Application.Catalogs;
|
|||||||
public class CatalogReadDto
|
public class CatalogReadDto
|
||||||
{
|
{
|
||||||
public int Guid { get; set; }
|
public int Guid { get; set; }
|
||||||
public string CatTitle { get; set; } = null!;
|
public string CatTitle { get; set; } = String.Empty;
|
||||||
public string CatString { get; set; } = null!;
|
public string CatString { get; set; } = String.Empty;
|
||||||
public string AddedWho { get; set; } = null!;
|
public string AddedWho { get; set; } = String.Empty;
|
||||||
public DateTime AddedWhen { get; set; }
|
public DateTime AddedWhen { get; set; }
|
||||||
public string? ChangedWho { get; set; }
|
public string? ChangedWho { get; set; }
|
||||||
public DateTime? ChangedWhen { get; set; }
|
public DateTime? ChangedWhen { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user