public static void UpdateEmployee(this HRSMContextContainer context, EMPLOYEE employee) { EMPLOYEE originalEmployee = context.EMPLOYEES.IncludeAll().Single(x => x.RGUID == employee.RGUID); employee.Copy(originalEmployee); }