-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChatMessage.cs
35 lines (28 loc) · 948 Bytes
/
ChatMessage.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using DomainClasses.User;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.RegularExpressions;
namespace DomainClasses.Chat
{
public class ChatMessage
{
public ChatMessage()
{
}
[Key]
public int Chat_Id { get; set; }
public DateTime Date { get; set; }
public string Message { get; set; }
public bool Type { get; set; }
public ChatGroup ChatGroup { get; set; }
public int Group_Id { get; set; }
[ForeignKey("UserId_1")]
public ApplicationUser ApplicationUser_UserId1 { get; set; }
public string UserId_1 { get; set; }
[ForeignKey("UserId_2")]
public ApplicationUser ApplicationUser_UserId2 { get; set; }
public string UserId_2 { get; set; }
public bool IsNew{ get; set; }
}
}