EchoTex_Payroll/HRM.DA/DA/Salary/ApprenticeSalaryDA.cs
2024-10-14 10:01:49 +06:00

52 lines
1.6 KiB
C#

using HRM.BO;
using Ease.Core.DataAccess;
using System;
using System.Data;
namespace HRM.DA
{
public class ApprenticeSalaryDA
{
//#region Constructor
//public ApprenticeSalaryDA() { }
//#endregion
//#region Insert function
//public static void Insert(TransactionContext tc, ApprenticeSalary oItem)
//{
// tc.ExecuteNonQuery("INSERT INTO ApprenticeSalary(ApprenticeSalaryID, FirstYear, SecondYear, ThirdYear)" +
// " VALUES(%n, %n, %n,%n)", oItem.ID, oItem.FirstYear, oItem.SecondYear, oItem.ThirdYear);
//}
//#endregion
//#region Update function
//public static void Update(TransactionContext tc, ApprenticeSalary oItem)
//{
// tc.ExecuteNonQuery("UPDATE ApprenticeSalary SET FirstYear=%n, SecondYear=%n, ThirdYear=%n" +
// " WHERE ApprenticeSalaryID=%n", oItem.FirstYear, oItem.SecondYear, oItem.ThirdYear, oItem.ID);
//}
//#endregion
//#region Get function
//public static IDataReader Get(TransactionContext tc)
//{
// return tc.ExecuteReader("SELECT * FROM ApprenticeSalary");
//}
//public static IDataReader Get(TransactionContext tc, int id)
//{
// return tc.ExecuteReader("SELECT * FROM ApprenticeSalary where ApprenticeSalaryID = %n", id);
//}
//public static IDataReader DeleteAll(TransactionContext tc)
//{
// return tc.ExecuteReader("Delete FROM ApprenticeSalary");
//}
//#endregion
}
}