示例#1
0
 public void DeleteSupply(Supply supply)
 {
     context.Supplys.Remove(supply);
     context.SaveChanges();
 }
示例#2
0
 public void UpdateSupply(Supply supply)
 {
     context.Supplys.Update(supply);
     context.SaveChanges();
 }
示例#3
0
 public void InsertSupply(Supply supply)
 {
     context.AttachRange();
     context.Supplys.Add(supply);
     context.SaveChanges();
 }