Пример #1
0
 public void Update(Punct1 punct)
 {
     using (var context = new MasterContext())
     {
         context.Entry(punct).State = EntityState.Modified;
         context.SaveChanges();
     }
 }
Пример #2
0
 public void DeleteClient(Punct1 punct)
 {
     using (var context = new MasterContext())
     {
         context.Entry(punct).State = EntityState.Deleted;
         context.SaveChanges();
     }
 }
Пример #3
0
 public void AddPunct1(Punct1 punct)
 {
     using (var context = new MasterContext())
     {
         context.Set <Punct1>().Add(punct);
         context.SaveChanges();
     }
 }