Initialize properties with default values in Interaction, Prospect, and User classes
This commit is contained in:
@@ -59,7 +59,7 @@ namespace FoodsharingSiegen.Contracts.Entity
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the value of the prospect (ab)
|
/// Gets or sets the value of the prospect (ab)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Prospect Prospect { get; set; }
|
public Prospect Prospect { get; set; } = null!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the value of the prospect id (ab)
|
/// Gets or sets the value of the prospect id (ab)
|
||||||
@@ -74,7 +74,7 @@ namespace FoodsharingSiegen.Contracts.Entity
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the value of the user (ab)
|
/// Gets or sets the value of the user (ab)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public User User { get; set; }
|
public User User { get; set; } = null!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the value of the user id (ab)
|
/// Gets or sets the value of the user id (ab)
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace FoodsharingSiegen.Contracts.Entity
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the value of the interactions (ab)
|
/// Gets or sets the value of the interactions (ab)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public IList<Interaction> Interactions { get; set; }
|
public IList<Interaction> Interactions { get; set; } = new List<Interaction>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the value of the memo (ab)
|
/// Gets or sets the value of the memo (ab)
|
||||||
@@ -51,7 +51,7 @@ namespace FoodsharingSiegen.Contracts.Entity
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the value of the name (ab)
|
/// Gets or sets the value of the name (ab)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Name { get; set; }
|
public string Name { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the state of the record within the system.
|
/// Gets or sets the state of the record within the system.
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace FoodsharingSiegen.Contracts.Entity
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the value of the encrypted password (ab)
|
/// Gets or sets the value of the encrypted password (ab)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string EncryptedPassword { get; set; }
|
public string EncryptedPassword { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the value of the force logout (ab)
|
/// Gets or sets the value of the force logout (ab)
|
||||||
@@ -30,7 +30,7 @@ namespace FoodsharingSiegen.Contracts.Entity
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the value of the groups (ab)
|
/// Gets or sets the value of the groups (ab)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Groups { get; set; }
|
public string Groups { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the value of the groups list (ab)
|
/// Gets or sets the value of the groups list (ab)
|
||||||
@@ -57,12 +57,12 @@ namespace FoodsharingSiegen.Contracts.Entity
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the value of the interactions (ab)
|
/// Gets or sets the value of the interactions (ab)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public IList<Interaction> Interactions { get; set; }
|
public IList<Interaction> Interactions { get; set; } = new List<Interaction>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the value of the mail (ab)
|
/// Gets or sets the value of the mail (ab)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Mail { get; set; }
|
public string Mail { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the value of the memo (ab)
|
/// Gets or sets the value of the memo (ab)
|
||||||
@@ -72,7 +72,7 @@ namespace FoodsharingSiegen.Contracts.Entity
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the value of the name (ab)
|
/// Gets or sets the value of the name (ab)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Name { get; set; }
|
public string Name { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the value of the network (ab)
|
/// Gets or sets the value of the network (ab)
|
||||||
|
|||||||
Reference in New Issue
Block a user