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