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

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

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

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