Esempio n. 1
0
        public ActionResult <IList <TextEntity> > GetAsync()
        {
            DbBase db = new DbBase();
            var    t  = db.AddAsync <TextEntity>(
                new TextEntity {
                Name = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss")
            }).Result;
            var re = db.SqlQuery <TextEntity>("select * from Text order by id desc");

            return(re);
        }