Beispiel #1
0
 private void btnkaydet_Click(object sender, EventArgs e)
 {
     if (cariDal.AddOrUpdate(context, _entity))
     {
         cariDal.Save(context);
         this.Close();
     }
 }
Beispiel #2
0
 private void btnKaydet_Click(object sender, EventArgs e)
 {
     if (cariDAL.AddOrUpdate(context, _entity))
     {
         kodolustur.KodArttirma();
         cariDAL.Save(context);
         this.Close();
     }
 }
Beispiel #3
0
 private void btnKaydet_Click(object sender, EventArgs e)
 {
     if (_cariDal.AddOrUpdate(_context, _entity))
     {
         _cariDal.Save(_context);
         saved = true;
         this.Close();
     }
 }
Beispiel #4
0
 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);
 }
Beispiel #5
0
        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);
        }