Standardize string property initialization to string.Empty
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.
This commit is contained in:
@@ -4,7 +4,7 @@ namespace DbFirst.Application.Catalogs;
|
||||
|
||||
public class CatalogWriteDto
|
||||
{
|
||||
public string CatTitle { get; set; } = null!;
|
||||
public string CatString { get; set; } = null!;
|
||||
public string CatTitle { get; set; } = string.Empty;
|
||||
public string CatString { get; set; } = string.Empty;
|
||||
public CatalogUpdateProcedure UpdateProcedure { get; set; } = CatalogUpdateProcedure.Update;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user