Пример #1
0
 //添加聊天信息
 public void AddMessage(Message msg)
 {
     DatabaseMessage newMessage = new DatabaseMessage
     {
         Sender = msg.Sender,
         Receiver = msg.Receiver,
         Time = msg.SendTime,
         Type = msg.Type.ToString(),
         Content = msg.Content
     };
     dataContext.DatabaseMessage.InsertOnSubmit(newMessage);
     dataContext.SubmitChanges();
 }
Пример #2
0
 partial void DeleteDatabaseMessage(DatabaseMessage instance);
Пример #3
0
 partial void UpdateDatabaseMessage(DatabaseMessage instance);
Пример #4
0
 partial void InsertDatabaseMessage(DatabaseMessage instance);
Пример #5
0
 partial void DeleteDatabaseMessage(DatabaseMessage instance);
Пример #6
0
 partial void UpdateDatabaseMessage(DatabaseMessage instance);
Пример #7
0
 partial void InsertDatabaseMessage(DatabaseMessage instance);