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 } }