private void btnkaydet_Click(object sender, EventArgs e) { if (cariDal.AddOrUpdate(context, _entity)) { cariDal.Save(context); this.Close(); } }
private void btnKaydet_Click(object sender, EventArgs e) { if (cariDAL.AddOrUpdate(context, _entity)) { kodolustur.KodArttirma(); cariDAL.Save(context); this.Close(); } }
private void btnKaydet_Click(object sender, EventArgs e) { if (_cariDal.AddOrUpdate(_context, _entity)) { _cariDal.Save(_context); saved = true; this.Close(); } }
private void btnKaydet_Click(object sender, EventArgs e) { if (cariDal.AddOrUpdate(context, _entity)) { kodOlustur.KodArttirma(); cariDal.Save(context); saved = true; MessageBox.Show("Kayıt İşlemi Tamamlanmıştır."); this.Close(); } cariDal.Save(context); }
private void Form1_Load(object sender, EventArgs e) { var context = new NetSatisContext(); var cariDal = new CariDAL(); var entity = new Entities.Tables.Cari { CariKodu = "123456789", CariAdi = "Can Özaytekin", YetkiliKisi = "Can", FaturaUnvani = "Özaytekin" }; cariDal.AddOrUpdate(context, entity); cariDal.Save(context); }