Example #1
0
        public void TestRemove()
        {
            long count = MongoEntity.RemoveAll <Student>(e => e.Name == "hyf");
            var  ret   = MongoEntity.Select <Student>(s => s.Name == "hyf").Count();

            Assert.Greater(count, ret);
        }
Example #2
0
        public void Clear()
        {
            MongoEntity.RemoveAll <Student>();
            MongoEntity.RemoveAll <Teacher>();
            MongoEntity.RemoveAll <Grade>();
            MongoEntity.RemoveAll <School>();
            MongoEntity.RemoveAllFiles <MyFile>();

            MongoDBRepository.UnregisterDBContext <TestDBContext>();
        }
Example #3
0
 public void Remove()
 {
     MongoEntity.RemoveAll <Passport>();
     MongoEntity.RemoveAll <Profile>();
 }