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

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

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

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