Пример #1
0
        public int remove1datafromCongTrinh(CongTrinh ct)
        {
            var tmp = db.CongTrinhs.Where(x => x.MACT == ct.MACT).FirstOrDefault();

            if (tmp == null)
            {
                return(0);
            }
            db.CongTrinhs.DeleteOnSubmit(tmp);
            db.SubmitChanges();
            return(1);
        }
Пример #2
0
        public int insertCt(CongTrinh ct)
        {
            var tmp = db.CongTrinhs.Where(x => x.MACT == ct.MACT).FirstOrDefault();

            if (tmp != null)
            {
                return(0);
            }
            db.CongTrinhs.InsertOnSubmit(ct);
            db.SubmitChanges();
            return(1);;
        }
Пример #3
0
 partial void UpdateCongTrinh(CongTrinh instance);
Пример #4
0
 partial void DeleteCongTrinh(CongTrinh instance);
Пример #5
0
 partial void InsertCongTrinh(CongTrinh instance);