Initialize properties with default values in Interaction, Prospect, and User classes

This commit is contained in:
a.beging@eas-solutions.de
2026-04-23 15:19:04 +02:00
parent aba2007481
commit dc9276e3e9
3 changed files with 9 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ namespace FoodsharingSiegen.Contracts.Entity
/// <summary>
/// Gets or sets the value of the interactions (ab)
/// </summary>
public IList<Interaction> Interactions { get; set; }
public IList<Interaction> Interactions { get; set; } = new List<Interaction>();
/// <summary>
/// Gets or sets the value of the memo (ab)
@@ -51,7 +51,7 @@ namespace FoodsharingSiegen.Contracts.Entity
/// <summary>
/// Gets or sets the value of the name (ab)
/// </summary>
public string Name { get; set; }
public string Name { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the state of the record within the system.