/// <summary>
 /// 更新
 /// </summary>
 /// <param name="info"></param>
 public void Update(AccountInfo info)
 {
     //storeDB.EmployeeInfo.Create(info);
     storeDB.AccountInfo.Attach(info);
     storeDB.Entry(info).State = System.Data.Entity.EntityState.Modified;
     storeDB.SaveChanges();
 }
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="info"></param>
 public void Update(EmployeeInfo info)
 {
     //storeDB.EmployeeInfo.Create(info);
     info.LastUpdatedOn = DateTime.Now;
     storeDB.EmployeeInfo.Attach(info);
     storeDB.Entry(info).State = System.Data.Entity.EntityState.Modified;
     storeDB.SaveChanges();
 }
示例#3
0
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="info"></param>
 public void Update(RecordInfo info)
 {
     storeDB.RecordInfo.Attach(info);
     storeDB.Entry(info).State = System.Data.Entity.EntityState.Modified;
     storeDB.SaveChanges();
 }