This commit is contained in:
Paul Schneider 2019-05-07 14:01:23 +01:00
commit 02160f1eaf
26 changed files with 129 additions and 132 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; }