예제 #1
0
 public void UpdatePayInfo(Pay_Info payInfo)
 {
     context.Entry(payInfo).State = EntityState.Modified;
 }
예제 #2
0
 public void InsertPayInfo(Pay_Info payInfo)
 {
     int id = context.Database.SqlQuery<int>("GetPayInfoMaxID").Single() + 1;
     context.Pay_Info.Add(payInfo);
 }