public void Store(ILogEventInfoEntity entity) { this.GetCollection <ILogEventInfoEntity>().InsertOne(entity); }
public void Update(ILogEventInfoEntity entity, string id) { FilterDefinition <ILogEventInfoEntity> filter = Builders <ILogEventInfoEntity> .Filter.Eq("Id", id); this.GetCollection <ILogEventInfoEntity>().ReplaceOne(filter, entity); }