public int InsertCTHoaDonNhap(CTHoaDonNhap ct) { try { db.CTHoaDonNhaps.InsertOnSubmit(ct); db.SubmitChanges(); } catch { return -1; } return 1; }
partial void DeleteCTHoaDonNhap(CTHoaDonNhap instance);
partial void UpdateCTHoaDonNhap(CTHoaDonNhap instance);
partial void InsertCTHoaDonNhap(CTHoaDonNhap instance);
private void detach_CTHoaDonNhaps(CTHoaDonNhap entity) { this.SendPropertyChanging(); entity.Product = null; }
private void attach_CTHoaDonNhaps(CTHoaDonNhap entity) { this.SendPropertyChanging(); entity.HoaDonNhap = this; }