示例#1
0
 public void UpdateMessage(Message message)
 {
     context.Entry(message).State = EntityState.Modified;
 }
示例#2
0
 public void InsertMessage(Message message)
 {
     context.Messages.Add(message);
 }