private void Preserve() { var indexByMonth = new SVIndexByMonth { Id = GetCurrentId(), SVIndices = this.SVIndices }; db.Preserve(indexByMonth); }
public static void Preserve(this MongoDatabase db, SVIndexByMonth indexByMonth) { db.GetCollection<SVIndexByMonth>("SVIndexByMonth").Save(indexByMonth); }