Пример #1
0
        public void InsertTest()
        {
            BoxDBAdapter db = GetBoxDBAdapter();

            BoxDBAdapterTestVO[] voList = new BoxDBAdapterTestVO[3]
            {
                new BoxDBAdapterTestVO((int)db.MakeNewId(), "test1", 1f),
                new BoxDBAdapterTestVO((int)db.MakeNewId(), "测试2", 2f),
                new BoxDBAdapterTestVO((int)db.MakeNewId(), "test3", 3f)
            };
            bool success = db.Insert(tableName, voList);

            db.Dispose();
            Assert.IsTrue(success);
        }