public int insertCTDonDatHang(CTDonDatHang ctddh) { try { db.CTDonDatHangs.InsertOnSubmit(ctddh); db.SubmitChanges(); } catch { return -1; } return 1; }
partial void DeleteCTDonDatHang(CTDonDatHang instance);
partial void UpdateCTDonDatHang(CTDonDatHang instance);
partial void InsertCTDonDatHang(CTDonDatHang instance);
private void detach_CTDonDatHangs(CTDonDatHang entity) { this.SendPropertyChanging(); entity.Product = null; }
private void attach_CTDonDatHangs(CTDonDatHang entity) { this.SendPropertyChanging(); entity.DonDatHang = this; }