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>
|
||||
/// Gets or sets the value of the prospect (ab)
|
||||
/// </summary>
|
||||
public Prospect Prospect { get; set; }
|
||||
public Prospect Prospect { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the prospect id (ab)
|
||||
@@ -74,7 +74,7 @@ namespace FoodsharingSiegen.Contracts.Entity
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the user (ab)
|
||||
/// </summary>
|
||||
public User User { get; set; }
|
||||
public User User { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the user id (ab)
|
||||
|
||||
Reference in New Issue
Block a user