This commit is contained in:
2020-01-23 23:59:32 +00:00
parent b14afa1726
commit 8edeae4c04
4 changed files with 15 additions and 15 deletions

View File

@@ -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()
{