コード例 #1
0
        public int kisiEkleManagement(KisiselBilgiler kisi)
        {
            _db.Entry(kisi).State = EntityState.Modified;
            _db.Entry(kisi).State = EntityState.Added;


            try
            {
                return(_db.SaveChanges());
            }
            catch (Exception ex)
            {
                throw;
            }
        }
コード例 #2
0
 public int HobiEkle(Hobiler hobi)
 {
     _db.Entry(hobi).State = EntityState.Added;
     return(_db.SaveChanges());
 }
コード例 #3
0
 public int AileEkleManagement(AileBilgileri aileBilgileri)
 {
     _db.Entry(aileBilgileri).State = EntityState.Added;
     return(_db.SaveChanges());
 }