Beispiel #1
0
        public bool Update(T obj, string[] param, string spName)
        {
            //_db.Entry(obj).State = System.Data.Entity.EntityState.Detached;
            _db.Entry(obj).State = System.Data.Entity.EntityState.Modified;
            bool status = Save();

            return(status);
        }
 public bool UpdateEmployeeEducation(EmployeeEducationDetail obj)
 {
     using (var context = new IPDEntities())
     {
         //db.SaveChanges();
         var local = context.EmployeeEducationDetails.Find(obj.EduDetID);
         context.Entry(local).CurrentValues.SetValues(obj);
         context.Entry(local).State = EntityState.Modified;
         bool status = Save();
         return(status);
     }
 }