Example #1
0
 public static void Add(User User)
 {
     using (UyeKayitDbBaglan db = new UyeKayitDbBaglan())
     {
         db.User.Add(User);
         db.SaveChanges();
     }
 }
Example #2
0
 public static void Add(PType PType)
 {
     using (UyeKayitDbBaglan db = new UyeKayitDbBaglan())
     {
         db.PType.Add(PType);
         db.SaveChanges();
     }
 }
Example #3
0
 public static void Add(Person Person)
 {
     using (UyeKayitDbBaglan db = new UyeKayitDbBaglan())
     {
         db.Person.Add(Person);
         db.SaveChanges();
     }
 }