public bool insertCTSanPham(string msp, string xs, string mausac, string kieudang, string chatlieu, string mota) { try { ct_sanpham ct = new ct_sanpham(); ct.masp = msp; ct.xuatxu = xs; ct.mausac = mausac; ct.kieudang = kieudang; ct.chatlieu = chatlieu; ct.mota = mota; db.ct_sanphams.InsertOnSubmit(ct); db.SubmitChanges(); return true; } catch { return false; } }
partial void Deletect_sanpham(ct_sanpham instance);
partial void Updatect_sanpham(ct_sanpham instance);
partial void Insertct_sanpham(ct_sanpham instance);
private void detach_ct_sanphams(ct_sanpham entity) { this.SendPropertyChanging(); entity.sanpham = null; }
private void attach_ct_sanphams(ct_sanpham entity) { this.SendPropertyChanging(); entity.sanpham = this; }