public void saveHistory(string crMa, string crTen, KhachHang kh, DoiTac dt, decimal Tien) { var gd = new GiaoDich() { MaGD = crMa, MaKH = kh.MaKH, MaDT = dt.MaDT, SoTien = Tien, TenGD = crTen, ThoiGian = DateTime.Now, PhiGD = fee(Tien) }; bankdt.GiaoDiches.InsertOnSubmit(gd); bankdt.SubmitChanges(); }
private void detach_GiaoDiches(GiaoDich entity) { this.SendPropertyChanging(); entity.DoiTac = null; }
private void attach_GiaoDiches(GiaoDich entity) { this.SendPropertyChanging(); entity.DoiTac = this; }
partial void DeleteGiaoDich(GiaoDich instance);
partial void UpdateGiaoDich(GiaoDich instance);
partial void InsertGiaoDich(GiaoDich instance);