示例#1
0
 public ChatRoomMessageViewModel(ChatRoomMessageDAL U)
 {
     _Id                 = U.ChatRoomMessages.Id;
     _Message            = U.ChatRoomMessages.Message;
     _MsgDate            = U.ChatRoomMessages.MsgDate;
     _SenderUser_Id      = U.ChatRoomMessages.SenderUser_Id;
     _RelationRequest_Id = U.ChatRoomMessages.RelationRequest_Id;
     _Entity_Order       = U.ChatRoomMessages.Entity_Order;
     _IMG                = PersonDAL.GetPersonPhotoByUserId(U.ChatRoomMessages.SenderUser_Id).Persons.Photo1;
     _SenderFullName     = PersonDAL.GetPersonPhotoByUserId(U.ChatRoomMessages.SenderUser_Id).Persons.FullName;
 }