コード例 #1
0
ファイル: Il_DML.cs プロジェクト: legendsalper/SoBelediyeV1.1
 public bool il_Update(Il usr)
 {
     using (SobelediyeEntities sb = new SobelediyeEntities())
     {
     }
     return(true);
 }
コード例 #2
0
 public bool adres_Update(Adres usr)
 {
     using (SobelediyeEntities sb = new SobelediyeEntities())
     {
     }
     return(true);
 }
コード例 #3
0
 public bool Kullanici_Update(Kullanici usr)
 {
     using (SobelediyeEntities sb = new SobelediyeEntities())
     {
         //sb.Kullanici.
     }
     return(true);
 }
コード例 #4
0
 public bool ilce_Delete(Ilce usr)
 {
     using (SobelediyeEntities sb = new SobelediyeEntities())
     {
         Ilce ilcec = new Ilce();
         ilcec.Ilce_ID = usr.Ilce_ID;
         ilcec.Ilce1   = usr.Ilce1;
         sb.Ilce.Remove(ilcec);
         sb.SaveChanges();
     }
     return(true);
 }
コード例 #5
0
ファイル: Il_DML.cs プロジェクト: legendsalper/SoBelediyeV1.1
 public bool il_Delete(Il usr)
 {
     using (SobelediyeEntities sb = new SobelediyeEntities())
     {
         Il il = new Il();
         il.Il_ID        = usr.Il_ID;
         il.Il1          = usr.Il1;
         il.Ilce_ID      = usr.Ilce_ID;
         il.Kullanici_ID = usr.Kullanici_ID;
         sb.Il.Remove(il);
         sb.SaveChanges();
     }
     return(true);
 }
コード例 #6
0
 public bool adres_Delete(Adres usr)
 {
     using (SobelediyeEntities sb = new SobelediyeEntities())
     {
         Adres adres = new Adres();
         adres.AdresID      = usr.AdresID;
         adres.Sokak        = usr.Sokak;
         adres.Mahalle      = usr.Mahalle;
         adres.Koy          = usr.Koy;
         adres.Tarif        = usr.Tarif;
         adres.Kullanici_ID = usr.Kullanici_ID;
         adres.Il_ID        = usr.Il_ID;
         sb.Adres.Remove(adres);
         sb.SaveChanges();
     }
     return(true);
 }
コード例 #7
0
 public bool Kullanici_Delete(Kullanici usr)
 {
     using (SobelediyeEntities sb = new SobelediyeEntities())
     {
         Kullanici kl = new Kullanici();
         kl.Kullanici_ID = usr.Kullanici_ID;
         kl.Ad           = usr.Ad;
         kl.Soyad        = usr.Soyad;
         kl.Email        = usr.Email;
         kl.Telefon      = usr.Telefon;
         kl.Adres        = usr.Adres;
         kl.EvrakID      = usr.EvrakID;
         kl.YorumID      = usr.YorumID;
         kl.Istek_ID     = usr.Istek_ID;
         sb.Kullanici.Remove(kl);
         sb.SaveChanges();
     }
     return(true);
 }
コード例 #8
0
 public bool Kullanici_Insert(Kullanici usr) //insert update delete'e yapacan tüm bunları try cath'lerin de olacak işin zor
 {
     using (SobelediyeEntities sb = new SobelediyeEntities())
     {
         Kullanici kl = new Kullanici();
         kl.Kullanici_ID = usr.Kullanici_ID;
         kl.Ad           = usr.Ad;
         kl.Soyad        = usr.Soyad;
         kl.Email        = usr.Email;
         kl.Telefon      = usr.Telefon;
         kl.Adres        = usr.Adres;
         kl.EvrakID      = usr.EvrakID;
         kl.YorumID      = usr.YorumID;
         kl.Istek_ID     = usr.Istek_ID;
         sb.Kullanici.Add(kl);
         sb.SaveChanges();
     }
     return(true);
 }