Пример #1
0
        private void btnKaydet_Click(object sender, EventArgs e)
        {
            Caridal.AddOrUpdate(context, _entity);

            Caridal.save(context);
            this.Close();
        }
Пример #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            MGsTOKContex contex = new MGsTOKContex();

            CariDal cd = new CariDal();

            Cari entity = new Cari()
            {
                CariKodu     = "123456",
                CariAdi      = "Deneme",
                YetkiliKisi  = "Erhan",
                FaturaUnvani = "deneem"
            };

            cd.AddOrUpdate(contex, entity);
            cd.save(contex);
        }