Replaced String.Empty and null! with string.Empty for string properties in CatalogReadDto, CatalogWriteDto, and VwmyCatalog classes. This ensures consistent initialization and helps prevent null reference issues across the codebase.
13 lines
413 B
C#
13 lines
413 B
C#
namespace DbFirst.BlazorWebApp.Models;
|
|
|
|
public class CatalogReadDto
|
|
{
|
|
public int Guid { get; set; }
|
|
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; }
|
|
}
|