Exemple #1
0
        public void multiDatabase()
        {
            TOtherDB obj = new TOtherDB {
                Name = "sunwen", Age = 18
            };

            obj.insert();

            TOtherDB objNew = TOtherDB.find("").first();

            Assert.IsNotNull(objNew);
            Assert.AreEqual("sunwen", objNew.Name);
        }
Exemple #2
0
        public void multiDatabase()
        {
            TOtherDB obj = new TOtherDB { Name = "sunwen", Age = 18 };
            obj.insert();

            TOtherDB objNew = TOtherDB.find( "" ).first();
            Assert.IsNotNull( objNew );
            Assert.AreEqual( "sunwen", objNew.Name );
        }