fixe l'accès web au chat privé

This commit is contained in:
Paul Schneider 2016-11-03 14:52:17 +01:00
commit 7d0625f44d
18 changed files with 2400 additions and 101 deletions

View file

@ -1,8 +1,20 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
using Yavsc.Models;
namespace Yavsc.Model.Chat
{
public class Connection
{
public string ConnectionID { get; set; }
[JsonIgnore]
public string ApplicationUserId { get; set; }
[ForeignKey("ApplicationUserId"),JsonIgnore]
public virtual ApplicationUser Owner { get; set; }
[Key]
public string ConnectionId { get; set; }
public string UserAgent { get; set; }
public bool Connected { get; set; }
}