예제 #1
0
        public void Save()
        {
            var collection = DatabaseHelpers.GetSeedCollection();
            var filter     = Builders <Evolution> .Filter.Eq(s => s.Id, this.Id);

            collection.ReplaceOne(filter, this);
        }
예제 #2
0
        public void Insert()
        {
            var collection = DatabaseHelpers.GetSeedCollection();

            collection.InsertOne(this);
        }