This commit is contained in:
@@ -11,19 +11,25 @@ namespace AyaNova.Models
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
[Required]
|
||||
public long OwnerId { get; set; }
|
||||
[Required]
|
||||
public long UserId { get; set; }
|
||||
|
||||
//-------------
|
||||
public string EmailAddress { get; set; }
|
||||
public decimal TimeZoneOffset { get; set; }
|
||||
public int UiColor { get; set; }
|
||||
|
||||
public UserOptions(long userId, long ownerId)
|
||||
//relations
|
||||
//https://docs.microsoft.com/en-us/ef/core/modeling/relationships#other-relationship-patterns
|
||||
public User User { get; set; }
|
||||
[Required]
|
||||
public long UserId { get; set; }//will be auto-set by EF due to relationship defined
|
||||
|
||||
|
||||
public UserOptions(long ownerId)
|
||||
{
|
||||
UserId=userId;
|
||||
TimeZoneOffset=0;
|
||||
UiColor=0;
|
||||
OwnerId=ownerId;
|
||||
|
||||
TimeZoneOffset = 0;
|
||||
UiColor = 0;
|
||||
OwnerId = ownerId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user