This commit is contained in:
@@ -30,8 +30,8 @@ namespace AyaNova.Models
|
||||
//https://docs.microsoft.com/en-us/ef/core/modeling/relationships#other-relationship-patterns
|
||||
[JsonIgnore]//hide from being returned (as null anyway) with User object in routes
|
||||
public User User { get; set; }
|
||||
[Required]
|
||||
public long UserId { get; set; }
|
||||
|
||||
public long? UserId { get; set; }
|
||||
|
||||
public Widget()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user