Пример #1
0
 public async Task <MetaItemModel> SelectById(MetaItemKey id)
 {
     return(await _metaCollection.Find(f => f.Id.Type == id.Type && f.Id.Value == id.Value).SingleOrDefaultAsync());
 }
Пример #2
0
 public async Task DeleteById(MetaItemKey id)
 {
     await _metaCollection.DeleteOneAsync(f => f.Id.Type == id.Type && f.Id.Value == id.Value);
 }