This commit is contained in:
2019-05-07 14:01:23 +01:00
parent 042c3c873a
commit d3e57ba2d1
26 changed files with 128 additions and 131 deletions

View File

@ -26,9 +26,9 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Chat
{
public class ChatConnection : Abstract.Streaming.IChatConnection<ChatRoomPresence>
public class ChatConnection
{
[JsonIgnore,Required]
[Required]
public string ApplicationUserId { get; set; }
[ForeignKey("ApplicationUserId"),JsonIgnore]

View File

@ -12,6 +12,12 @@ namespace Yavsc.Models.Relationship
[Required()]
public string OwnerId { get; set; }
public string Name { get; set; }
public string EMail { get; set; }
public PostalAddress PostalAddress { get; set; }
[ForeignKeyAttribute("OwnerId"),NotMapped]
public virtual ApplicationUser Owner { get; set; }