Example #1
0
 public void Update(House house)
 {
     _db.Update(house);
     _db.SaveChanges();
 }
Example #2
0
 public void Detach(House trackedhouse)
 {
     _db.Entry(trackedhouse).State = EntityState.Detached;
 }
Example #3
0
 public void Add(House house)
 {
     _db.Add(house);
     _db.SaveChanges();
 }