示例#1
0
        private void btnluu_Click(object sender, EventArgs e)
        {
            db_HoaDon hd = new db_HoaDon
            {
                MaHD    = txtmhd.Text,
                MaKH    = int.Parse(cmbtkh.SelectedValue.ToString()),
                MaNV    = 1,
                NgayBan = dtpnd.Value
            };

            db.db_HoaDons.InsertOnSubmit(hd);
            db.SubmitChanges();
            lblmhd.Text = txtmhd.Text;
        }
示例#2
0
 private void detach_db_HoaDons(db_HoaDon entity)
 {
     this.SendPropertyChanging();
     entity.db_KhachHang = null;
 }
示例#3
0
 partial void Deletedb_HoaDon(db_HoaDon instance);
示例#4
0
 partial void Updatedb_HoaDon(db_HoaDon instance);
示例#5
0
 partial void Insertdb_HoaDon(db_HoaDon instance);
示例#6
0
 private void attach_db_HoaDons(db_HoaDon entity)
 {
     this.SendPropertyChanging();
     entity.db_User = this;
 }