Exemple #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();
 }
Exemple #2
0
 partial void DeleteDatabaseMessage(DatabaseMessage instance);
Exemple #3
0
 partial void UpdateDatabaseMessage(DatabaseMessage instance);
Exemple #4
0
 partial void InsertDatabaseMessage(DatabaseMessage instance);
 partial void DeleteDatabaseMessage(DatabaseMessage instance);
 partial void UpdateDatabaseMessage(DatabaseMessage instance);
 partial void InsertDatabaseMessage(DatabaseMessage instance);