cmd2.CommandText="update HR.UBW_SG_WRITE_LOG set STATUS_IND=:status_ind, last_run_id=:last_run_id, date_run=sysdate, sg_empno=:sg_emp_no where resno=:res_no";
cmd2.CommandText="update HR.UBW_SG_WRITE_LOG set STATUS_IND=:status_ind, date_run=sysdate, sg_empno=:sg_emp_no where resno=:res_no and last_run_id=:last_run_id";
Console.WriteLine("Entity of type \"{0}\" in state \"{1}\" has the following validation errors:",
eve.Entry.Entity.GetType().Name,eve.Entry.State);
System.IO.File.AppendAllText(log_path,"Entity of type "+eve.Entry.Entity.GetType().Name+" in state "+eve.Entry.State.ToString()+" has the following validation errors:");
Console.WriteLine("Entity of type \"{0}\" in state \"{1}\" has the following validation errors:",
eve.Entry.Entity.GetType().Name,eve.Entry.State);
System.IO.File.AppendAllText(log_path,"Entity of type "+eve.Entry.Entity.GetType().Name+" in state "+eve.Entry.State.ToString()+" has the following validation errors:");