//using System; // //using System.Data; //using System.Linq; //using Ease.Core.Model; //using System.Data.SqlClient; //using Ease.Core.DataAccess; //using System.Collections.Generic; //using Ease.Core.DataAccess.SQL; //namespace Payroll.Service //{ // #region SalaryEmpCostCenterDA // internal class SalaryEmpCostCenterDA // { // #region Constructor // private SalaryEmpCostCenterDA() { } // #endregion // #region Insert function // internal static void Insert(TransactionContext tc, SalaryEmpCostCenter item) // { // tc.ExecuteNonQuery("INSERT INTO SalaryEmpCostCenter(SalaryEmpCostCenterID, SalaryMonthlyID, CostCenterID, Percentage, EmployeeID)" + // " VALUES(%n, %n, %n, %n, %n)", item.ID, item.SalaryMontlyID, item.CostCenterID, item.Percentage, item.EmployeeID); // } // #endregion // #region Update function // internal static void Update(TransactionContext tc, SalaryEmpCostCenter item) // { // tc.ExecuteNonQuery("UPDATE SalaryEmpCostCenter SET SalaryMonthlyID=%n, CostCenterID=%n, Percentage=%n, EmployeeID=%n" + // " WHERE SalaryEmpCostCenterID=%n", item.SalaryMontlyID, item.CostCenterID, item.Percentage, item.EmployeeID, item.ID); // } // #endregion // #region Get Function // internal static IDataReader Get(TransactionContext tc) // { // return tc.ExecuteReader("SELECT * FROM SalaryEmpCostCenter"); // } // internal static IDataReader Get(TransactionContext tc, int nID) // { // return tc.ExecuteReader("SELECT * FROM SalaryEmpCostCenter WHERE SalaryEmpCostCenterID=%n", nID); // } // #endregion // #region Delete function // internal static void Delete(TransactionContext tc, int nID) // { // tc.ExecuteNonQuery("DELETE FROM [SalaryEmpCostCenter] WHERE SalaryEmpCostCenterID=%n", nID); // } // #endregion // } // #endregion //}