Exemple #1
0
        private void TSec(string tema_adi)
        {
            Alfa.AlfaDBEntities dbContext = new AlfaDBEntities();
            Tema tema = dbContext.Temas.Where(c => c.id == 1).FirstOrDefault();

            tema.TemaAdi = tema_adi;
            dbContext.SaveChanges();
        }
Exemple #2
0
        private void NotGuncelle(int not_id, string baslik, string icerik)
        {
            Alfa.AlfaDBEntities dbContext = new AlfaDBEntities();
            Notlar not = dbContext.Notlars.Where(c => c.NotID == not_id).FirstOrDefault();

            not.NotBaslik = baslik;
            not.NotIcerik = icerik;
            dbContext.SaveChanges();
        }
Exemple #3
0
        public void RehbereEkle(string kisi, string tel)
        {
            AlfaDBEntities dbContext = new AlfaDBEntities();
            TelefonRehberi tr        = new TelefonRehberi();

            tr.KisiAdiSoyadi   = kisi;
            tr.TelefonNumarasi = tel;
            dbContext.TelefonRehberis.Add(tr);
            dbContext.SaveChanges();
        }
Exemple #4
0
        public void KEkle(string kullanici_adi, string sifre)
        {
            Alfa.AlfaDBEntities dbContext = new AlfaDBEntities();
            Kullanici           kullanici = new Kullanici();

            kullanici.KullaniciAdi   = kullanici_adi;
            kullanici.KullaniciSifre = sifre;
            dbContext.Kullanicis.Add(kullanici);
            dbContext.SaveChanges();
        }
Exemple #5
0
        public void NotEkle(string baslik, string icerik)
        {
            Alfa.AlfaDBEntities dbContext = new AlfaDBEntities();
            Notlar not = new Notlar();

            not.NotBaslik = baslik;
            not.NotIcerik = icerik;
            dbContext.Notlars.Add(not);
            dbContext.SaveChanges();
        }