public bool EmployeePayHistoryDelete(EmployeePayHistory employeepayhistory) { return Execute<bool>(dal => { EmployeePayHistory employeepayhistoryDelete = dal.EmployeePayHistory.Where(x => x.BusinessEntityID == employeepayhistory.BusinessEntityID).FirstOrDefault(); if (employeepayhistoryDelete != null) { dal.EmployeePayHistory.DeleteOnSubmit(employeepayhistoryDelete); dal.SubmitChanges(); return true; } return false; }); }
public bool EmployeePayHistoryUpdate(EmployeePayHistory employeepayhistory) { return Execute<bool>(dal => { EmployeePayHistory employeepayhistoryUpdate = dal.EmployeePayHistory.Where(x => x.BusinessEntityID == employeepayhistory.BusinessEntityID).FirstOrDefault(); if (employeepayhistoryUpdate != null) { employeepayhistoryUpdate.BusinessEntityID = employeepayhistory.BusinessEntityID; employeepayhistoryUpdate.RateChangeDate = employeepayhistory.RateChangeDate; employeepayhistoryUpdate.Rate = employeepayhistory.Rate; employeepayhistoryUpdate.PayFrequency = employeepayhistory.PayFrequency; employeepayhistoryUpdate.ModifiedDate = employeepayhistory.ModifiedDate; dal.SubmitChanges(); return true; } return false; }); }
partial void DeleteEmployeePayHistory(EmployeePayHistory instance);
partial void UpdateEmployeePayHistory(EmployeePayHistory instance);
partial void InsertEmployeePayHistory(EmployeePayHistory instance);
public void EmployeePayHistoryUpdate(EmployeePayHistory employeepayhistory) { adventureWorks_BC.EmployeePayHistoryUpdate(employeepayhistory); }