コード例 #1
0
        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;

            });
        }
コード例 #2
0
 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;
        });
 }
コード例 #3
0
 partial void DeleteEmployeePayHistory(EmployeePayHistory instance);
コード例 #4
0
 partial void UpdateEmployeePayHistory(EmployeePayHistory instance);
コード例 #5
0
 partial void InsertEmployeePayHistory(EmployeePayHistory instance);
コード例 #6
0
 public void EmployeePayHistoryUpdate(EmployeePayHistory employeepayhistory)
 {
     adventureWorks_BC.EmployeePayHistoryUpdate(employeepayhistory);
 }