This commit is contained in:
@@ -40,7 +40,7 @@ namespace AyaNova.Models
|
||||
|
||||
//relations
|
||||
//https://docs.microsoft.com/en-us/ef/core/modeling/relationships#other-relationship-patterns
|
||||
[JsonIgnore]
|
||||
[JsonIgnore]//hide from being returned (as null anyway) with User object in routes
|
||||
public UserOptions UserOptions { get; set; }
|
||||
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace AyaNova.Models
|
||||
|
||||
//relations
|
||||
//https://docs.microsoft.com/en-us/ef/core/modeling/relationships#other-relationship-patterns
|
||||
[JsonIgnore]
|
||||
[JsonIgnore]//hide from being returned (as null anyway) in routes
|
||||
public User User { get; set; }
|
||||
[Required]
|
||||
public long UserId { get; set; }//will be auto-set by EF due to relationship defined
|
||||
|
||||
Reference in New Issue
Block a user