コード例 #1
0
 public async Task UpdateMessageAsync(EmailMessage message)
 {
     await this.Collection.FindOneAndReplaceAsync(document => document.Id.Equals(message.Id.ToString()),
                                                  message.AsDocument());
 }
コード例 #2
0
 public async Task InsertMessageAsync(EmailMessage message)
 {
     await this.Collection.InsertOneAsync(message.AsDocument());
 }