示例#1
0
        public long insert(Mhs mhs)
        {
            db.Open();
            var data = db.conn.Insert <Mhs>(mhs);

            db.Close();
            return(data);
        }
示例#2
0
        public bool update(Mhs mhs)
        {
            db.Open();
            var feedback = db.conn.Update(mhs);

            db.Close();
            return(feedback);
        }
示例#3
0
        public bool delete(Mhs mhs)
        {
            db.Open();
            var data = db.conn.Delete <Mhs>(mhs);

            db.Close();
            return(data);
        }