Example #1
0
        public IActionResult insert2()
        {
            bs.dbQuery("test", "hika0", "insert into hika00(title)values(@title:hika00.title@)");
            bs.dbQuery("test", "hika1", "select id, title from hika00");
            var r      = bs.valiResult();
            var result = bs.dbResult <List <Object[]> >();

            bs.db(false, "test", (db) => {
                db.exec("hika0", "title", Guid.NewGuid() + "");
                result = db.select <List <Object[]> >("hika1");
                return(true);
            });
            return(Json(new { data = result.result }));
        }